Go to advanced search

by kghunt
Wed Jul 18, 2012 10:52 pm
Forum: Python
Topic: Python driving 44780 LCD
Replies: 101
Views: 49065

Re: Python driving 44870 LCD

I made my own change to the class so I can write to each line separately. I added this to end and removed the wrap around if statement in message. def Writeline(self,message,line): if line == 1: self.cmd(128) self.message(message) if line == 2: self.cmd(192) self.message(message) I find this better ...
by kghunt
Tue Jul 17, 2012 10:54 am
Forum: Python
Topic: Python driving 44780 LCD
Replies: 101
Views: 49065

Re: Python driving 44870 LCD

I added a second pot to the negative of the back light and now I can trim that too.
by kghunt
Tue Jul 17, 2012 10:14 am
Forum: Python
Topic: Python driving 44780 LCD
Replies: 101
Views: 49065

Re: Python driving 44870 LCD

Using this thread I managed to get a £2 (free delivery) 1602 LCD from china working off the GPIO's. https://dl.dropbox.com/u/1688196/2012-07-17%2010.35.24.jpg At first I could not get it to work but I realised I had forgot to tie RW to GND. The code supplied ...
by lrvick
Mon Jul 16, 2012 8:46 pm
Forum: Python
Topic: Python driving 44780 LCD
Replies: 101
Views: 49065

Re: Python driving 44870 LCD

Hey, after i tested the date and so on its very easy to write something to the Raspi. Now i got a ver simple Problem, when i write: lcd.message("example") then the lcd show me something like this: mple so it cuts the first characters, the reason for me was to write this: lcd.message(" example") ...
by kghunt
Mon Jul 16, 2012 6:48 pm
Forum: Python
Topic: Python driving 44780 LCD
Replies: 101
Views: 49065

Re: Python driving 44870 LCD

I know with my LCD it expects 16 characters exactly. So if it is less I have to pad it to 16 with spaces and if it is more I have to trim it to 16 or it will not display correctly. Maybe it's a similar thing?
by tailer-gth
Mon Jul 16, 2012 5:56 pm
Forum: Python
Topic: Python driving 44780 LCD
Replies: 101
Views: 49065

Re: Python driving 44870 LCD

Hey, after i tested the date and so on its very easy to write something to the Raspi. Now i got a ver simple Problem, when i write: lcd.message("example") then the lcd show me something like this: mple so it cuts the first characters, the reason for me was to write this: lcd.message(" example") ...
by kghunt
Sun Jul 15, 2012 11:36 am
Forum: Python
Topic: Python driving 44780 LCD
Replies: 101
Views: 49065

Re: Python driving 44870 LCD

When writing to an LCD I just write the whole line every time it is easier.
by Reider
Sun Jul 15, 2012 10:03 am
Forum: Python
Topic: Python driving 44780 LCD
Replies: 101
Views: 49065

Re: Python driving 44870 LCD

4 line test for 20x4. I posted ABCDEFGHIJKLMNOPQRST to all four lines and got all four lines back. Not being fully au fait with Python I was concerned there may be a code in there locking it to 16x2 as it was originally devised for that. I may have over written the 4 lines from 2 but not ...
by lrvick
Sat Jul 14, 2012 11:43 pm
Forum: Python
Topic: Python driving 44780 LCD
Replies: 101
Views: 49065

Re: Python driving 44870 LCD

Hey, i get it running and its fine. I used the class ;-) Thx lrvick. But now i want to write the date and time to my LCD, but i dont know how i can do that. Can anyone help me pls? Thx Tailer Here is a very simple clock using my class: from hd44780 import HD44780 from datetime import ...
by techpaul
Sat Jul 14, 2012 11:38 pm
Forum: General discussion
Topic: Easy GPIO Hardware & Software
Replies: 133
Views: 54116

Re: Easy GPIO Hardware & Software

... serious hardware playing done. This includes....an alpha-numeric 16x2 LCD display running off two GPIO pins....hopefully useful for debugging. ... more standardised SPI/Serial/I2C/GPIO libraries for C++ and modules ofr Python. A more standardised approach is the only LONG term prospect for educational ...
by tailer-gth
Sat Jul 14, 2012 10:12 pm
Forum: Python
Topic: Python driving 44780 LCD
Replies: 101
Views: 49065

Re: Python driving 44870 LCD

Hey,

i get it running and its fine. I used the class ;-) Thx lrvick.

But now i want to write the date and time to my LCD, but i dont know how i can do that.
Can anyone help me pls?

Thx
Tailer
by meltwater
Sat Jul 14, 2012 9:45 pm
Forum: General discussion
Topic: Easy GPIO Hardware & Software
Replies: 133
Views: 54116

Re: Easy GPIO Hardware & Software

... serious hardware playing done. This includes....an alpha-numeric 16x2 LCD display running off two GPIO pins....hopefully useful for debugging. ... more standardised SPI/Serial/I2C/GPIO libraries for C++ and modules ofr Python. A more standardised approach is the only LONG term prospect for educational ...
by techpaul
Sat Jul 14, 2012 8:04 pm
Forum: General discussion
Topic: Easy GPIO Hardware & Software
Replies: 133
Views: 54116

