borgea01
Hello, I isolated an 24VDC sensor circuit from the 5V from  Arduino using optocoupler and just uploaded a simple contact and coil program  and followed this schematic but doesn't seem to work i have tested and the optocoupler is working as intended but for some reason the Arduino is not getting the signal any idea how to fix? Thank you! 20201009_171608.jpg  20201009_171558.jpg   20200913_175925.jpg 
Reply 0 0
thiagoralves
Test your program directly on Arduino pins first, without your 24V circuitry. Isolate software and hardware. Make sure the software is working correctly then you move to hardware
Reply 0 0
Reply