Go to advanced search

by texy
Tue Jul 10, 2012 1:08 pm
Forum: Python
Topic: Python driving 44780 LCD
Replies: 101
Views: 49065

Re: Python driving 44870 LCD

... # RS GPIO.setup(18, GPIO.OUT) # DB4 GPIO.setup(21, GPIO.OUT) # DB5 GPIO.setup(22, GPIO.OUT) # DB6 GPIO.setup(23, GPIO.OUT) # DB7 Note that on the LCD, you'll need to make sure the following lines are tied to 0volts - r/w, DB0, DB1, DB2, DB3 I would keep with the 16 x 2 LCD for now - they are pretty ...
by Reider
Tue Jul 10, 2012 12:42 pm
Forum: Python
Topic: Python driving 44780 LCD
Replies: 101
Views: 49065

Re: Python driving 44870 LCD

... textual instructions re his setup, with a view to converting to Python usage. Yours has a Python script but no diagram so I need to play ... between the 3.3v and 5v. My first experiment either used a dud 16x2 LCD (not given up on it yet, top shows squares, bottom doesn`t, backlight ...
by texy
Tue Jul 10, 2012 11:44 am
Forum: Python
Topic: Python driving 44780 LCD
Replies: 101
Views: 49065

Re: Python driving 44870 LCD

Yes, the LCD I used above is a 5v device. As long as you do not input a 5v signal into the pi, you should be OK. As you are only writing to the LCD from the Pi, a high at only 3.3volts should still register as a high at the LCD. ...
by Reider
Tue Jul 10, 2012 11:30 am
Forum: Python
Topic: Python driving 44780 LCD
Replies: 101
Views: 49065

Re: Python driving 44870 LCD

A little lost here, meds don`t help. Can a 5v HD44870 compatible 4x20 LCD (Sparkfun Electronics-00256 model) be wired directly to the RasPi and utilize Python? Wondering if avoiding the read status would still make it safe in Python too. I`d ...
by gadgetoid
Mon Jul 09, 2012 2:55 pm
Forum: Python
Topic: WiringPython - WiringPi for Python
Replies: 205
Views: 72610

Re: WiringPython - WiringPi for Python

... already ordered one! T. D'oh! Hindsight :D It looks like a promising LCD for RPi tinkering, though. The Arduino library for it is pretty much ... and then not difficult again to wrap that up into a library for Ruby/Python/Perl. As far as I'm aware, the shiftOut and shiftIn functions are ...
by texy
Mon Jul 09, 2012 1:38 pm
Forum: Python
Topic: WiringPython - WiringPi for Python
Replies: 205
Views: 72610

Re: WiringPython - WiringPi for Python

I,m thinking it was shifting out too fast for the LCD to handle, not the pi ;) I will give this a go later. Can you confirm that the clock signal goes high, then low with the shiftout function? T. The Pi could well be having trouble depending on ...
by MadCow42
Mon Jul 09, 2012 1:11 pm
Forum: Python
Topic: WiringPython - WiringPi for Python
Replies: 205
Views: 72610

Re: WiringPython - WiringPi for Python

I,m thinking it was shifting out too fast for the LCD to handle, not the pi ;) I will give this a go later. Can you confirm that the clock signal goes high, then low with the shiftout function? T. The Pi could well be having trouble depending on ...
by gadgetoid
Mon Jul 09, 2012 1:11 pm
Forum: Python
Topic: Nokia Pi LCD
Replies: 253
Views: 118398

Re: Nokia Pi LCD

... from Hobbytronics. I've given up waiting for the negative ST graphics LCD that I wanted from Adafruit. £7 isn't a bad pop for a bit of LCD driving ... to get this to work in Ruby with WiringPiGem! I should probably learn Python, though, as it seems to garner far more interest and it's clear I ...
by gadgetoid
Mon Jul 09, 2012 12:40 pm
Forum: Python
Topic: WiringPython - WiringPi for Python
Replies: 205
Views: 72610

Re: WiringPython - WiringPi for Python

I,m thinking it was shifting out too fast for the LCD to handle, not the pi ;) I will give this a go later. Can you confirm that the clock signal goes high, then low with the shiftout function? T. The Pi could well be having trouble depending on ...
by texy
Mon Jul 09, 2012 8:50 am
Forum: Python
Topic: WiringPython - WiringPi for Python
Replies: 205
Views: 72610

Re: WiringPython - WiringPi for Python

I,m thinking it was shifting out too fast for the LCD to handle, not the pi ;)
I will give this a go later. Can you confirm that the clock signal goes high, then low with the shiftout function?

T.
by texy
Sun Jul 08, 2012 6:39 pm
Forum: Python
Topic: WiringPython - WiringPi for Python
Replies: 205
Views: 72610

Re: WiringPython - WiringPi for Python

gadgetoid wrote:It looks right. Have you hooked up anything to the Data pin to see if it's toggling as expected?


.
....yes -my pcd8544 Nokia LCD screen. It works with the for loop above, but not with the shiftout command.
Maybe it's because it's too fast?

Texy
by texy
Sat Jul 07, 2012 3:05 pm
Forum: Python
Topic: Nokia Pi LCD
Replies: 253
Views: 118398

Re: Nokia Pi LCD

Now using wiringpi - the time has gone down to 0.322 seconds :D #!/usr/bin/python # -*- coding: utf-8 -*- # using wiringPI GPIO method import wiringpi import time import sys from grafix import * #gpio's : SCLK = 24 # gpio pin 18 DIN = 23 # gpio pin 16 DC = 22 ...
by texy
Sat Jul 07, 2012 3:00 pm
Forum: Python
Topic: WiringPython - WiringPi for Python
Replies: 205
Views: 72610

Re: WiringPython - WiringPi for Python

... Using '0' is working, and also using '17' with wiringpi.wiringPiGpioMode(1) is behaving as it should do ;) I have also converted my pcd8544 LCD program to using wiringpi and the time as gone down to 0.322 seconds. The next thing to tackle is using the ShiftOut feature. I assume the '0' in ...
by lrvick
Sat Jul 07, 2012 11:46 am
Forum: Python
Topic: Python driving 44780 LCD
Replies: 101
Views: 49065

Re: Python driving 44870 LCD

... I have been able to get a LCD module to display messages using python directly from the GPIO The code is not very clever, and also not very fast - I,m sure ...
by texy
Sat Jul 07, 2012 8:30 am
Forum: Python
Topic: Nokia Pi LCD
Replies: 253
Views: 118398

Re: Nokia Pi LCD

... GPIO_OUT class developed by Kevin Casabon, the setup and initial message screen time has gone down from 14.2 seconds to 1.25 seconds! #!/usr/bin/python # -*- coding: utf-8 -*- # using the additional RPi.GPIO class developed by Kevin Casabon import RPi.GPIO as GPIO from RPi.GPIO import * # ideally ...
by kghunt
Thu Jul 05, 2012 9:42 pm
Forum: Python
Topic: Pi Clock
Replies: 19
Views: 6202

Re: Pi Clock

... 10 minutes so if any should fail they will restart automatically. My LCD works great over USB but I plan to interface it directly with the gpio ... using a breadboard and I have written a 4 x 4 matrix keypad driver in python. So as soon as my keypad arrives I'll get that hooked in too. The ...
by texy
Mon Jul 02, 2012 6:37 am
Forum: Python
Topic: Python / GPIO speed
Replies: 14
Views: 9032

Python / GPIO speed

Hi,
as you can see from my limited LCD screen threads, it seems that python is very slow when it comes to GPIO access.
If you run equivalent code in C, it runs so much faster.
So the question is, is it because python is slow, or that the RPi.GPIO driver implementation is slow?

Texy
by texy
Sat Jun 30, 2012 12:03 pm
Forum: Python
Topic: Nokia Pi LCD
Replies: 253
Views: 118398

Nokia Pi LCD

... : http://www.picaxeforum.co.uk/showthread.php?10014-Siemens-A55-C55-LCD-graphics-display https://bitbucket.org/webhamster I have been able to ... more than my own, I wanted to 'dumb it down' somewhat in order for a python newbie such as myself help understand how the code works. The main ...
by aanderson
Fri Jun 29, 2012 5:16 pm
Forum: Other programming languages
Topic: Mono (C#) anyone?
Replies: 64
Views: 46006

Re: Mono (C#) anyone?

... but wrote by own GPIO provider for it. All I needed from there was Lcd.cs, ILcdTransferProvider.cs and GPIOLcdTransferProvider.cs. I renamed ... impact of that. There definitely is one. I compared it against the Python script in this post viewtopic.php?f=32&t=8021 that it takes longer ...
by kghunt
Fri Jun 29, 2012 12:08 pm
Forum: Python
Topic: Script gets Current IP
Replies: 7
Views: 3007

Re: Script gets Current IP

I do it in python because my LCD driver and controls are also in python so its easier to pass the data across to me LCD.
by kghunt
Tue Jun 26, 2012 8:15 pm
Forum: Other projects
Topic: Use hd44780 LCD with lcd2usb
Replies: 5
Views: 7210

Re: Use hd44780 LCD with lcd2usb

I have a similar LCD and I got it working without lcdproc or any other program. I wrote a simple driver in python that sends hex commands to the LCD over the USB serial interface. It is pretty easy to do and a good project for learning python.
by marsman2020
Fri Jun 22, 2012 4:32 pm
Forum: Automation, sensing and robotics
Topic: I2C 16 Channel PWM/Servo Breakout - Working
Replies: 15
Views: 43183

Re: I2C 16 Channel PWM/Servo Breakout - Working

... in Linux seem to be easier to use then SPI devices (mainly because I2C/SMBus is extensively used in computers for sensors) I do have a SPI LCD backpack also from Adafruit that I want to try, but I need a 3.3V-5V level shifter on the SPI bus to make that work.
by meepmeep
Thu Jun 21, 2012 10:35 pm
Forum: Other projects
Topic: [Q]hd44780 lcd screen
Replies: 53
Views: 48603

Re: [Q]hd44780 lcd screen

... of the c scripts and not the i2c ones. I wrote the following bit of python to output specific strings to the LCD: #!/usr/local/bin/python import os import sys os.system('./send_i2c 82 10 0') if (len(sys.argv) ...
by kghunt
Wed Jun 20, 2012 8:13 pm
Forum: Python
Topic: Redirect console to python/LCD possible?
Replies: 0
Views: 1279

Redirect console to python/LCD possible?

Hi I was just wondering if it is possible write a python script that redirects terminal output to python so I can pass it on to my LCD using a driver I wrote or buffering it to a file to reach the same goal. I have googled and ...
by lrvick
Wed Jun 20, 2012 4:48 pm
Forum: Other projects
Topic: Hookup help for cheap 3.3v 16x2
Replies: 3
Views: 2486

Hookup help for cheap 3.3v 16x2

... the board itself: http://dumpon.us/309.jpg My goal is to have a cheap lcd I can quickly hook up to a Pi and control with the python GPIO library. Advice?

Go to advanced search