Hello.
I have a setup with my arduino Mega, an 16x2 LCD, an encoder and a couple of relays controlling a 220V load. Most of you (or at least some) know the common problem of the LCD going blank after the relay/motor goes off, afaik it is because of the noise and back EMF. The common solution to this problem (according to Don in another post) is to reduce interface caused by the load and keep the remaining noise from getting to LCD wires.
Im posting here asking for help because the changes I've done to my circuit have not solved the problem. My circuit is kind of a backgauge with a triphase 220V motor. A signal from the arduino goes to a TIP122 through a 1K resistor to let 12V pass to the 12V relay, the relay has a snubber next to it. The relay contacts are used to conduct 110V to a contactor that starts or stops the 220V motor. The LCD goes blank even if there is no 110V or 220V connected. The encoder measures the angle of the motor shaft and the arduino stops the signal for the motor when the encoder has reached a certain amount of steps. Right when that happens, the LCD goes blank and the only way to get it working again is resseting the circuit.
So far I've just installed a 10uF electrolitic cap between +5V and GND next to the LCD but it hasnt helped.
Im using a 12V transformer @1.2A, goes to a doide bridge, then to a 7812 that powers both the arduino and the 12V relay. before the 7812 Vin there are a 2200uF and a 0.1uF caps and after the 7812Vout there are 10uF and 0.1uF between Vout and GND.
Im no expert in electronics so I have a few ideas and I want to know if they could work or not:
- the circuit is not really grounded, not to physical groung nor even to the metallic box containing the circuit. Grounding the circuit will help me with the noise and with the LCD not going blank?
- Would adding a 10uF cap next to the 12V relay help with the decoupling? Would it interfere with the snubber diode?
- I read in another post that using lcd.begin(16,2) in the code would restart the LCD and I think it might work but it would not solve the REAL problem at all, but would you recommend using that "trick"?
- What else do you suggest so the LCD doesnt go blank?
I'm really desperate and frustrated with this problem. Hope you guys can help me.
Thanks in advance.
Jhon