Arduino 12V digital input

Thread Starter

Lucky-Luka

Joined Mar 28, 2019
181
Any reason despite being a smaller circuit, you have gone away from the opto isolator that was recommended ?
You have recommend me the opto, others have recommended me the voltage divider... As a first try I have chosen something I was more familiar with. Don't take it personal... I have said that I will try the opto solution too...
 

Thread Starter

Lucky-Luka

Joined Mar 28, 2019
181
Thank you
Good luck
In this last revision I've opted for a buck module and a linear one to avoide switching noise and because I want to use this board with 12V and 15V input.
I have also used an opto to avoid the trimmer.
It should work just fine, do you agree? I will try this circuit soon.
Thanks
 

Attachments

click_here

Joined Sep 22, 2020
548
In this last revision I've opted for a buck module and a linear one to avoide switching noise and because I want to use this board with 12V and 15V input.
I have also used an opto to avoid the trimmer.
It should work just fine, do you agree? I will try this circuit soon.
Thanks
Screenshot_20220427-185638.png
Double check what output pins you are using for the 4N35 opto :)
 

ericgibbs

Joined Jan 29, 2010
21,448
hi LL,
The original circuit post #2, will work OK.
This is a sim showing Signal from 10V thru 50v, all the parameters are well within specification.
E
EG 1593.gif
 

Thread Starter

Lucky-Luka

Joined Mar 28, 2019
181
hi LL,
The original circuit post #2, will work OK.
This is a sim showing Signal from 10V thru 50v, all the parameters are well within specification.
E
Nice.
So, I see that there are at least 2 school of thought for my board.
p.s. that simulation consider the fact that input pin draws almost no current so that Zener diode can guarantee almost constat voltage, right?
 

ericgibbs

Joined Jan 29, 2010
21,448
hi LL,
You don't need a constant voltage on an IO input pin.
Any voltage above the Vhigh threshold of about +3V is seen as an High Input , the 4.7V Zener will hold the voltage below +5v.
E
 

drjohsmith

Joined Dec 13, 2021
1,609
Nice.
So, I see that there are at least 2 school of thought for my board.
p.s. that simulation consider the fact that input pin draws almost no current so that Zener diode can guarantee almost constat voltage, right?
Two schools of thought ..
That's not bad for a public forum .
Imagine trying to design a camel ..
 
Top