Home › Forums › Microcontrollers › PIC Microcontroller › LCD displays garbage when turning on relay
- This topic has 3 replies, 3 voices, and was last updated 5 years, 4 months ago by Suneth Rathnayake.
-
AuthorPosts
-
November 11, 2014 at 11:06 am #9806PNParticipant
I have a doubt and would be grateful if you could suggest something. Im interfacing PIC18f4550 with uln2803 to drive relays which turns on suction pumps and solenoid valves. My problem is that LCD display messes up with display after switching relays. Ex i turn on relays for pumps and display “TEST IN PROGRESS” sometimes its fine other times it shows “UD50 ” in second line or “IN PROGRESS” in second line. where as im displaying test in prog in first line. Please help me out and reply today itself. Thanks
November 11, 2014 at 3:29 pm #9811Ligo GeorgeKeymasterHello it may be caused due to EMI (Electromagnetic Interference) problems.
If you are using same power supply for relay and LCD, make sure that you are using proper filtering capacitors.
Add proper power supply decoupling capacitors near to the VDD and VSS of PIC, LCD etc. Try with parallel combination of 10uF and 0.1uF. If it doesn’t works use 1nF, 100nF and 4.7uF in parallel.
If you are using long wires to LCD, reduce its length.
Make sure that there is sufficient delay after each LCD write.
Also check whether the clock frequency in the project settings and hardware / simulator is same.November 11, 2014 at 4:11 pm #9813PNParticipantHello, Thank you i added some more delay and it works now. power supply i had already separated.
October 21, 2017 at 12:16 pm #13925Suneth RathnayakeParticipanthello
this help is work for me well done and thank you for your valuable information
-
AuthorPosts
- You must be logged in to reply to this topic.