PR 11 Temperature Control System..

LED Blinking, Walking with Cytron Servo, Displaying RFID, Multi-function Mobile Robot......

Re: PR 11 Temperature Control System..

Postby zhenning » Thu Dec 20, 2012 2:41 pm

Is your clock settings correct? Is your delay function provide the right delays?
zhenning
Enthusiast
 
Posts: 351
Joined: Thu Dec 30, 2010 12:32 am

Re: PR 11 Temperature Control System..

Postby Tianjin » Thu Dec 20, 2012 11:12 pm

zhenning wrote:Is your clock settings correct? Is your delay function provide the right delays?

1.I don't touch the delay function given by cytron.

Hey, thank you very much. I starts reading ,there was a problem on initializing the LCD.
Those who have experience on LCD has to prepare another tutorial on c compiler, most tutorials are on Hitech.
for more clarity on lcd initialization, i'll come back.
Tianjin
Novice
 
Posts: 19
Joined: Mon Dec 10, 2012 1:01 am

Re: PR 11 Temperature Control System..

Postby robosang » Fri Dec 21, 2012 7:57 am

Hi Tech is C compiler
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm

Re: PR 11 Temperature Control System..

Postby Tianjin » Fri Dec 21, 2012 6:31 pm

robosang wrote:Hi Tech is C compiler

Hi thank you.
Look, when I send char('T') , the LCD display char"V".. this thing happens for alomost more letters. tell me why is this happening? am waiting ur replay.
Tianjin
Novice
 
Posts: 19
Joined: Mon Dec 10, 2012 1:01 am

Re: PR 11 Temperature Control System..

Postby zhenning » Fri Dec 21, 2012 6:41 pm

Please post some photos.
zhenning
Enthusiast
 
Posts: 351
Joined: Thu Dec 30, 2010 12:32 am

Re: PR 11 Temperature Control System..

Postby Tianjin » Sat Dec 22, 2012 12:49 am

my lcd 16x2 works but when i want to display like
TEMP A=22.3 it displays like this VGOR?22.3
T is changed to V
E is changed to G
M is changed to O
P is changed to R etc
so why is the lcd changing character TEMP A= into VGOR?
Attachments
lcd.JPG
incorrect lcd reading
Tianjin
Novice
 
Posts: 19
Joined: Mon Dec 10, 2012 1:01 am

Re: PR 11 Temperature Control System..

Postby shahrul » Sat Dec 22, 2012 8:02 am

Tianjin wrote:my lcd 16x2 works but when i want to display like
TEMP A=22.3 it displays like this VGOR?22.3
T is changed to V
E is changed to G
M is changed to O
P is changed to R etc
so why is the lcd changing character TEMP A= into VGOR?

You use same coding with sample PR11?
If yes, maybe you are wrong wiring D0-D7 of the LCD.
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

Re: PR 11 Temperature Control System..

Postby robosang » Sat Dec 22, 2012 4:23 pm

Agreed with Shahrul, if the coding is same, should be the wiring. Photo of the hardware.
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm

Re: PR 11 Temperature Control System..

Postby Tianjin » Sat Dec 22, 2012 6:36 pm

I am sure of the connection, the numbers are displayed well. the problem is on the characters.
instead of displaying TEMP A= value, it displays VGOR?value, as u look at the photo.
for the program,am using PR11 and I touched only
ADCON1 = 0b00011110;
ADCON2 = 0b10010100;
and i ignore CHANNEL1 SINCE I HAVE ONLY ONE LM35.
My device is p18f4520.
Attachments
IMG_0472 edited.jpg
Tianjin
Novice
 
Posts: 19
Joined: Mon Dec 10, 2012 1:01 am

Re: PR 11 Temperature Control System..

Postby robosang » Sat Dec 22, 2012 10:32 pm

Can you clarify, which pin from PIC is connected to LCD? PORTD? From the wiring, it does not seem to be PORTD.

I am pretty sure there is problem at DB1 of LCD data port.
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm

PreviousNext

Return to DIY Project Set

Who is online

Users browsing this forum: No registered users and 5 guests

cron