How to use the A/D converter on the activity board WX
msiriwardena
Posts: 301
in Propeller 1
I am testing the use of- the A/D converter- using potentiometer(pot)- the wiper is connected to the - AD input (1) and the other two terminals to 5V+ and ground.
The WX board guide says:
Use the Analog to Digital Converter to monitor the voltage at analog inputs A/D 0, 1, 2, and 3. It will give a number from 0 to 4095, which tells what the voltage is in a range from 0 to 5 volts. The converter used here is a 12-bit, 200 ksps SPI ADC, with a 5-volt supply reference.
The pins for the converter are : CS=P21,SCL=P20,DO=P19 and DI = P18.
There is no access to any of these pins(18-21)
I would like someone to show me how to read the digital out put from the A/D converter from the board using PST or LCD.
Thank you
Siri
The WX board guide says:
Use the Analog to Digital Converter to monitor the voltage at analog inputs A/D 0, 1, 2, and 3. It will give a number from 0 to 4095, which tells what the voltage is in a range from 0 to 5 volts. The converter used here is a 12-bit, 200 ksps SPI ADC, with a 5-volt supply reference.
The pins for the converter are : CS=P21,SCL=P20,DO=P19 and DI = P18.
There is no access to any of these pins(18-21)
I would like someone to show me how to read the digital out put from the A/D converter from the board using PST or LCD.
Thank you
Siri
Comments
http://learn.parallax.com/support/reference/propeller-blocklyprop-block-reference/analog-pulses/voltage
That link shows how to read the AD.
If you have the Parallax oled display, you'll also find examples on displaying the results.
SIRI
http://www.instruments4chem.com/page2/page11/page65/index.html
Look for the "Distribution File". I have not tried it yet.
The Activity Board uses a Texas Instruments ADC124S021 and the following posts have the code you will need:
https://forums.parallax.com/discussion/166391/hi-does-anyone-know-adc-demo-on-activity-board
https://forums.parallax.com/discussion/169140/looking-for-the-adc124s021-demo
https://forums.parallax.com/discussion/169170/spin-code-for-acitivity-board-adc
Thank you allfor the help
Siri