LM339 comparator.Hi Everyone!
I would like your advice on which microprocessor I should use to turn on an RGB LED (basically one color at a time) based on the input value (voltage)?
Note: input value range will change in decimals. Thank you.
Because it is easier and fully changeable.Why should it need a microprocessor?
That would depend on a lot of things we haven’t been told.Because it is easier and fully changeable.
I've used discrete logic for some projects but a micro like an Arduino is just so easy to uses and modify as needed.
There is really nothing wrong with a comparator setup but the micro will use less bits too I reckon.
Yes for some of the above, particularity if you were to try to build it yourself.That would depend on a lot of things we haven’t been told.
Is the power supply <5V? if not it needs a regulator plus 2 capacitors.
How much output current is required? A processor would Need output buffers for >5mA, an Lm339 can output 16mA.
Otherwise it’s LM339 plus 4 resistors vs. processor plus programming socket, about 35p for the LM339 and its resistors, and they are a lot easier to get than microprocessors at the moment!