SWAGGANEER
Newbie level 4
- Joined
- Jul 14, 2014
- Messages
- 5
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 46
Hey there.
I have a circuit where I need to get 120VAC down to 5VDC for use with a GPIO expander device, I am currently using an MCP23S17. I am using a half-wave rectifier, to a resistor network used to limit current and divide the voltage, then a zener diode to regulate the voltage to 5V. All debouncing is handled by software, so a half-wave is fine. The circuit is used as a digital input module for a PLC.
The problem I am getting is that I am getting negative voltages out of my half-wave rectifier. These should be equal to the fwd voltage drop of the diode (~600mV), but I am getting -1 to -2 VDC on my scope. I guess I have two questions:
1) How do I reduce this negative voltage? It occurs during the crest of the AC input waveform.
2) Will the negative voltage damage the GPIO port? There is no mention of it in the datasheet. If I can ignore it that would be the easisest and cheapest solution.
Thanks in advance for any input.
I have a circuit where I need to get 120VAC down to 5VDC for use with a GPIO expander device, I am currently using an MCP23S17. I am using a half-wave rectifier, to a resistor network used to limit current and divide the voltage, then a zener diode to regulate the voltage to 5V. All debouncing is handled by software, so a half-wave is fine. The circuit is used as a digital input module for a PLC.
The problem I am getting is that I am getting negative voltages out of my half-wave rectifier. These should be equal to the fwd voltage drop of the diode (~600mV), but I am getting -1 to -2 VDC on my scope. I guess I have two questions:
1) How do I reduce this negative voltage? It occurs during the crest of the AC input waveform.
2) Will the negative voltage damage the GPIO port? There is no mention of it in the datasheet. If I can ignore it that would be the easisest and cheapest solution.
Thanks in advance for any input.