Beruflich Dokumente
Kultur Dokumente
Chapter 6 Summary
This chapter focused on using a pair of light
sensors to detect bright light and shade for robot
navigation. Lots of interesting electronics concepts
and programming techniques come into play.
Electronics
What a phototransistor is, and how to identify
its base, emitter and collector
Programming
How to use the Arduinos analogRead function
to take a voltage measurement from an analog
sensors output
You do by using this code:
/*
* Robotics with the BOE Shield - Chapter 6,
Project 1
* Chirp when light is above threshold. Will
require updating value of
* threshold & retesting under bright light to get
to the right value.
*/