HellasTechn
- Apr 14, 2013
- 1,579
- Joined
- Apr 14, 2013
- Messages
- 1,579
Hello everyone !
My latest project involves a micro controller and a solenoid that works with 220VAC. Once the solenoid gets the 220VAC on its coil, it opens for a few seconds. My goal is to count how many times the solenoid opens. I Think that i can use a bridge rectifier and an optocoupler to interface with the MCU.
Googling around, i found this picture which cant quite understand. What is the purpose of D2 ?
The way i see it, just the bridge with a small value cap in parallel to its + and - outputs would be okay to be fed directly to the optocoupler's A and K respectively. that would give me 0 on the mcu's input pin for as long as the solenoid is engaged. i guess there are optocouplers that can handle 300V right ? Or maybe adding a large resistor value in series with the optocoupler's anode pin.
Suggestions ?
My latest project involves a micro controller and a solenoid that works with 220VAC. Once the solenoid gets the 220VAC on its coil, it opens for a few seconds. My goal is to count how many times the solenoid opens. I Think that i can use a bridge rectifier and an optocoupler to interface with the MCU.
Googling around, i found this picture which cant quite understand. What is the purpose of D2 ?
The way i see it, just the bridge with a small value cap in parallel to its + and - outputs would be okay to be fed directly to the optocoupler's A and K respectively. that would give me 0 on the mcu's input pin for as long as the solenoid is engaged. i guess there are optocouplers that can handle 300V right ? Or maybe adding a large resistor value in series with the optocoupler's anode pin.
Suggestions ?