Timeline for How do I properly use Sharp GP2Y0A21YK0F sensor?
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 25, 2012 at 20:21 | vote | accept | AndrejaKo | ||
Sep 14, 2012 at 13:01 | comment | added | hli | So this scope connection means that scope and power share a common path. And then all changes in current consumption for the sensor lead to voltage drops on this path, which changes the output signal. That's why adding these capacitors help. | |
Sep 14, 2012 at 7:44 | comment | added | AndrejaKo | The capacitor on the power supply helped a lot. I still haven't tried with the filter on the output mainly because my junkbox needs refilling. The scope probe's ground is connected to the point where the PSU cable is connected to the cable going into the sensor. | |
Sep 14, 2012 at 6:50 | comment | added | hli | I also found some other guy having problems with the sensor messing with the power supply quality - maybe this will help you too. And if you look at this page entry, you will see that the power consumption spikes correspond with your problematic readings - so it could just be that the power supply noise is coupled into your output wire. (The coupling can also be via the ground wire - does the oscilloscope probe share the ground line with the power supply, or is its ground line connected directly to the sensor?) | |
Sep 14, 2012 at 6:42 | comment | added | hli | Which one? The 100nF for the supply, or the low-pass filter on the output? | |
Sep 13, 2012 at 21:25 | comment | added | AndrejaKo | The 100 nF capacitor definitely improved the output. It's still not very clean, but it's much better now. Thanks a lot! | |
Sep 13, 2012 at 20:28 | history | answered | hli | CC BY-SA 3.0 |