adc questions
mobile_bob
Posts: 50
i am new to the microcontroller game, and have been working to develop my system for the last month or so
i am now trying to adapt a current transformer (to sense line current) and take the voltage from the CT
to work within the bs2
i understand that i need to use an analog to digital converter, but here is the rub
the adc's i have looked into require 8 lines (pin's) plus to take the variable voltage and convert it
into something the bs2 can work with within the codeing.
is there another way to get an adc to communicate to the stamp without using so many IO pins?
it would appear that an 8 bit adc will give me 256 step resolution,, i need only 3 or 4 steps of resolution
i am thinking of just using 3 or 4 CT's and input each into the stamp on seperate pins, that way i only use up 3 or 4 pins
somehow i am missing the boat here, surely there is a way to get the adc to communicate to the bs2 with far fewer pins?
can anyone point me in the right direction?
thanks
bob g
i am now trying to adapt a current transformer (to sense line current) and take the voltage from the CT
to work within the bs2
i understand that i need to use an analog to digital converter, but here is the rub
the adc's i have looked into require 8 lines (pin's) plus to take the variable voltage and convert it
into something the bs2 can work with within the codeing.
is there another way to get an adc to communicate to the stamp without using so many IO pins?
it would appear that an 8 bit adc will give me 256 step resolution,, i need only 3 or 4 steps of resolution
i am thinking of just using 3 or 4 CT's and input each into the stamp on seperate pins, that way i only use up 3 or 4 pins
somehow i am missing the boat here, surely there is a way to get the adc to communicate to the bs2 with far fewer pins?
can anyone point me in the right direction?
thanks
bob g
Comments
Tracey Allen's website (www.emesystems.com) has a section where he discusses measuring battery voltage using a Stamp's RCTIME statement with a few passive parts. This might do the job for you.
It, too, is talked to serially and only uses a few Stamp pins.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Sisk
http://www.siskconsult.com
·