Re: Easy GPIO Hardware & Software

... serious hardware playing done. This includes....an alpha-numeric 16x2 LCD display running off two GPIO pins....hopefully useful for debugging. ... more standardised SPI/Serial/I2C/GPIO libraries for C++ and modules ofr Python. A more standardised approach is the only LONG term prospect for educational ...
by Reider
Sat Jul 14, 2012 7:05 pm
Forum: Other projects
Topic: [Q]hd44780 lcd screen
Replies: 53
Views: 48603

Re: [Q]hd44780 lcd screen

Just an FYI. If you`re using Python as per the program Texy made up it worked perfectly for me even though it was constructed with a 16x2 LCD Module in mind. Mine is a 4x20 and though I haven`t checked for 20 characters on each line (0-19) ...
by Reider
Sat Jul 14, 2012 1:59 pm
Forum: General discussion
Topic: Electronics Starter Kit for a beginner with nothing
Replies: 17
Views: 17050

Re: Electronics Starter Kit for a beginner with nothing

... Texy did the 16x2 in Python code and I merely amended it roughly (work in progress) for my 20x4 LCD Module to work in Python code. My description of the hardware connection process is here ...
by Reider
Sat Jul 14, 2012 1:00 pm
Forum: Python
Topic: Python driving 44780 LCD
Replies: 101
Views: 49065

Re: Python driving 44870 LCD

Woo hoo, a Eureka moment! When using 4 lines eg 20x4 LCD. Each start of the line is addressed by; Line 1 = 0 (128) Line 2 = 64 (192) ... yet but at least we have a start). Rome wasn`t built in a day. #!/usr/bin/python # -*- coding: utf-8 -*- # # gpio_play6.py # Texy 2012 import RPi.GPIO as ...
by Reider
Sat Jul 14, 2012 10:03 am
Forum: Python
Topic: Python driving 44780 LCD
Replies: 101
Views: 49065

Re: Python driving 44870 LCD

... terms but I`ll get there eventually. If anyone else wires up a 20x4 LCD and uses Python please post what you did and how you programmed it. I know once I get started I`ll be ...
by chowanec
Sat Jul 14, 2012 4:16 am
Forum: Other projects
Topic: Screen Advice
Replies: 4
Views: 1555

Screen Advice

... I am scaring myself out of it quicker than I need to. I know a bit of python and would like to drive things, at the very least, through a LCD (i.e. old school LCD display, not a monitor) so I can display some information from my ...
by texy
Thu Jul 12, 2012 6:03 pm
Forum: Python
Topic: Python driving 44780 LCD
Replies: 101
Views: 49065

Re: Python driving 44870 LCD

No I didn't, or at least I haven't yet. However, the RPi.GPIO module has been upgraded and is considerably faster, if you use the existing LCD code, and update the RPi.GPIO function, you'll find it will be much improved.

Texy
by kghunt
Wed Jul 11, 2012 9:34 pm
Forum: Python
Topic: Python driving 44780 LCD
Replies: 101
Views: 49065

Re: Python driving 44870 LCD

Did you ever get around to porting your library to wiring pi?
by gadgetoid
Tue Jul 10, 2012 5:58 pm
Forum: Python
Topic: WiringPython - WiringPi for Python
Replies: 205
Views: 72610

Re: WiringPython - WiringPi for Python

Okay, I'll add shiftOutWithDelay back in.

My LCD arrived today, too, so I'll be better able to test things!
by texy
Tue Jul 10, 2012 5:30 pm
Forum: Python
Topic: WiringPython - WiringPi for Python
Replies: 205
Views: 72610

Re: WiringPython - WiringPi for Python

... of the code works with the for loop to SPI out, but shiftOut isn't working. However, I have noticed that sometimes grabbled graphics appear on the LCD, so maybe it is now working, but too fast? Is it possible to put the delay option back in to the shiftOut function? This is with the wiringpi.wiringPiSetupGpio() ...
by texy
Tue Jul 10, 2012 4:28 pm
Forum: Python
Topic: WiringPython - WiringPi for Python
Replies: 205
Views: 72610

Re: WiringPython - WiringPi for Python

OK, no errors with downloading. Lets see if I can make it work with my lcd and code ;)

T.
by lrvick
Tue Jul 10, 2012 1:23 pm
Forum: Python
Topic: Python driving 44780 LCD
Replies: 101
Views: 49065

Re: Python driving 44870 LCD

In my case I have a 3.3v version of the Hd33780 LCD which I wired up like so: http://i.imgur.com/OGcb2.jpg (excuse the terrible ... Will probably port to WiringPi this weekend and make it into a proper python library. See: https://github.com/lrvick/raspi-hd44780 Also here is an example ...
by texy
Tue Jul 10, 2012 1:10 pm
Forum: Python
Topic: Python driving 44780 LCD
Replies: 101
Views: 49065

Re: Python driving 44870 LCD

Oh, and note that I have the LCD's VCC line going to +5v on the Pi's GPIO port, not 3V3.

T.

Go to advanced search