O'Reilly logo

Arduino For Dummies by John Nussey

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8

More Basic Sketches: Motion and Sound

In This Chapter

arrow Moving DC motors

arrow Switching bigger loads with transistors

arrow Speeding up your motor

arrow Turning with precision using a stepper motor

arrow 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required