Author: haroonkhan
-
Circuit Theory
An LED is an electronic part that emits light when properly wired in an electric circuit. The LED has positive and negative leads protruding through a plastic body, as shown in Figure 4-1. You can use the Arduino in electronic projects to operate multiple LEDs. Figure 4-3 shows two LEDs wired to the Arduino D13 pin. The Arduino output pins…
-
Introduction
LEDs in Parallel LEDs can be used to light objects or to alert the user about the operating conditions of a device. Light-emitting diodes are easy to use and they come in a variety of shapes, sizes, and colors, as shown in Figure 4-1. The Arduino has a dedicated tiny LED wired to pin D13. By uploading the…
-
Circuit Theory
A tilt control switch is an electrical device used to detect orientation. Like using a mini pushbutton and a light detector, a tilt control switch is another way to interact with and control the Arduino. The tilt control switch is a pair of small metal balls that make contact with pins and close the circuit…
-
A Simple Animatronic Controller Using the Serial Monitor
Tilt control switching can be used in a variety of human machine control and physical computing applications. In the theater, electromechanical puppets are often controlled using electronic sensors and servo motors. The tilt control switch project you built can be used as a simple animatronic controller. Example 3-2 shows an improved Arduino sketch that limits the servo motor rotation…
-
Upload the Tilt Sensor Sketch
With the Tilt Sensing Servo Motor Controller circuit built on the full-size clear breadboard, it’s time to upload the sketch: TROUBLESHOOTING TIP Rotate the tilt control switch slowly and smoothly to get the best response from the servo motor. Example 3-1. Tilt Control Switch sketch
-
Let’s Build a Tilt Sensing Servo Motor Controller
You can control a servo motor’s rotation direction through orientation detection using a tilt control switch. In this project, you will build a Tilt Sensing Servo Motor Controller. Refer to the Parts List for all the electronic components required for this project. Here are the steps used to build the electronic device: Figure 3-2. Servo motor with mechanical…
-
Parts List
Figure 3-1. Tilt Sensing Servo Motor Controller built on a full-size clear breadboard
-
Introduction
Sensors allow people to operate consumer and industrial products using physical stimuli such as touch, sound, and motion. You controlled two LEDs with the wave of your hand; the light-activated switch used a photocell to detect the presence of your hand over the sensor. In this chapter, we’ll build a gadget to easily detect object…
-
Something to Think About
How can the Serial Monitor display actual light sensor data? Figure 2-7. Sunrise-Sunset Light Switch circuit schematic.