jelezarov
Member level 1
Hi,
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![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
So I came up with this:
![Screenshot_2018-05-12_15-07-39.png Screenshot_2018-05-12_15-07-39.png](https://www.edaboard.com/data/attachments/77/77876-ad740bf2f58192676ade537d74ef772d.jpg)
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 ?
Cheers
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:
![Screenshot_2018-05-12_15-07-39.png Screenshot_2018-05-12_15-07-39.png](https://www.edaboard.com/data/attachments/77/77876-ad740bf2f58192676ade537d74ef772d.jpg)
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 ?
Cheers