Chapter 4 (1st Edition)

If you are looking for the Chapter 4 content for the 2nd Edition of Exploring Arduino, please click here.

Using Transistors and Driving Motors

Parts List

Code

Download Code (1st Edition, Chapter 4)
(Also available on GitHub)

Useful Links

Errata

  • On page 73, in the “Creating Short Circuits with H-Bridges” excerpt, the book reads: “What would happen if both switches on the left or both switches on the right were opened?” It should read: “What would happen if both switches on the left or both switches on the right were closed?”
  • In Figure 4-14, There is a wire missing. The top and bottom GND strips on the breadboard must be connected.

Color Wiring Diagrams

Videos

Follow along with this video for a visual tutorial on motors and transistors:

Watch a demo of the sweeping IR distance sensor created in the chapter: