Greetings all,
Some project guidance and assistance please if you would be so kind. I am building a computer controlled router and I'd like to monitor which of the various electrical circuits are active via an LCD. The circuits are 9, 12, 24 and 68 volts DC there are about 6 feeds in each voltage I'd like to monitor. I've looked at voltage dividers, opto couplers, relays and various other methods for the past couple of days and although much better informed, I happily admit I am none the wiser! The opto coupler seems like the best way to proceed and hooking it to an Arduino almost within my capabilities! But although there are many examples of using optocouplers on the output side of an Arduino, there are very few and mostly conflicting diagrams regarding using them on the input configuration.
My question relates to what is needed and how to organise it. From what I've read, the input side of an opto coupler is treated as a normal LED with a resistor in front of it and the output side of the opto (the input to the Arduino) uses a 5v feed through another resistor to pin 5 and the "reading" taken from pin5 too. Pin 4 going to Arduino ground.
I've tried simulating this with Circuitmaker and got some very strange results (mainly being unable to "trigger" the output of the opto - but I think that might be due in part to my lack of familiarity with the package and the resistor values I'm using found on the net! So before I go and let the smoke out on the breadboard, I thought I'd seek advice!
Any suggestions about what values to use with a 4N25 or similar would be most welcome, as would suggestions of easier or more elegant way of doing this.
Thanks for your time to read this and for sharing lots of information I've found useful in previous projects.
Some project guidance and assistance please if you would be so kind. I am building a computer controlled router and I'd like to monitor which of the various electrical circuits are active via an LCD. The circuits are 9, 12, 24 and 68 volts DC there are about 6 feeds in each voltage I'd like to monitor. I've looked at voltage dividers, opto couplers, relays and various other methods for the past couple of days and although much better informed, I happily admit I am none the wiser! The opto coupler seems like the best way to proceed and hooking it to an Arduino almost within my capabilities! But although there are many examples of using optocouplers on the output side of an Arduino, there are very few and mostly conflicting diagrams regarding using them on the input configuration.
My question relates to what is needed and how to organise it. From what I've read, the input side of an opto coupler is treated as a normal LED with a resistor in front of it and the output side of the opto (the input to the Arduino) uses a 5v feed through another resistor to pin 5 and the "reading" taken from pin5 too. Pin 4 going to Arduino ground.
I've tried simulating this with Circuitmaker and got some very strange results (mainly being unable to "trigger" the output of the opto - but I think that might be due in part to my lack of familiarity with the package and the resistor values I'm using found on the net! So before I go and let the smoke out on the breadboard, I thought I'd seek advice!
Any suggestions about what values to use with a 4N25 or similar would be most welcome, as would suggestions of easier or more elegant way of doing this.
Thanks for your time to read this and for sharing lots of information I've found useful in previous projects.