like the title says, my aim is to detect on/off states on a 24V input with a microcontroller (arduino). A pretty common problem, for the looks of it, but none of the found solutions meets all of the following criteria:
- the input may vary to some degree (22-30V);
- ideally no heat generation, no 1-2W resistors;
- as small and with little parts as possible;
- and it has to have a LED
So I came up with this:
On a breadboard this seems to work so far, but I wanted to show it here, because most of you are lot more experienced than I am. So, can something be improved in my circuit, considering the above expectations ?
Is that quite usual, to have say 24V into the base and 5V on the collector of an NPN? You can do that, can you, based on Vcb ratings, ignoring Vbe? I thought Vbe was usually 6 to 7V max. I feel a little confused in this thread, I haven't seen that before. Where's the 24V going? Is that schematic wrong? Thanks.
- - - Updated - - -
Hi jelezarov,
If that is not correct because of the BJT Vbe abs. max. ratings, then a 38k or 3.8k into the base, and a 10k or a 1k to ground will divide that 24V down to 5V.
Is that quite usual, to have say 24V into the base and 5V on the collector of an NPN? You can do that, can you, based on Vcb ratings, ignoring Vbe? I thought Vbe was usually 6 to 7V max. I feel a little confused in this thread, I haven't seen that before. Where's the 24V going? Is that schematic wrong? Thanks.
The Vbe(max) is not exceeded. It is ~0.7V all the time.
If that is not correct because of the BJT Vbe abs. max. ratings, then a 38k or 3.8k into the base, and a 10k or a 1k to ground will divide that 24V down to 5V.
@barry - you are of course right about my description The current experiment I am working on is about watching 6x24V inputs. Anyway I though that in general would be easier to add some more small components than another Arduino if one needs to watch more inputs, so I toke this route. I will check the multiplexer approach too, thanks for the suggestion. It is always nice to learn new stuff.