Chapter    28

Challenge 7: Examining Software

We’ve now reached the programming portion of Challenge #7. You’re going to need to upload a sketch to your gizmo to help Elle and Cade turn life support back on for Gemini Station and close and lock the doors on the station to trap Mr. Canvin. You’ll recognize one key component in this gizmo already—the servo motor. And since you’re already familiar with how to program it (including using the Servo Library from Chapter 24), there’s only one new piece of hardware you’re going to need to learn to integrate into the sketch—the photoresistor.

We will be using the photoresistor just as we used the potentiometer in previous challenges; we’ll use the analogRead function to read in the value that the photoresistor ...

Get Arduino Adventures: Escape from Gemini Station now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.