The Project:
Range: From some research I did, the range of this device is between 10cm and 80cm. It reads its highest value around 3-5in from the sensor, and decreases from there.
I noticed if you go closer than the shortest distance allowed the readings start to go back down.
Information gathered from these two places:
-https://www.sparkfun.com/datasheets/Components/GP2Y0A21YK.pdf
-http://bildr.org/2011/03/various-proximity-sensors-arduino/
Distance readings:
20cm: ~260
40cm: ~135
60cm: ~102
80cm: ~100
The fritzing schematic and breadboard are as follows:
The infrared sensor pointed straight into the air, where I waved my hand up and down to determine distance.
Bluetooth car update!
A few exciting things happened to my car this week.
1) I replaced all the batteries, and the car is actually quite quick!
2) I got a new L298 Motor Controller! I was connecting the motors in series this whole time since two of the output pins die (didn't read a voltage). As a result, my car is working much better.
Also, I got rid of all the unnecessary wiring! Everything is now soldered, and the car works wonderfully.
For the body, I am going to construct a frame using carbon fiber tubes, and I will pull canvas over it.
Comments