Asked — Edited
Resolved Resolved by Rich!

Noisy Analog Dat On The V4

I have about 5 adc units of noise on my 256 adc analog inputs. Also the battery voltage and cpu temperature are noisy. I have checked my incoming battery voltage and it is steady. I tried to filter the analog inputs but no luck there. Thanks oops I guess I can not go back and fix my typo in the title.


ARC Pro

Upgrade to ARC Pro

With Synthiam ARC Pro, you're not just programming a robot; you're shaping the future of automation, one innovative idea at a time.

United Kingdom
#17  

The Sharp IR sensors work perfectly fine with very little fluctuation, at least mine do. Yes there is some fluctuation in the readings but it's minimal.

My old battery monitor wouldn't have much fluctuation either but the script for this used ranges rather than specific values (i.e. battery percentage 100%, 80%, 60% etc.) so I guess I wouldn't have even noticed the fluctuation in the voltage.

#18  

I was also going to say something similar to what Rich said... All my analog sensors (Various sharp IRs, PIR and potentiometers) that I use work perfectly... I guess I don't need the precise resolution that Purple does....

PRO
Synthiam
#19  

It's not that @Purple needs precision. Because he is taking ADC readings from potentiometers and unusual sources for "testing", there is further understanding required to know what the readings are - and why the readings are what they are. Google searches will help understand why ADC will return fluctuating voltages. This is because they are indeed, fluctuating:)

The question should not be "EZ-B has noisy ADC"... The question should be "EZ-B v4 has very accurate ADC"

#20  

@DJ Ha, Ha.... See what happens when you make things too good?... That'll learn ya'... I do notice the difference between quality analog sensors vs cheap (I'll say it) Chinese ones.... For instance a $11 Parallax PIR detector is rock solid compared to $1.97 eBay Chinese equivalent... In fact I ended up buying a bunch of Parallax PIRs and just threw out the Chinese ones...

#21  

Ok, let me try another way. On my V3s I have fluctuations on the analog inputs. I have potentiometers connected to them and to filter the noise I put 47microfarad caps between the input pins and ground. This works perfectly. Now on my V4 there is no way to filter this noise. I have tried. Any suggestions on how to get my analog inputs on my V4 to perform as well as they do on my 2 V3s ?

PRO
Synthiam
#22  

To get your v4 to perform as bad as the v3, I would recommend trying a variety of caps - and a few google searches. Please read my previous post with google links:)

#23  

Ok, I will do that. Thanks for the help.

United Kingdom
#24  

Take multiple readings and find the average is my advice if you want to avoid using capacitors to smooth out the fluctuations in the readings.

$reading1 = GetADC(ADC0)
Sleep(10)
$reading2 = GetADC(ADC0)
Sleep(10)
$reading3 = GetADC(ADC0)
Sleep(10)
$reading4 = GetADC(ADC0)
Sleep(10)
$reading5 = GetADC(ADC0)
Sleep(10)
$reading6 = GetADC(ADC0)
Sleep(10)
$reading7 = GetADC(ADC0)
Sleep(10)
$reading8 = GetADC(ADC0)
Sleep(10)
$reading9 = GetADC(ADC0)
Sleep(10)
$reading10 = GetADC(ADC0)

$reading = Round((($reading1 + $reading2 + $reading3 + $reading4 + $reading5 + $reading6 + $reading7 + $reading8 + $reading9 + $reading10)/10), 2)

Print("ADC Value: " + $reading)