Exploring Arduino
eBook - ePub

Exploring Arduino

Tools and Techniques for Engineering Wizardry

Jeremy Blum

Partager le livre
  1. English
  2. ePUB (adapté aux mobiles)
  3. Disponible sur iOS et Android
eBook - ePub

Exploring Arduino

Tools and Techniques for Engineering Wizardry

Jeremy Blum

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

À propos de ce livre

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!

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que Exploring Arduino est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  Exploring Arduino par Jeremy Blum en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Computer Science et Hardware. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Éditeur
Wiley
Année
2019
ISBN
9781119405306
Édition
2
Sous-sujet
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 ...

Table des matiĂšres