Analog-to-Digital Converter problem on Propstick Board
niconatanael
Posts: 6
Hello.
Im totally new in using propeller board. Currently still learning how to read an analog input in this board and display in serial terminal.
Previously, i already try the the simple analog to digital test instruction i've got here, using potentiometer, but when I turn the knob both way it always displaying "-1" value, instead of displaying actual voltage of potentio output.
Anybody can help me fix this problem? Could I use the PropBOE ADC object on my propstick?
Im using SPIN with PropStick board by the way.
Im totally new in using propeller board. Currently still learning how to read an analog input in this board and display in serial terminal.
Previously, i already try the the simple analog to digital test instruction i've got here, using potentiometer, but when I turn the knob both way it always displaying "-1" value, instead of displaying actual voltage of potentio output.
Anybody can help me fix this problem? Could I use the PropBOE ADC object on my propstick?
Im using SPIN with PropStick board by the way.
Comments
The PropStick USB does not have an Analog to Digital converter on board. There is a converter on the Board of Education that is used with the example code that you linked to.
You would have to add an A/D converter to the PropStick in order to use that code.
Analog Devices AD7993 data sheet: mouser.com/ds/2/609/AD7993_7994-877598.pdf
dgately
The A-D converter on the BOE
http://www.analog.com/en/products/analog-to-digital-converters/ad-converters/ad7993.html#product-overview
Is capable of accepting 0-5 volts. The Propeller can only accept up to 3.3 volts. That means the pin that you had connected to the wiper, (center pin of the pot), may have introduced 5 volts to the pin, and may now be unusable. AD1 will always be ground, so that's OK. AD2 will always be 3.3 volts, so that's OK. So that only leaves one pin that might have been damaged.
Hope that helps.
This is the one called out in the Bill of Materials sheet:
http://www.digikey.com/product-search/en?keywords=AD7993BRUZ-1-ND
Good advice about 3.3v vs 5v...
dgately
http://www.analog.com/en/products/analog-to-digital-converters/ad-converters/ad7811.html#product-overview
Thanks Publison! So thats why the PropBOE ADC object not working on my board right?
Could I read analog input in my propstick without any ADC external chip?
I've read the AN008 document which is explain about sigma delta ADC here, it only need a couple of capacitors and resistors which connect to counter input and counter output, is it work on my propstick?
Nico
Thanks for the response dgately!
Ya, just now I considered that the PropBOE ADC object cant be implemented on my board because Propeller BOE have an ADC circuit on board (from here) while my PropStick not.
Currently I'm trying to read analog input from potentio without any external ADC chip, do you think this is possible?
Nico
Could possibly be done using an RC circuit.
Thanks for the info kwinn,
Could you please attach me the document (link or something) refer to RC circuit for ADC in propeller?
Nico
It may help to look at the Propeller Application Note #1 for an example of a Sigma-Delta Analog to Digital Convertor, with code...
The URL: https://parallax.com/sites/default/files/downloads/AN001-P8X32ACounters-v2.0.pdf
And there are several threads here on the forum that discuss ADC circuits, using RC circuits. Here's one: forums.parallax.com/discussion/119651/how-to-make-adc-with-rctime
dgately
Thanks mate!