Chapter 8
More Basic Sketches: Motion and Sound
In This Chapter
Moving DC motors
Switching bigger loads with transistors
Speeding up your motor
Turning with precision using a stepper motor
Making electronic music with a buzzer
Chapter 7 shows you how to use some simple LEDs as outputs for various circuits. Although in Arduino land nothing is more beautiful than a blinking LED, you have a variety of other outputs as options. In this chapter, I explore two other areas: motion provided by motors, and sound from a buzzer.
Working with Electric Motors
Electric motors allow you to move things with electricity using the power of electromagnetism. When an electrical current is passed through a coil of wire, it creates an electromagnetic field. This process works similarly to a normal permanent bar magnet but gives you control over the presence of the field, meaning that you can turn it on and off at will and even change the direction of the magnetism. As you may remember from school, magnets ...
Get Arduino For Dummies now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.