Hey,
I'm currently trying to get my head around electronics and started a few months ago with very basic experiments. My goal is to understand, how things work, how to design circuits, and how to fix stuff. It's going to be a hobby only;)
So my first project will be a voltage meter for my motorbike electrical system. Here some requirements:
- The circuit should indicate a voltage below 12V, between 12V and 15V and above 15V by means of a LED
- The LED brightness should adapt to the ambient brightness, so I don't get blinded at night but see the LED in bright sunlight
- The circuit should operate between 10 and 27V
- A hysteresis would be nice, so the indication is clear. The lack of precision doesn't really matter.
- For now, I plan on building the circuit using a prototype matrix board.
- There is not too much space in my cockpit, so the smaller the better.
So far I figured out the following alternative approaches:
1) Arduino
2) Comparator
3) Z-Diodes
4) Thyristors
Could you give me advice on which approach to choose? What are the advantages and disadvantages? Most interesting would be robustness/durability, power consumption, and anything I should take into account, which is relevant for using the voltage meter in my motorbike, and which I might not figure out in my lab.
I build a step-down power supply, which provides 5V. I need that for the Arduino or for the 555 timer, which I use for dimming the LED in approaches 2-4. So I can use this to generate my reference voltage for approache 2. However, in the range of 10 to 27 V, my output voltage varies by a bit less than 1V. So this might actually be a problem for the reference voltage.
1) ArduinoAdvantages:
- Straight forward simple design
- Hysteresis simply implemented
- Very little components required, most likely the smalest alternative
Disadvantages:
- How likely are EMC problems with a microcontroller in close vicinity to all the wires running through my cockpit?
2) ComparatorAdvantages:
- Relatively few components, compared to 3
- Hystereses simply implemented
Disadvantages:
- Voltage divider required, which might not be too precise due to my power supply. But I suppose I can tune this by using potentiometers.
- I'll need the comparator and a NAND gate, so this might take most space in the end.
3) Z-DiodesAdvantages:
- I don't need a reference voltage.
Disadvantages:
- Requires relatively many componentes -> might not be the smales solution
- Hysteresis would require many more components
4) ThyristorsAdvantages:
- Fewer components than 3, might be the smallest solution not using a microcontroller
- I don't need a reference voltage.
Disadvantages:
- Hysteresis would require many more components
If it helps, I can provide some schematics. I have not yet done the full design on all alternatives, but I have some drafts. For the moment, I spare you trying to decypher my scribbles;) I'd need to draw them nicely. My designs so far are based on circuits from the Encyclopedia of Electronic Circuits. I case you have them at hand, here the references: 2) Vol 6 page 689, 3) Vol 3 page 767, 4) Vol 3 page 762.
Thanks a lot in advance for the support!
Johannes