Need something that can switch a relay on or trigger a microcontroller at around 22-27v (adjustable if possible) and switch it off around 30v, and it needs to be accurate to +-1v on the high range or adjustable to get that accuracy. What's the easiest way to do this? It will be used to switch a small generator on a scooter to automatically charge the battery while riding. I'd prefer to avoid expensive solar/windmill charge controllers and will switch the generator manually if possible, just looking to see if there's a somewhat simple circuit capable of doing the job.
EDIT: Just thought of something, if I string enough diodes together (5 volt zener to 25v and normal rectifiers the rest of the way) would that be enough to trigger a power transistor with a pull down, or will the current slowly increase over a large voltage range or something? I could add and remove diodes as needed to adjust the voltage needed to turn on the generator. I've never tried using diodes this way so I have no idea how they'd behave.
EDIT: Just thought of something, if I string enough diodes together (5 volt zener to 25v and normal rectifiers the rest of the way) would that be enough to trigger a power transistor with a pull down, or will the current slowly increase over a large voltage range or something? I could add and remove diodes as needed to adjust the voltage needed to turn on the generator. I've never tried using diodes this way so I have no idea how they'd behave.
Last edited: