Go to advanced search

by alexeames
Mon Jan 28, 2013 8:26 am
Forum: Python
Topic: Nokia Pi LCD
Replies: 253
Views: 118397

Re: Nokia Pi LCD

OK. Here is a Python solution without calling external applications to reload the driver. It basically tests that the SPI GPIO pins are configured for the proper operation. If not, it prints a warning and updates the configuration. Nice work Bill. That's a bit advanced :ugeek: for ...
by bgreat
Mon Jan 28, 2013 2:06 am
Forum: Python
Topic: Nokia Pi LCD
Replies: 253
Views: 118397

Re: Nokia Pi LCD

OK. Here is a Python solution without calling external applications to reload the driver. It basically tests that the SPI GPIO pins are configured for the proper operation. If not, it prints a warning and updates the configuration. SPI configuration test/update: # For SPI configuration ...
by alexeames
Sun Jan 27, 2013 5:36 pm
Forum: Python
Topic: Nokia Pi LCD
Replies: 253
Views: 118397

Re: Nokia Pi LCD

The spidev driver relies on the spi_bcm2708 driver which allocates and configures the SPI pin resources when it first loads. The spi_bcm2708 driver assumes it has complete ownership and no other software will modify the configuration of those resources. When the pin ...
by bgreat
Sun Jan 27, 2013 3:30 pm
Forum: Python
Topic: Nokia Pi LCD
Replies: 253
Views: 118397

Re: Nokia Pi LCD

One thing I,ve noticed is that my 'old' code, one that uses the right wiring for SPI, but that does not use the spidev routines will upset subsequent use of the the spidev versions of the code. The spidev code will run without errors, but you'll get a blank screen. ...
by texy
Sun Jan 27, 2013 1:54 pm
Forum: Python
Topic: Nokia Pi LCD
Replies: 253
Views: 118397

Re: Nokia Pi LCD

One thing I,ve noticed is that my 'old' code, one that uses the right wiring for SPI, but that does not use the spidev routines will upset subsequent use of the the spidev versions of the code. The spidev code will run without errors, but you'll get a blank screen. ...
by cae2100
Fri Jan 25, 2013 5:51 am
Forum: Python
Topic: Raspberry Pi and 74HC595 shift registers the easiest way
Replies: 9
Views: 6991

Re: Raspberry Pi and 74HC595 shift registers the easiest way

yea, I know, when you use other pins, you have to emulate the spi interface through software, this is called bit banging. also, the 74hc595 itself uses an spi interface to control the chip, thats what I meant by it using SPI interface
by mignev
Fri Jan 25, 2013 12:57 am
Forum: Python
Topic: Raspberry Pi and 74HC595 shift registers the easiest way
Replies: 9
Views: 6991

Re: Raspberry Pi and 74HC595 shift registers the easiest way

This is not true! You can use any digital pin to control the shift register :)) As you can see i don't use SPI pins to control the shift register :)
by cae2100
Thu Jan 24, 2013 10:32 pm
Forum: Python
Topic: Raspberry Pi and 74HC595 shift registers the easiest way
Replies: 9
Views: 6991

Re: Raspberry Pi and 74HC595 shift registers the easiest way

the 74hc595 uses an SPI interface to be controlled from the raspberry pi or any microcontroller.
I used to mess with PIC microcontrollers and have used that chip a few times to add 7 segment displays to my projects.
by mignev
Thu Jan 24, 2013 8:39 pm
Forum: Python
Topic: Raspberry Pi and 74HC595 shift registers the easiest way
Replies: 9
Views: 6991

Re: Raspberry Pi and 74HC595 shift registers the easiest way

Hi,
nice lib but what is common between shift registers and SPI?
by cae2100
Thu Jan 24, 2013 8:29 pm
Forum: Python
Topic: Raspberry Pi and 74HC595 shift registers the easiest way
Replies: 9
Views: 6991

Re: Raspberry Pi and 74HC595 shift registers the easiest way

nice use of bitbanging SPI port, have you seen the SPI-Py library? it's the one I use and it uses the actual SPI interface on the raspberry pi, so it runs faster and hardware based.

https://github.com/lthiery/SPI-Py/wiki/Functions
by tzj
Thu Jan 24, 2013 1:09 am
Forum: Python
Topic: Nokia Pi LCD
Replies: 253
Views: 118397

Re: Nokia Pi LCD

