Pages: [1]   Go Down
Author Topic: LCD influenced by ac current?  (Read 712 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 20
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

I'm making a device to control an antenna rotor. It has an LCD (2x16) and several relays that switch an AC current to the rotor. The AC for the rotor comes from a separate transformer. The arduino and the rest of the circuit are powered by their own transformer with 7805 etc.

If the AC for the rotor is not connected to the relays, all works fine. The displays works and I can make the relays switch. If I connect the rotor AC and I switch on the device, the LCD works at first. But when I start to push the buttons to trigger the relays that control the rotor AC current, the LCD goes blank. Sometimes from the first relay switch, sometimes after a couple of relay switches.  No idea why. The backlight remains on and if I turn the contrast pot I can get the "blocks". The rest of the device still works as I can hear the relays switch, I'm just loosing the screen. Can it "crash"?

Can the rotor AC signal have an influence on the LCD? It goes through the same PCB as it is switched by the relays. Anybody an idea of what goes wrong?

If I switch the device off and back on, the LCD works again as it should.

Cedric
Logged

Western New York, USA
Offline Offline
Faraday Member
**
Karma: 32
Posts: 4257
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Can the rotor AC signal have an influence on the LCD?

Yes. Welcome to the real world.

Are the wires going from your Arduino to your LCD physically separate from those going to the relays?  Do you have 'snubber' diodes across your relay coils?


Don
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 20
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Don,

yes, I have diodes across the relay coil. The wires from the LCD are separated from the AC wires, but they are not far apart. And on the PCB, they are also close together.

Is there any way I can improve the shielding of the LCD?

Cedric
Logged

Western New York, USA
Offline Offline
Faraday Member
**
Karma: 32
Posts: 4257
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Is there any way I can improve the shielding of the LCD?
The problem is most likely not with the LCD itself but with the wires going to it..

Don
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 602
Posts: 33362
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Can it "crash"?
Yes it is a computer system itself, multiplexing signals onto the LCD dots.
First thing to do is to add extra supply decoupling capacitors at the LCD.
http://www.thebox.myzen.co.uk/Tutorial/De-coupling.html
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 20
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I added a decoupling capacity and we measured the ripple on the 5V, which was 0.01V. It did not help.

If it gets in through any of the datalines, how can I decouple them?

Cedric
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 602
Posts: 33362
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I added a decoupling capacity
What value capacitor?
You need a ceramic 0.1uF and I would also include a 47uF electrolitic.

Decoupling is not just about ripple it is about transients as well.

Quote
If it gets in through any of the datalines, how can I decouple them?
This is not very likely and quite difficult to eliminate. This is because any suppression of transients will also suppress the signal. Things like ferrite beads and very small value capacitors would help.

However, keep the decoupling on an have a look at how your ground is wired. Make sure it is as far away from the AC lines as possible. Also make sure it goes straight back to the arduino and it does not go on to ground any other device or component.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 20
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Would it make a difference if I connect the R/W pin to the arduino instead of directly to ground? My thinking is that the LCD would not "listen" to any stray ac while the R/W is high, and hence would not crash. You think this makes sense?
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 602
Posts: 33362
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

No it would not make any odds, leave it connected to ground.
Logged

United Kingdom
Offline Offline
Tesla Member
***
Karma: 224
Posts: 6593
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Are the power and/or ground wires to the LCD shared with power and/or ground wires to the relays? If so, change the wiring so that the LCD has its own +5V and ground wires from the Arduino. The backlight +5V and ground don't matter so much, it's the main +5V and ground that are susceptible to noise.
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Pages: [1]   Go Up
Jump to: