Need a stable reading
I am using BS2 and ADC0831.
I have attached my code herewith which I got from the manual.
I just want a stable reading coming out of the A/D. I can see a voltage representation as well as 8 bits binary representation of the analog input I am using but my readings seen on debug screen are fluctuating like anything.
I assumed that the reading out of the ADC would display simply the amplitude voltage of the analog input which is what I am looking for.
I need to send the 8 bits binary data to Labview and am displaying a digital value in there.
Any advice please.
I have attached my code herewith which I got from the manual.
I just want a stable reading coming out of the A/D. I can see a voltage representation as well as 8 bits binary representation of the analog input I am using but my readings seen on debug screen are fluctuating like anything.
I assumed that the reading out of the ADC would display simply the amplitude voltage of the analog input which is what I am looking for.
I need to send the 8 bits binary data to Labview and am displaying a digital value in there.
Any advice please.
bs2
![](/plugins/FileUpload/images/file.png)
726B
Comments
Also, doesn't it take some time for the ADC to make its reading? Are you giving it that time?
And do you have a common ground?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
4 digit serial LED
http://hometown.aol.com/newzed/index.html
·
Dave
I also tried keeping the CS high and that gives 11111111 and 5V reading.
The code I attached has been retrieved from the manual so I know it is right.
I am however not able to get a stable reading for the output coming out of A/D.
Can someone please help.
That does not change the fluctuations.
I had my Temp Sensor on separate board and my BS2 on separate board. And though both of them were grounded, they didnt have common ground.
Thanks alot for your help.