CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Reg: LCD problem

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
evaradharaj



Joined: 15 Jan 2009
Posts: 60

View user's profile Send private message Visit poster's website

Reg: LCD problem
PostPosted: Fri Jan 25, 2013 6:00 am     Reply with quote

Hi,

I am using pic16f72 with 4 MHz crystal and 16x2 LCD display. The Interfacing wire between LCD and to the controller is about 30cm long. I am using lcd.c driver file. I have 2 loads which is driven by BT136. The load is two electronics choke with lights (around 80 watt each).

The program is to switch on the lights alternatively (LOAD 1 ON/LOAD2 OFF & LOAD2 ON/ LOAD1 OFF for mentioned period). My program is working properly SOMETIMES. But sometimes, it is not working properly. For example load1 is not switching off when load 2 ON. The LCD is displaying some strange characters...

I am driving the TRIACs by using MOC3021. Why this problem is happening ?please give me suggestion to correct the problem.

If it is EMI/RF problem, how it will come to the circuit? By LCD wires or by the TRIAC circuits (I have not included the snubber circuit).

Thanks
_________________
embedding innovation in engineers
Gabriel



Joined: 03 Aug 2009
Posts: 1067
Location: Panama

View user's profile Send private message

PostPosted: Fri Jan 25, 2013 6:53 am     Reply with quote

to rule out code/logic errors we would need to see the code.
if you have a Circuit diagram you could maybe post that too.

you could have power problems... maybe your pic is reseting or something..

i think you havent provided enough information for us to help you...

do you have Zero crossing detectors....
is there dimming involved or just plain ON/OFF?



Lastly: BE VERY CAREFULL WHEN PLAYING WITH MAINS VOLTAGE-

G.
_________________
CCS PCM 5.078 & CCS PCH 5.093
Mike Walne



Joined: 19 Feb 2004
Posts: 1785
Location: Boston Spa UK

View user's profile Send private message

PostPosted: Fri Jan 25, 2013 10:28 am     Reply with quote

We need loads more information, schematic, basic coding etc.

How are you driving the MOC parts?

Mike
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jan 25, 2013 12:21 pm     Reply with quote

Do some basic trouble-shooting by reducing the extreme conditions.
Example: Remove the 80 watt loads and replace them with LEDs.
Does the problem go away ? If so, investigate that circuit with an
oscilloscope and closely examine your circuit connection methods
and power supply. Also, shorten the LCD leads to only 3 cm.
Does the problem the problem go away ? If so, again, look closely
at your power supply and wiring design.
varadharaj



Joined: 09 Apr 2012
Posts: 19
Location: Salem

View user's profile Send private message

LCD problem solved
PostPosted: Fri Feb 01, 2013 9:57 am     Reply with quote

Hi,

I changed the ribbon wire for LCD with microcontroller and added a snubber circuit of 150ohm and 0.01uf capacitor. The whole module is working fine.

But when we switch on the motor from nearby switch, The LCD is corrupting and also the light load with electronic choke is not turning off...
_________________
Embedding Innovation
Mike Walne



Joined: 19 Feb 2004
Posts: 1785
Location: Boston Spa UK

View user's profile Send private message

PostPosted: Fri Feb 01, 2013 11:06 am     Reply with quote

Work on the premiss, prevention is better than cure.

Try snubbing the switch, (i.e. deal with the problem at source).
Otherwise you either have to find out how EMI is getting into the PIC or apply ALL the cures to the PIC.

Is the PIC still running after you switch motor on?

Mike
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group