Maxbotix says the LV-EZ0 has a 1 inch resolution and a range of 0 - 254in meaning you could track something with 1in reliability over 254in of movement from the sensor. This makes it very easy to read actual distance with it. The best part is that the output is linear, so something that is 6ft way will output half that of something 12 ft away. The LV-EZ0's range is really dependent on the size of the object - About 8ft for something the size of a finger, to over 20ft for something the size of a piece of paper. Connect this to an analog input as seen in the illustration. The only confusing part is that it has many output types. Hooking up the LV-EZ0 up is like day one of the Arduino tutorial. The sound is ultrasonic so it can not be heard. It is an ultrasonic range finder meaning that it uses a projected sound and measures how long it takes for the sound to bounce off of an object and come back. QRD1114 infrared emitter / Phototransistor comboįirst up is the Maxbotix LV-EZ0 because of the undeniable popularity of it. Sharp GP2Y0A21YK Infrared Proximity Sensor But, digital distance sensors are pretty expensive and hard to come buy. This resolution limitation of the Arduino's ADCs are a large part of the reason that analog sensors are often inferior to their digital counterparts. Read our wiki article for more information on ADCs. That means that when we read the voltage on that pin, 0-5v value will be translated to between 0 (0V) and 1023(5V). The 10 bit part is the resolution of the ADC. These analog inputs act just like a voltage meter, sensing the voltage on that pin, and are actually 10 bit Analog to digital converters (ADCs). The typical Arduino has 6 "Analog In" pins located on them. While using them is technically simple, I have 3 pretty different sensors that all have pros/cons, and none of them would make a very suitable replacement for the others, so maybe this will help you choose the right one if you find yourself in need.Īll 3 sensors will be outputting an analog voltage that we will be reading with our Arduino. But the time has come, I'm writing about some distance/proximity sensors. I think I strayed away from this because most of the lower cost proximity sensors are pretty drop-dead-simple to use and thought it might not be that useful. In past tutorials, we have covered temperature, color, time, direction, but never distance or proximity.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |