Squirrels have fuzzy tails.
0 Members and 1 Guest are viewing this topic.
I'm getting numbers that jump +/- 0-40 of the digital value it should be.
Don't put a resistor in parallel with your Sharp sensor. Put at least a 10 uF capacitor across power and ground somewhere near each of your sensors (the closer the better). This is recommended in the Sharp sensor's datasheet as these sensors pull a lot of current while they are pulsing, which adds a lot of noise to your system. When reading data from the Sharp sensors, my recommendation is that you always average at least a few values (my rule of thumb is to never use a single ADC conversion value--I always average at least four to make sure I'm not catching a noise spike, and I average more if I can spare the time).I know others here disagree with this approach, but it's the one I use and I have gotten great, fairly noise free results from my Sharp sensors by doing this.- Ben