Running and using our light meter

Load your project folder onto the Pi, navigate to the folder in your Pi SSH session, and run the following command:

sudo node light-sensor.js

Then, cover the light sensor, or shine a light onto it—the servo should move back and forth accordingly.

Now that we've explored the servo as a means of communicating data as well as creating motion, let's take a look at the continuous servo.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.143.17.27