Hopefully someone will have the answer I'm looking for. I have looked for old posts on this, but found none.
I am trying to take a solenoid actuation pulse (12-18v) and feed it as HIGH into Arduino (attiny or atmega ultimately). The solenoids are 2 coil, 3 wire, The intent is to output an action dependent on the solenoid last direction change. I have the programme and outputs working fine, but can not get the input from the solenoids to the correct level. I have tried using opto isolators (4N25), opamps (LM324), transistors (BC557) and combinations of these. I will next try voltage division, but may struggle to get a digital HIGH level voltage from both 18v and 12v after division.
Have I been over thinking this, and there is a simple solution? Any suggestions for a solution?
I will post some circuit diagrams I have tried later, they are on a computer not connected to the web.
I am trying to take a solenoid actuation pulse (12-18v) and feed it as HIGH into Arduino (attiny or atmega ultimately). The solenoids are 2 coil, 3 wire, The intent is to output an action dependent on the solenoid last direction change. I have the programme and outputs working fine, but can not get the input from the solenoids to the correct level. I have tried using opto isolators (4N25), opamps (LM324), transistors (BC557) and combinations of these. I will next try voltage division, but may struggle to get a digital HIGH level voltage from both 18v and 12v after division.
Have I been over thinking this, and there is a simple solution? Any suggestions for a solution?
I will post some circuit diagrams I have tried later, they are on a computer not connected to the web.