monitor a battery voltage, and it get's lower than 24v i would need to activate a latch relay to switch on the charger and when it get 30v activate the latch relay to turn off the charger..
And would be nice also to produce some beep alarm when it reaches the 24v ?
I would like to this wihout computer intervention, but also being able to manually force the relay by computer interface (usb) ..
Please, give some next steps i'm complete lost where to start...
what to buy, how to program ?
Ouch. Without any clue about electricity or programming, the easiest, fastest and cheapest way to get the desired function is to buy a finished black box on ebay that does what you need.
If you don't believe me, fine go ahead. Start out with one of those: http://arduino.cc/en/Main/Hardware
plus a collection of resistors, a few leds and a few general purpose transistors and diodes.
Then go ahead an learn to program it a little. A good stating point is here: http://arduino.cc/en/Tutorial/HomePage
Once you have that down pat, you can think about starting to solve the problem above. If you fool around with the 24V supply too early, there's a good chance you're going to fry your microprocessor.
hi, i have know how on programing (c c# & delphi), i'm also not zero in electricity..
just don't want go the wrong way because i just found the adruino..
i was looking at first on this "http://www.phidgets.com/" and they have the relay and the V sensor.
But it seem very expensive and they don't have the latching relay..
Then you would know that the program would be little more than
if (voltage < 24) {
pulse_relay_set_pin();
beep_alarm();
}
if (voltage > 30)
pulse_relay_reset_pin();
Normally some hysterisis would be a good idea as well but in this case I don't think it matters as doing multiple pulses to the same latching relay pins won't do any harm.
As mentioned divide your input voltage by 6 so the Arduino sees 0-5v.
And for the PC interface read the RX line and test for one or more characters.
BTW, this could be done with a comparator or two or a single 8-pin ATtiny85, an Arduino is an overkill.