rctime circuit w/1-5v input on the polldown
Tobias
Posts: 95
I am using the rctime code circuit with a time value, I took the output voltage (1-5 volts) and put it in with the polldown resistor. seems like it works great. But the problem is, see the tranducer has three leads positive, neg and output i am using a different power supply 12vdc for the transducor, when i connect the neg lead to the bs2 vss port my time value goes to 0000 but when i just use the output lead it works good.· The real problem is when i connect the bs2 to my project with different components the neg lead from the transducor goes to grd. what's going on.
-Tobias
-Tobias
Comments
·· What is the output voltage of the transducer?· If it is more than 5V you could easily damage the I/O pin on the BASIC Stamp.· I would recommend measuring this voltage and if necessary using a voltage divider to scale the output.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
-Tobias
http://www.emesys.com/BS2rct.htm#B_voltage
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
-Tobias
I'm a little baffled by this problem.....so just to try and help.
I think you are having "isolation power supply" issues. What is important is....... what is powering what?
We need to know what kind of transducer you are working with.
A schematic would be useful as well.
We need to know what you are using for power supplies, the input source, and the output voltage.
I worked in automation for 6 years...and learned you can't always connect different power sources grounds. One DC ground may have a different potential than another(meaning one may not actually be at 0v.....it maybe at -0.023v...relative to each other.....which affects things). This also causes a problem with accurate readings from your sensor. Since the two power supplies have no commonality.....the output can not be read accurately from a chip on a different power supply.
I couldn't tell the possibility of damage to the Stamp without a schematic.
It should be noted....that the accuracy I'm speaking of may not be needed in your application.
Wow....I'm sorry for going on and on.......just trying to help find the problem,
James L
-Tobias
When you do connect that to Vss, you see a reading of zero because the output of the transducer is near or even less than thd 1.3 volt Stamp threshold, and the RCTIME commmand times out and returns a value of zero. It is much easier to detect voltages that are some minimum value greater than 1.3.
What is the transducer? Maybe you could attach its (+) terminal to 12 volts, as you have it now, and its (-) terminal to a 5 volt Vdd. The transducer would then have 12-5=7 volts across it, and the transducer output would go from 1 to 5 volts with respect to Vdd, or 5 to 10 volts with respect to Vss. The RCTIME circuit could measure that. This is just hazarding a guess. Depends on your transducer and its supply current and the application. There is a SERIOUS RISK that the Stamp could be fried by the connection to 12 volts from the transducer if it is on the same Vdd supply. You could lift the (-) terminal of the transducer to +5 volts with its own regulator or precision zener diode.
Or, get an analog to digital converter.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
-Tobias
-Tobias
And yes, you can use the 12 volt supply into Vin to power the stamp.