Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

sharp GP2 sensor

Status
Not open for further replies.
I am using SHARP GP2Y3A003K0F sensor for obstacle detection i.e. if an obstacle comes in some range of GP2,a buzzer will sound. As I know I analogue o/p of GP2 changes with distance and I am interpreting the same using 8 bit ADC of ATMEGA 16.
In datasheet it is given that phase shifted pulses have to be given to the LEDs. But the problem is when I give such pulses my ADC readings don't follow the expected trend (i.e. decreasing as obstacle moves away from the sensor.)The ADC readings are quite abrupt.
But if I keep only one LED CONTINUOUSLY ON then the ADC readings decrease as the obstacle moves away from the sensor.They detect obstacle perfectly.
So I what could be the use of those 5 LEDs ? Or how should they be operated?
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top