Exploring Arduino
eBook - ePub

Exploring Arduino

Tools and Techniques for Engineering Wizardry

Jeremy Blum

Compartir libro
  1. English
  2. ePUB (apto para móviles)
  3. Disponible en iOS y Android
eBook - ePub

Exploring Arduino

Tools and Techniques for Engineering Wizardry

Jeremy Blum

Detalles del libro
Vista previa del libro
Índice
Citas

Información del libro

The bestselling beginner Arduino guide, updated with new projects!

Exploring Arduino makes electrical engineering and embedded software accessible. Learn step by step everything you need to know about electrical engineering, programming, and human-computer interaction through a series of increasingly complex projects. Arduino guru Jeremy Blum walks you through each build, providing code snippets and schematics that will remain useful for future projects. Projects are accompanied by downloadable source code, tips and tricks, and video tutorials to help you master Arduino. You'll gain the skills you need to develop your own microcontroller projects!

This new 2nd edition has been updated to cover the rapidly-expanding Arduino ecosystem, and includes new full-color graphics for easier reference. Servo motors and stepper motors are covered in richer detail, and you'll find more excerpts about technical details behind the topics covered in the book. Wireless connectivity and the Internet-of-Things are now more prominently featured in the advanced projects to reflect Arduino's growing capabilities. You'll learn how Arduino compares to its competition, and how to determine which board is right for your project. If you're ready to start creating, this book is your ultimate guide!

  • Get up to date on the evolving Arduino hardware, software, and capabilities
  • Build projects that interface with other devices—wirelessly!
  • Learn the basics of electrical engineering and programming
  • Access downloadable materials and source code for every project

Whether you're a first-timer just starting out in electronics, or a pro looking to mock-up more complex builds, Arduino is a fantastic tool for building a variety of devices. This book offers a comprehensive tour of the hardware itself, plus in-depth introduction to the various peripherals, tools, and techniques used to turn your little Arduino device into something useful, artistic, and educational. Exploring Arduino is your roadmap to adventure—start your journey today!

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es Exploring Arduino un PDF/ePUB en línea?
Sí, puedes acceder a Exploring Arduino de Jeremy Blum en formato PDF o ePUB, así como a otros libros populares de Computer Science y Hardware. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Editorial
Wiley
Año
2019
ISBN
9781119405306
Edición
2
Categoría
Hardware

II
Interfacing with Your Environment

  • Chapter 4: Using Transistors and Driving DC Motors
  • Chapter 5: Driving Stepper and Servo Motors
  • Chapter 6: Making Sounds and Music
  • Chapter 7: USB Serial Communication
  • Chapter 8: Emulating USB Devices
  • Chapter 9: Shift Registers

4
Using Transistors and Driving DC Motors

Parts You'll Need for This Chapter:

  • Arduino Uno or Adafruit METRO 328
  • USB cable (Type A to B for Uno, Type A to Micro-B for METRO)
  • Half-size breadboard
  • Assorted jumper wires
  • 1kΩ resistor
  • 10kΩ resistors (×2)
  • 10kΩ trim potentiometer
  • Photoresistors (×2)
  • 9V battery
  • 9V battery clip
  • L7805CV 5V voltage regulator
  • 10μF 50V electrolytic capacitors (×2)
  • 0.1μF ceramic capacitor
  • 1N4001 diode
  • PN2222 NPN bipolar junction transistor (BJT)
  • Roving robot chassis kit with wheels and DC motors
  • 9V DC motor
  • TI L293D dual H-bridge motor driver
    • CODE AND DIGITAL CONTENT FOR THIS CHAPTER
    • Code downloads, videos, and other digital content for this chapter can be found at:
    • exploringarduino.com/content2/ch4
    • Code for this chapter can also be obtained from the Downloads tab on this book's Wiley web page:
    • wiley.com/go/exploringarduino2e
You're now a master of observing information from the world around you. But how can you control that world? Blinking LEDs and automatically adjusting nightlights are a good start, but you can do so much more. Using assorted types of motors and actuators, and with the help of transistors, you can use your Arduino to generate physical action in the real world. By pairing motors with your Arduino, you can drive robots, build mechanical arms, add an additional degree of freedom to distance sensors, and much more.
In this chapter, you will learn how to control inductive loads like direct current (DC) motors, how to use transistors to switch high-current devices, and how to add integrated circuits (ICs) to your projects. At the end of this chapter, you will build a light-controlled car that you can control using only a flashlight!

NOTE

If you want to learn all about motors and transistors, you can watch a video on this topic on this chapter's content web page: exploringarduino.com/content2/ch4.

WARNING

In this chapter, you use a 9V battery so that you can run motors that require more power than the Arduino can provide. These voltages are still not high enough to pose a danger to you, but if hooked up improperly, these batteries can damage your electronics. As you make your way through the exercises in this chapter, follow the diagrams and instructions carefully. Avoid short circuits (connecting power directly to ground), and when you are sharing the ground line between power supplies, don't try to connect two separate voltage sources to each other. For example, don't try to hook both the 9V supply and the Arduino's 5V supply into the same supply row on the breadboard. Doing so could damage the 5V regulator on your Arduino, damaged the Arduino's microcontroller.

Driving DC Motors

DC motors, which you can find in numerous devices around your home, rotate continuously when a DC voltage is applied across them. These motors are commonly used as the driving motors in radio control (RC) cars, in power drills and saws, and as the motors that make the discs spin in DVD players. DC motors are great because they come in a huge array of sizes and are generally very cheap. By adjusting the voltage you apply to them, you can change their rotation speed. Using a gearbox, you can trade their speed for torque. By reversing the direction of the voltage applied to them, you can change their direction of rotation as well. This is generally done using an H-bridge, which you will learn about later in this chapter.
Brushed DC motors, such as the ones you are using for this chapter, employ stationary magnets (the stator) and a spinning coil (the rotor). Electricity is transferred to the coil using “brushes,” hence the name brushed DC motors. Unlike brushless DC motors (such as the stepper motors that you'll explore in the next chapter), brushed DC motors are cheap and offer easier speed control. However, brushed DC motors do not last as long because the brushes can wear out over time.
Some larger devices that rely on brushed motors, like corded power tools, have replaceable carbon brushes. Brushed DC motors work through an inductive force. When current passes through the spinning coil, it generates a magnetic field that is either attracted to or repelled ...

Índice