ADC reading variation

Moderator: Steve

ADC reading variation

Postby alanmcdonley » Mon Jun 20, 2016 9:34 am

I don't have an oscilloscope to know exactly where the noise in my ADC readings is coming from, so I'm feeling very frustrated at the moment.

I was hoping to have ADC readings that would be steady or flip-flop between two bits, but no luck.

Readings from my IR Distance sensor, current sensor, and even the unregulated 7.2v readings are all over the place.

I don't know what to make of it without a scope.

These are charts of the readings and the resulting voltage of the "steady" unregulated 7.2v

VTestReadingDistribution.JPG (43.68 KiB) Viewed 598 times

VTestReadings.JPG (35.62 KiB) Viewed 598 times
Posts: 90
Joined: Thu Jul 23, 2015 10:50 am
Location: Boynton Beach, Florida

Re: ADC reading variation

Postby mikronauts » Mon Jun 20, 2016 10:36 am

I think the peaks are due to varying power usage.


Disconnect ALL motors, servos, ultrasonics, wifi - ie unplug everything except an Ethernet cable, and PiDroidAlpha.

Power Pi with a 2A 5V adapter.

Boot your Pi


AIN0: Pi's 3v3
AIN1: Unloaded 7.4V batter divided by two (ie 0-3.7V range)
AIN2: a 3.3v regulator powered by battery above, driving just a single LED through a 470R resistor (~5mA load)

Log above three every 1sec. Run nothing else on the Pi.

You will still see some variation, but by removing all other power draws is should (famous last words) be less.
Posts: 119
Joined: Tue Sep 16, 2014 6:58 pm

Return to Pi Droid Alpha

Who is online

Users browsing this forum: No registered users and 2 guests