Measuring Voltage of 2V batteries
Hey Guys
it's been a little while (been playing with my new cnc machine)
I have an SX48 Board that I am hoping to use. I want the circuit to basically monitor the voltage coming out of 8 2V rechargable Batteries sepratley, when one of them drops below say 1.5V, I want to trip a relay (via npn transistor to keep the ampage down ont he sx pins), the relay will connect the battery to the charger.
Now I guess i could calculate how long it would take the battery to charge up then switch the realy off, or could i measure the actual voltage and switch it off at 2V?
I also wanted to have a red and green led for each battery, one to say OK and the other to say "charging".
Im still struggling to move over from the propeller, the SX is cheaper so would rather use it for this project.
Question is, how do i start, i guess I need a divider of some sort, but do not know how to figure it out. Also im struggling to get started with the code, i guess it depends on how I measure the voltage (analog/digital), i guess I could measure it digitally (cmos?). How many pins can use analogin?
I guess the whole system would be a loop, check all input pins, trigger any relays/led's, wait a few secs, start loop again.
Any Advice?
Once I have this one figured (hopefully with your help), then i can move onto the 6V and 12V batteries (one SX board for each i guess)
Thanks
DJH
it's been a little while (been playing with my new cnc machine)
I have an SX48 Board that I am hoping to use. I want the circuit to basically monitor the voltage coming out of 8 2V rechargable Batteries sepratley, when one of them drops below say 1.5V, I want to trip a relay (via npn transistor to keep the ampage down ont he sx pins), the relay will connect the battery to the charger.
Now I guess i could calculate how long it would take the battery to charge up then switch the realy off, or could i measure the actual voltage and switch it off at 2V?
I also wanted to have a red and green led for each battery, one to say OK and the other to say "charging".
Im still struggling to move over from the propeller, the SX is cheaper so would rather use it for this project.
Question is, how do i start, i guess I need a divider of some sort, but do not know how to figure it out. Also im struggling to get started with the code, i guess it depends on how I measure the voltage (analog/digital), i guess I could measure it digitally (cmos?). How many pins can use analogin?
I guess the whole system would be a loop, check all input pins, trigger any relays/led's, wait a few secs, start loop again.
Any Advice?
Once I have this one figured (hopefully with your help), then i can move onto the 6V and 12V batteries (one SX board for each i guess)
Thanks
DJH
Comments
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The first rule to being successful is "Learn from your mistakes",
The second rule is "Be willing to make mistakes"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
www.hittconsulting.com
·
thanks [noparse]:)[/noparse]
DJH
I believe many smart chargers actually sense the charging current. The current tends to decrease as the battery reaches full charge. You could look into that possibility or, since you are using an SX, you could apply the charger for a while, perhaps allow the battery to rest a bit, then check it again. If you are not in a hurry to charge the batteries a Charge-Rest-Test cycle might work well for you.
- Sparks
thanks
DJH