| View previous topic :: View next topic |
| Author |
Message |
newbie1 Newbie Pyro
Joined: 19 May 2008 Posts: 3
|
Posted: Fri Feb 20, 2009 5:20 am Post subject: LCD Tutorial |
|
|
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 |
|
 |
ThePyroElectro PyroElectro Admin

Joined: 12 Nov 2007 Posts: 401 Location: Earth
|
Posted: Tue Mar 10, 2009 10:45 am Post subject: |
|
|
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 |
|
 |
a21 Newbie Pyro
Joined: 27 Mar 2009 Posts: 1
|
Posted: Fri Mar 27, 2009 10:31 am Post subject: |
|
|
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 |
|
 |
ThePyroElectro PyroElectro Admin

Joined: 12 Nov 2007 Posts: 401 Location: Earth
|
Posted: Mon Apr 27, 2009 5:12 am Post subject: |
|
|
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 |
|
 |
minalpatel Newbie Pyro
Joined: 01 Jul 2009 Posts: 1
|
Posted: Wed Jul 01, 2009 4:13 am Post subject: lcd |
|
|
| 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 |
|
 |
jokero0o Newbie Pyro
Joined: 27 Sep 2009 Posts: 5
|
Posted: Mon Sep 28, 2009 6:21 am Post subject: |
|
|
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 |
|
 |
8vision Newbie Pyro
Joined: 11 Sep 2009 Posts: 2
|
Posted: Sat Dec 12, 2009 4:50 am Post subject: accelero and gyro value on lcd |
|
|
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 |
|
 |
ThePyroElectro PyroElectro Admin

Joined: 12 Nov 2007 Posts: 401 Location: Earth
|
Posted: Tue Dec 29, 2009 8:08 am Post subject: |
|
|
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 |
|
 |
|