Has anyone used the RCTIME function with the Stamp PLC?
I have used the RCTIME function with the basic stamp 2 but have not found an RC combination that works when the stamp is mounted on the Stamp PLC, is this possible?
- I'm trying to use a Stamp PLC digital output
- I'm not sure about the initial/final voltages in the equation:
time = - tau * ( ln (Vfinal / Vinitial) )
- I think I need to set the pin low (for a 24 volt charge on the capacitor) and use a state of 0 in the RCTIME function
Thanks for any suggestions
- I'm trying to use a Stamp PLC digital output
- I'm not sure about the initial/final voltages in the equation:
time = - tau * ( ln (Vfinal / Vinitial) )
- I think I need to set the pin low (for a 24 volt charge on the capacitor) and use a state of 0 in the RCTIME function
Thanks for any suggestions
Comments
Are you trying to measure the 24 Volt power supply?
Keep in mind that the input resistance of the ADC is fairly low, 21 kΩ, so your math may have to account for that to calculate gate position from measured voltage.
'
"Optionally, you can purchase the MAX1270 A/D Converter 12-bit, 8 channel 4-20 mA A/D converter. This
is available from Parallax web site" http://www.parallax.com/detail.asp?product_id=604-00026.
'
"Demonstration and example software files used in this documentation may be downloaded from"
http://www.parallax.com/detail.asp?product_id=30064.