Challenge

For this chapter's challenge, try to add second motors to both projects and then change the code so both motors will spin at the same time. You could also try to wire the motors so they will spin in the same direction if you apply a HIGH value to the IN1 and IN3 pins with a LOW value to the IN2 and IN4 pins.

Get Mastering Arduino now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.