Hello Pi'ers,
I have a wheezy setup with a java application talking to an LCD screen (2x16 LED) over I2C.
The applications monitors 2 buttons (GPIO 17 & 24 - normally HIGH) and controls 2 LEDs (from GPIO 14 & 15 straight to GND without -incorrectly- a resistor).
I have noticed that sometimes after leaving the setup on for about a day, during which time the buttons won't be pressed but the LEDs will turn ON and OFF from the java app, the screen shows garbled text instead of the information (time and temperature among the various info). I thought it was a java error that I would debug later but yesterday I noticed something I would never imagine.
As the RasPi was happily displaying its stuff on the screen I removed a (switched off beforehand!) desk lamp from the same mains multisocket the RasPi's power supply is and then magically the display went into gibberish mode! I restarted the RasPi, retried the same unplugging scenario and the problem was very easily reproduced! For the record, the power supply is an original Samsung 2A mains from a Galaxy Tab which I assume it is reliable. Maybe Ill try with my digital lab psu to rule out the chance of being a somehow faulty psu that causes this effect some levels further down from the power supply. Something even stranger is that after a few attempts (re-plugging and unplugging) the gibberish switched back to normal. Carrying on (re-plugging and unplugging) after a attempts again the gibberish was on.
The fact that the lamp was off before unplugging really confuses me. The lamp has no transformer either. Just the standard electrical switch. So practically only passive components were added. Can these cause EMFs and even so, what part of RasPi can be affected so much from such interference? My 20ish short jump wires on my RasPi and LCD?
Obviously I can avoid playing with my lamp while I use my RasPi but I am wondering what could cause this and if I can protect my design from it.
Your help will be very much appreciated as I have seen I2C and garbled text issues on google but none are related to my problem