Hi,
I am developing a controlling system using arduino, lcd display and some relays. Switching of the relays is as follows.
Arduino output is used to switch a transistor through an opto isolator.
6 no of 12Vdc relays are switched by that transistors.
24Vdc relays are switched by 12Vdc relays.
some solenoids and 2x230Vac contactors(to drive a 3phase motor clockwise & anti-clockwise) are powered by 24Vdc relays.
When there are no solenoids connected, the lcd display works properly. But when solenoids and motor are connected, display shows some random charactors when switching the relay. I have used diodes for every relay.
I feel I may have to use some other protection techniques to but I have no clear idea of what to do. Please help me.
It sounds like you are using a lot of current with all those relays, and whatever. Maybe your power supply is overloaded. What power supply(s) are you using?
the USB can be expected to provide about 500ma
the onboard 5V regulator can be expected to provide about 500ma with 12V on Vin.
I am using 5A 12Vx2 transformer and rectified and 12V is given to the arduino and the relay board.
24V is given to the 24V relays. I have not given 5V to the lcd backlight either from arduino or power supply and just given Vcc and Gnd and 6 pwm pins only.
so will you think there is a problem with the power supply?
Do you have a volt meter, can you test the 5v on the arduino?
Also look at the 12volt. I would bet that it is closer to 20 volt.
Feel the onboard 5v regulator. It should be warm/hot, but if it burns your finger, it is to hot.
You mention you give 12v to the relay board. Can you provide a link so we can see what relay board you are using.
Most relay boards for arduino use 5v to energise the relays. outputs can/will be higher than 5v, so I am not sure where your 12v is being used.
There is a 7812 regulator to provide 12V to the arduino & relay board. I checked the 5V out from the arduino & there is no problem with that. But, I checked the onboard regulator and it is hot.
The relay board is made by one of my friends and This is the link of that circuit.
Here, instead of MFU, it is connected to arduino. R1 = 100 & R2 = 1k. supply from 12V regulator is used instead of 9V battery. Here the load is a 12Vdc relay coil. Transistor is D400 & optocoupler is pc123.
There are 7 such kind of circuits in the relay board. I have ordered a relay board & I have not still received that one. Hope to connect it after receiving.
Your relay schematic did not show a protection diode across the relays coil. It's possible that the back EMF could be causing our problem.
It is likely that when you get your 5v relay board, it will not cause the problem.
5V - 2V = 3V (voltage across the 100R opto i/p resistor)
3V / 100R = (30ma current from each pin)
30ma X 7 = 210MA too much current (7 relays) plus pins for LCD
12V - 5V = 7V (voltage across the Arduino regulator)
7V X 210ma ~ 1.5 watts too hot (wattage dissipating in the Arduino regulator)
If you create a forum post containing a link it is a good idea to 'Preview' your information before posting it. When the preview is displayed you should check on the link and verify that it works. Only if everything is OK should you actually go ahead and 'Post' it.
I hope to call lcd.clear() about 1s before & lcd.print() about 1s after switching of each relay without delay() function. I am still working on that & I would like to know your opinions. When I browsing about this problem, I saw that some people have called lcd.begin() at several places. Will it be harmful for the display?