Hi all,
I'm here to ask you an help for a circuit I'm building. I'm an IT guy, with the passion for electronic, so I'm more on the embedded side rather then the analog.
I'm building a board to drive a machine. This machine has buttons and inductive proximity sensors, all powered at 24V. My board has to read that sensors.
For most of them I will use software debounce, but for 2 proximity sensor I'd rather use hardware debounce.
At first I was thinking about an RC filter, but I've notice something "strange" to my eyes doing experiments.
Please find the attached images. One is the sample circuit I've build. The other the output catched with my 50MHz oscilloscope while pressing the button. 2 channels are connected, one to the 24V side, the other to the 5V side.
The snapshot is taken pressing the momentary button - not a particular one, just one I've around, I mean that I've not choose one with a bad debounce behavior. The optocoupler is a cheapy PC817C.
I thought that even on the 5V side I get the "debouncy" curve, but it seems it was not so!
This are my question:
1)
Does anyone can explain this to me?
2)
If i use this circuit, do I also need RC filter? It seems to me that i don't.
3)
Are debounce needed for inductive proximity sensors?
Hope I was clear enough.
Thank you all!