Arduino universal 12x input PCB inputs; 0-20mA, 4-20mA 0-10V, 24V pushbutton, 24V PNP and NPN
sensors etc.
It is the best to build analog inputs to a separate PCB and digital (opto) inputs to another to get galvanic isolation.
4-20mA 0-20mA analog input 1
R1 R3 R4
4-20 A0 --- A5
R2 C1
Arduino Gnd
R1 = Jumper R4 = 2,2 kohm
R2 = 250 ohm R5 = ---
R3 = 10 kohm C1 = 1 uF polyester capacitor
Spacing 5mm
0-10V analog input 2
R1 R3 R4
0-10 A0 --- A5
R2 C1
Arduino Gnd
R1 = 4,7 kohm R4 = 2,2 kohm
R2 = 4,7 kohm R5 = ---
R3 = 10 kohm C1 = 1 uF polyester capacitor
Spacing 5mm
2-6V digital input 3
R1 R3 R4
1 5 Arduino +5
R2 C1 4 D2 --- D13
R5
CNY17-3
2 Arduino Gnd
R1 = Jumper R4 = Jumper
R2 = 1 kohm R5 = 2,2 kohm
R3 = 100 ohm C1 = 1 uF polyester capacitor
This text must be readable on copper side
Spacing 5mm
5-30V digital PNP input 4
Gnd +5V
R1 R3 R4
s 5 Arduino +5 R5
D2 R5
D3 D4
1 R5
PCB size 160 x 100 mm
R5 D5
R2 C1 4 D2 --- D13
R5 CNY-17-3 CNY-17-3 CNY-17-3 CNY-17-3
_ Arduino Gnd
CNY17-3
2 1
A0 Gnd A1 Gnd
1 1 1
R1 = Jumper R4 = Jumper
R4 R4 R4 R4 R4 R4
R2 = 4,7 kohm R5 = 2,2 kohm
R3 = 2,2 kohm C1 = 1 uF polyester capacitor
Spacing 5mm C1 C1 C1 C1 C1 C1
R3 R3 R3 R3 R3 R3
5-30V digital NPN input 5 Z1
R1 R3 R4 R1 R2 R1 R2 R1 R2 R1 R2 R1 R2 R1 R2 J1 Cut here
+ 5 Arduino +5 to make
1 NPN input
R2 C1 4 D2 --- D13
R5
3 2 1 4 4 5
s Arduino Gnd
CNY17-3
2
_ _ _ _ _ _
R1 = Jumper R5 = 2,2 kohm s + s + s + s + s + s
R2 = 4,7 kohm J1 = Jumper
R3 = 2,2 kohm Z1 = Cut the copper
R4 = Jumper C1 = 1 uF polyester capacitor s s
Spacing 5mm 0-10V
input
R3 & C1 generates a RC low pass filter, alter
as needed. R4 is to protect arduino inputs _ Push _
especially when connecting wires power on. _ + button +
s Inductive Inductive
_ _ Cut the copper where pointed with arrows Drilling Screw-connectors 1,5mm
This drawing is produced + s proximity + proximity
Battery to get a potential free optoisolated input Other components 0,6mm
with Inkscape program operated 4-20 mA
sensor PNP 24V pwr sensor NPN
sensor
for a self-powered device. PCB mounting holes 3mm
transmitter supply
running on Ubuntustudio
Markus Kantola A pushbutton goes between + and s