This car does not move until a direct light shines on it. There are two Photoresistors. One on each side of the car. If one side senses light, the Lego car turn to that side. If both sense lights, the car moves forward. The fritzing diagram shows one Photoresistor, the principle is the same when adding the second one. 2AA battery is used for power supply to the Arduino Nano. 9V battery is used for powering the motor. Motor is switched on/off by Arduino via a transistor.
The force is with this Lego car!
5 projects • 3 followers
Software developer.
B.S. Computer Science and Mathematics 1995, Univ. of Maryland.
M.S. Computer Science 1998, Johns Hopkins Univ.
Comments
Please log in or sign up to comment.