I am working on an espresso machine project where I want to read the status of a 120VAC switch using a 5V Arduino. After much research I have come up with the attached circuit (see attached PDF).
Firstly: Is this a reasonable circuit to accomplish this? What could be improved?
Secondly: I want to do hardware debouncing between the PS2505 optoisolator and the 74HC7014 Schmitt Trigger, however all of the circuits I have found to debounce have a 10K pullup resistor and a 0.1uF to GND. If I were to use that I would end up with a voltage divider made up of the 10K pullup just mentioned and the 470 ohm resistor in the schematic between the PS2505 emitter and Schmitt Trigger input.
How can I accomplish this?
I have also attached the datasheets for the PS2505 optoisolator and 74HCT14 Schmitt Trigger.
Firstly: Is this a reasonable circuit to accomplish this? What could be improved?
Secondly: I want to do hardware debouncing between the PS2505 optoisolator and the 74HC7014 Schmitt Trigger, however all of the circuits I have found to debounce have a 10K pullup resistor and a 0.1uF to GND. If I were to use that I would end up with a voltage divider made up of the 10K pullup just mentioned and the 470 ohm resistor in the schematic between the PS2505 emitter and Schmitt Trigger input.
How can I accomplish this?
I have also attached the datasheets for the PS2505 optoisolator and 74HCT14 Schmitt Trigger.
Attachments
-
10.8 KB Views: 18
-
496.2 KB Views: 9
-
238.6 KB Views: 7