Got it working through spi, but just displyed lines when attempting to display a bitmap. (Damn forum wouldn't let me attach it :cry: )
by bgreat
Wed Jan 23, 2013 11:27 pm
Forum: Python
Topic: Nokia Pi LCD
Replies: 253
Views: 118397

Re: Nokia Pi LCD

... 1 (256MB) board. But this evening after fully updating the Raspbian image it is working flawlessly. I'm not sure what may have changed, but the SPI code works with Rev 1 and Rev 2 boards for me as of today. I am posting my code again, just in case there is some correction I unknowingly introduced. ...
by alexeames
Tue Jan 22, 2013 1:50 pm
Forum: Python
Topic: Nokia Pi LCD
Replies: 253
Views: 118397

Re: Nokia Pi LCD

scruss wrote:
bgreat wrote:Anyone else out there successfully using hardware SPI on a Rev 1 Raspberry Pi?
Yup, my clock demo was on an R1. Raspbian, with all latest updates. The firmware may not quite be the latest — couple or three weeks old, maybe.
And now it's on the front page :D
by scruss
Tue Jan 22, 2013 12:42 pm
Forum: Python
Topic: Nokia Pi LCD
Replies: 253
Views: 118397

Re: Nokia Pi LCD

bgreat wrote:Anyone else out there successfully using hardware SPI on a Rev 1 Raspberry Pi?
Yup, my clock demo was on an R1. Raspbian, with all latest updates. The firmware may not quite be the latest — couple or three weeks old, maybe.
by alexeames
Tue Jan 22, 2013 11:08 am
Forum: Python
Topic: Nokia Pi LCD
Replies: 253
Views: 118397

Re: Nokia Pi LCD

bgreat wrote: Any one else out there successfully using hardware SPI on a Rev 1 Raspberry Pi?

Enjoy!
Bill
Yes, but using the py-spidev module I linked to earlier in the thread. Works on revs 1 & 2. Not in this context either, but with dacs and adcs.
by bgreat
Tue Jan 22, 2013 3:09 am
Forum: Python
Topic: Nokia Pi LCD
Replies: 253
Views: 118397

Re: Nokia Pi LCD

... but this will probably not get any serious attention until the weekend when I have some time. Any one else out there successfully using hardware SPI on a Rev 1 Raspberry Pi? Enjoy! Bill
by bgreat
Tue Jan 22, 2013 2:45 am
Forum: Python
Topic: Nokia Pi LCD
Replies: 253
Views: 118397

Re: Nokia Pi LCD

... speed. Ok. I've reproduced your issue on another of my Raspberry Pi's. I am still trying to track the root cause, but on my Rev 2 board, the SPI version works and on my Rev 1 board the SPI version does not work. Enjoy! Bill
by williamhbell
Mon Jan 21, 2013 6:37 am
Forum: Python
Topic: Nokia Pi LCD
Replies: 253
Views: 118397

Re: Nokia Pi LCD

Maybe an issue with the SPI driver. What OS image are you using? I have done all of my testing with the Raspbian Wheezy (2012-12-16) image. Hi Bill, I'm using the 2012-12-16 Raspbian Wheezy image after all updates. The spidev interface ...
by bgreat
Mon Jan 21, 2013 12:06 am
Forum: Python
Topic: Nokia Pi LCD
Replies: 253
Views: 118397

Re: Nokia Pi LCD

I can see no reason for it to not work.

Maybe an issue with the SPI driver. What OS image are you using? I have done all of my testing with the Raspbian Wheezy (2012-12-16) image.

Enjoy!
Bill
by williamhbell
Sun Jan 20, 2013 11:45 pm
Forum: Python
Topic: Nokia Pi LCD
Replies: 253
Views: 118397

Re: Nokia Pi LCD

The pin connection from the code is the expected connection. The output indicates the code is successfully using the SPI interface (it's just the time to build an image and send to the display). The display only receives data and can not respond, so there is no simple way from the ...
by texy
Sun Jan 20, 2013 9:57 am
Forum: Python
Topic: Nokia Pi LCD
Replies: 253
Views: 118397

Re: Nokia Pi LCD

Many thanks again to bgreat for the hardware SPI functionality.
For those of you purchasing my Nokia Pi LCD add on board from now on, the module will be reworked to make use of these improvements.
http://www.raspberrypi.org/phpBB3/viewt ... 59&t=14913

Cheers,
Texy
by bgreat
Sat Jan 19, 2013 11:58 pm
Forum: Python
Topic: Nokia Pi LCD
Replies: 253
Views: 118397

Re: Nokia Pi LCD

The pin connection from the code is the expected connection. The output indicates the code is successfully using the SPI interface (it's just the time to build an image and send to the display). The display only receives data and can not respond, so there is no simple way from the ...
by williamhbell
Sat Jan 19, 2013 11:28 pm
Forum: Python
Topic: Nokia Pi LCD
Replies: 253
Views: 118397

Re: Nokia Pi LCD

CE -- pin 24 (SPI_CE0) or pin 26 (SPI_CE1) DIN -- pin 19 (SPI_MOSI) CLK -- pin 23 (SPI_SCLK) LED -- pin 12 (PWM0) to allow varying the brightness, otherwise any free GPIO RST -- pin 8, otherwise any free GPIO DC -- pin 10, otherwise ...
by gastly
Sat Jan 19, 2013 2:50 pm
Forum: Python
Topic: Nokia Pi LCD
Replies: 253
Views: 118397

Re: Nokia Pi LCD

... file : http://www.raspberrypi.org/phpBB3/viewtopic.php?f=32&t=9814&start=100#p261609 Wow, thanks you nailed it! That was the problem, the SPI module was blacklisted don't know why it's blacklisted by default though. And the LED's not lighting up at the start was because I hooked the LED's ...
by gastly
Sat Jan 19, 2013 7:40 am
Forum: Python
Topic: Nokia Pi LCD
Replies: 253
Views: 118397

Re: Nokia Pi LCD

... 116 Traceback (most recent call last): File "nokiaLCD.py", line 296, in <module> noki = NokiaSPI() File "nokiaLCD.py", line 158, in __init__ self.spi.open(self.dev[0],self.dev[1]) IOError: [Errno 2] No such file or directory Clearly it's not detecting the screen :cry: I've checked the wiring a ...

Go to advanced search