Hi foxes,
At first, I connected sensor Vcc pin to an Arduino digital pin 12. The sensor was not able to scan when pin 12 goes HIGH. And when pin 12 goes LOW, sensor data become scattered due to power lost.
I ended up doing this and worked for me.
The GP2Y0D805, GP2Y0D810, and GP2Y0D815 have an optional enable input that can be used to put the sensor into low-power mode. The Pololu carrier board connects this input to Vcc so that the sensor is always enabled, but you can solder a wire to the pad labeled “enable” on the back of the PCB if you want control over this input. Note that you will need to cut the trace that connects the enable line to Vcc on the PCB if you want to be able to disable the sensor. This trace is marked on the silkscreen, and there is a caret that indicates where we suggest you make the cut.
Thanks all for your helps !
You made my day.
A.H.