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?”

Videos

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

Code

All code is licensed via the GNU GPL v3. Code is maintained and updated on GitHub. The download zip linked above always contains the most recent version of the code examples that have been pushed to the GitHub Code Repository.

Taking it Further

With your skills from this chapter, combined with your knowledge of analog and digital inputs and outputs and your growing knowledge of the Arduino programming knowledge, you are already equipped to do a number of exciting projects. You can accomplish the following few things by using knowledge you already have. Try building one of these ideas or coming up with your own:

A roving car with a scanning distance sensor that can avoid walls

A motion-sensitive light

A personal thermostat and fan (Fans are just DC motors with blades on them.)

A code-activated lock box (Push debounced buttons in a certain order to disengage a servo motor.)

A light-activated jack-in-the-box that uses a servo motor to pop up when you turn on the lights