O'Reilly logo

Make: Basic Arduino Projects by Don Wilcher

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. Tilt Flasher

Up-Down Sensor

In Chapter 4, the FrankenBot toy illustrated the method of flashing two LEDs wired in parallel. The Arduino microcontroller made it easy to change the flash rate of two LEDs using a 10KΩ potentiometer. How cool would it be to control an LED’s flash rate by moving an electronic box in an up-down motion? This project is a small window into the inner workings of gesture controls used to operate video games, robots, and electronic toys using simple body motions. Now we’re going to build and use orientation control, in the form of a tilt switch, to operate an Arduino flasher. The parts for the project consist of a tilt control switch, three resistors, and two LEDs. Figure 8-1 shows the Up-Down Sensor block diagram. ...

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