PyroElectro.com Forum Index PyroElectro.com
Build what you want, Be the pyro you are.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

LCD Tutorial

 
Post new topic   Reply to topic    PyroElectro.com Forum Index -> Tutorials
View previous topic :: View next topic  
Author Message
newbie1
Newbie Pyro


Joined: 19 May 2008
Posts: 3

PostPosted: Fri Feb 20, 2009 5:20 am    Post subject: LCD Tutorial Reply with quote

Hi there,
just wondering how you can pass variables into the LCD program. So if you measure a temp, you want that temp to be displayed in the LCD right? So how do you pass a variable into it? Just wondering off hand, but do you know how you would do it in PIC C Hi-Tech compiler also?
Thanks.
Newbie1.
Back to top
View user's profile Send private message
ThePyroElectro
PyroElectro Admin


Joined: 12 Nov 2007
Posts: 401
Location: Earth

PostPosted: Tue Mar 10, 2009 10:45 am    Post subject: Reply with quote

Hey,

The best thing to do would be to take a look through this tutorial:
http://www.pyroelectro.com/tutorials/pic_lcd/index.html

Then once you understand using LCD's, use the functions in that tutorial to create your own function for updating the LCD (however you want it to look) with the temperature. The Display Character and Send Command functions should be enough for you to do dynamic display updates.

Take a look through the HD44780 datasheet to get a better handle on lcd's themselves and you'll find shortcuts you can take while programming with it.
Back to top
View user's profile Send private message Send e-mail AIM Address MSN Messenger
a21
Newbie Pyro


Joined: 27 Mar 2009
Posts: 1

PostPosted: Fri Mar 27, 2009 10:31 am    Post subject: Reply with quote

Hi,
I am trying to write the value of adresh and adresl to the lcd with your functuion, but nothing happens. Also I tried to write integer values and it can't. Tried to cast form integer to char*, tried itoa(), but nothing helps. How can I do that.
Back to top
View user's profile Send private message
ThePyroElectro
PyroElectro Admin


Joined: 12 Nov 2007
Posts: 401
Location: Earth

PostPosted: Mon Apr 27, 2009 5:12 am    Post subject: Reply with quote

I'd like to help you out but you need to be more specific. Adresh and Adresl aren't in my code, where did you get those from?

What do you need to use itoa()?
Back to top
View user's profile Send private message Send e-mail AIM Address MSN Messenger
minalpatel
Newbie Pyro


Joined: 01 Jul 2009
Posts: 1

PostPosted: Wed Jul 01, 2009 4:13 am    Post subject: lcd Reply with quote

Hi, i am doing with mplab C18 p18f4550 demo board. i want to interface lcd 16*2.i read tutorial and done hardware but i can't do with software. please can u help me. i looked ur software but i did not get it.
Back to top
View user's profile Send private message Send e-mail
jokero0o
Newbie Pyro


Joined: 27 Sep 2009
Posts: 5

PostPosted: Mon Sep 28, 2009 6:21 am    Post subject: Reply with quote

HI pyroelectro

I am facing the same question. I have a sensor and I am trying to display the voltage level from the sensor on LCD. DO u familiar with ADC ? Please help me on this.
Back to top
View user's profile Send private message Send e-mail
8vision
Newbie Pyro


Joined: 11 Sep 2009
Posts: 2

PostPosted: Sat Dec 12, 2009 4:50 am    Post subject: accelero and gyro value on lcd Reply with quote

hi..
i need help for my project, how can i display the sensor value to 16X2 LCD..

your lcd tutorial doesn't provide begin and end code..
can i have them? cause i'm really bad at programming,

then also, i need help to learn programing..
can you suggest a link that will help a fresh-starter....

for your info, i only learn basic C++.. it really take time to program the PIC..
thanks inadvance
Back to top
View user's profile Send private message
ThePyroElectro
PyroElectro Admin


Joined: 12 Nov 2007
Posts: 401
Location: Earth

PostPosted: Tue Dec 29, 2009 8:08 am    Post subject: Reply with quote

To display an ADC value onto a 16x2 LCD character display, use one of the itoa (integer to alpha-character) functions provided by the C programming language.

This will make a string of the resulting integers from the A/D conversion.
Back to top
View user's profile Send private message Send e-mail AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    PyroElectro.com Forum Index -> Tutorials All times are GMT
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