Go to advanced search

by blavery
Thu May 07, 2015 9:35 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Python driver for 2.4" SPI 240x320 LCD touch
Replies: 7
Views: 8183

Re: Python driver for 2.4" SPI 240x320 LCD touch

>> Do you have a manual on how to install your driver?

Er, no.

Download the github ZIP, unzip into one folder.
Wire up SPI & other pins as per example py files.
Run one of the example files: eg sudo python example-tft24T-display-demo.py
by blavery
Sun Apr 19, 2015 2:32 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2c LCD Backpack & Level Shifter
Replies: 3
Views: 1558

Re: i2c LCD Backpack & Level Shifter

It is my observation that there are several models of I2C backpack for the 16-pin 16x2 LCD. They look pretty much the same. They are usually interfaced by a PCF8574 I2C to 8-bit parallel for the LCD. Sadly, each manufacturer seems to choose their own connection pattern for the 4 bits (nibble at a ti...
by blavery
Sat Apr 18, 2015 3:07 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: LIBtft144 python code for 1.44 inch SPI LCD-TFT
Replies: 7
Views: 4722

Re: LIBtft144 python code for 1.44 inch SPI LCD-TFT

Thanks, glad you enjoyed it. Those fonts?? It was a while ago. Not 100% sure now, but perhaps I used this on a WinXP system: http://www.mikroe.com/glcd-font-creator/ I do remember tinkering quite a while to get just what I was wanting. And SOME of the font arrays in my code are arranged row x col an...
by blavery
Mon Apr 13, 2015 11:08 am
Forum: Automation, sensing and robotics
Topic: Pi-Gyro: reading smartphone sensors
Replies: 0
Views: 1401

Pi-Gyro: reading smartphone sensors

I have just posted a small "node.js" project on GitHub using a mobile phone as a Compass / Pitch / Roll sensor to my Raspberry Pi. Communication scenario: - Phone: Home wifi network, - Pi: Home network, - Internet accessability: yes It uses an easy "node.js" implementation of a 1-page webserver on t...
by blavery
Wed Apr 08, 2015 1:25 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: LIBtft144 python code for 1.44 inch SPI LCD-TFT
Replies: 7
Views: 4722

Re: LIBtft144 python code for 1.44 inch SPI LCD-TFT

The "RED" board version of this 128x128 board on eBay seems to be configured as being 128x160. I guess it is a wiring error. The library LIBtft144 has supported the "BLACK" version of the board since the first version last October. The "BLACK" board is correctly made by factory as a 128x128 device. ...
by blavery
Tue Apr 07, 2015 11:39 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Python driver for 2.4" SPI 240x320 LCD touch
Replies: 7
Views: 8183

Re: Python driver for 2.4" SPI 240x320 LCD touch

Version 0.3 is now posted to github: https://github.com/BLavery/lib_tft24T It includes - display driver - touch-device driver - calibration utility to scale the touchscreen output against display pixels - demo of display doing its tricks - a complete GUI calculator running on the display. Input by s...
by blavery
Tue Apr 07, 2015 2:26 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Python driver for 2.4" SPI 240x320 LCD touch
Replies: 7
Views: 8183

Re: Python driver for 2.4" SPI 240x320 LCD touch

Well the touchscreen hardware seems easy enough to get an output from: - Like the display hardware, its native orientation is portrait. - Touch device seems a mediocre performer by finger, but a great performer by stylus/pen. I use a "dead" ball-point pen. - A straightforward "penDown()" can be read...
by blavery
Fri Apr 03, 2015 6:18 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Python driver for 2.4" SPI 240x320 LCD touch
Replies: 7
Views: 8183

Python driver for 2.4" SPI 240x320 LCD touch

I have just uploaded a python driver for the red “2.4 inch Touch 320x240 SPI LCD” module currently popular on eBay for about $7. The marking says TJCTM24024-SPI . This is a ILI9341 driven LCD display, with XPT2046 chip for touch device, and it also includes a SD card holder. All of which would want ...
by blavery
Sat Mar 28, 2015 7:36 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: OLED Display 128x64 python library
Replies: 15
Views: 29635

OLED Display 128x64 python library

I have posted a python library for that ubiquitous 0.96 inch 128x64 OLED display (eBay about $5). See https://github.com/BLavery/lib_oled96 This is a common library suiting both Raspberry Pi and Virtual-GPIO. TC04400_4.JPG This OLED display is the monochrome 4-pin type (I2C), not the SPI ones (ident...
by blavery
Fri Mar 20, 2015 8:04 am
Forum: HATs and other add-ons
Topic: NRF24L01+ in Python
Replies: 30
Views: 40550

Re: NRF24L01+ in Python

You are sure you have SPI working? ie changing the module "blacklist" on older Pi or setting the device tree option in config.txt in RPI2? (or maybe it's just LATE VERSION OF OS rather than specifically RPI2? In any case, spi enabling is different now.) The command ls /dev should list the spi device...
by blavery
Fri Nov 28, 2014 9:48 pm
Forum: HATs and other add-ons
Topic: NRF24L01+ in Python
Replies: 30
Views: 40550

Re: NRF24L01+ in Python

So you want to work the RPI against an arduino? The Maniacbug library is a good library, but its "examples" as provided do not match the mode auto-ack/ack-payload/dyn-payload that my RPI examples use. They are not an "equivalent sketch". I can see you seem to be using one of the supplied maniacbug e...
by blavery
Fri Nov 28, 2014 6:10 am
Forum: HATs and other add-ons
Topic: NRF24L01+ in Python
Replies: 30
Views: 40550

Re: NRF24L01+ in Python

diag.png send.png luisantunes, I am not in a position currently to get at everything of my work. However, your error message indicates that your python code is still looking at BeagleBone Black rather than changing to Raspberry Pi. So I won't go backwards to what is happening there. I'll move forwa...
by blavery
Sun Nov 16, 2014 12:52 am
Forum: HATs and other add-ons
Topic: NRF24L01+ in Python
Replies: 30
Views: 40550

Re: NRF24L01+ in Python

Maryus, Your question as put is difficult to answer. It's like: - I planned to fly up and walk on the moon. - I didn't succeed. - Where did I go wrong? What failed? What did you try? What setup are you wiring up? What messages do you see? Some things you could elaborate on: - On the Raspberry Pi end...
by blavery
Wed Nov 05, 2014 12:35 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Virtual-GPIO for Raspberry Pi
Replies: 6
Views: 7962

Re: Virtual-GPIO for Raspberry Pi

Version 0.9.5 of "Virtual-GPIO" is now posted. Changes include: # Now Python 2.7 / Python 3.3 compatible # Improved RPI syntax compatibility # Added config file for port settings # SPI devices get individual control of mode # i2c - option to disable arduino's internal pullups Beyond the virtual-GPIO...
by blavery
Mon Oct 20, 2014 2:43 am
Forum: C/C++
Topic: UART Bug? Can't set baud rate higher than 115200 in C?
Replies: 6
Views: 3072

Re: UART Bug? Can't set baud rate higher than 115200 in C?

Setting init_uart_clock in the config .txt doesn't itself force a new baudrate. The default uart clock setting is too slow to cope with higher baudrates. Setting it higher as indicated "PERMITS" you to successfully ask for a higher baudrate.
by blavery
Sun Oct 19, 2014 10:46 am
Forum: C/C++
Topic: UART Bug? Can't set baud rate higher than 115200 in C?
Replies: 6
Views: 3072

Re: UART Bug? Can't set baud rate higher than 115200 in C?

Try this:

(sudo) edit /boot/config.txt by adding a new line
init_uart_clock=16000000

My rPi works at 500000 baud very happily.

Brian
by blavery
Tue Oct 14, 2014 3:26 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: LIBtft144 python code for 1.44 inch SPI LCD-TFT
Replies: 7
Views: 4722

LIBtft144 python code for 1.44 inch SPI LCD-TFT

I have posted a python library for the "BLACK" 128x128 1.44 inch TFT display I got from eBay. Features: * Python Class: TFT144 * Uses SPI (spidev) * 4 to 6 pins (MOSI, SCK, CE0/1, plus 3 for "A0", "LED" and "RST") . . . . . . . . (Can omit RST and/or LED. Tie those 3.3V high instead.) * Two font siz...
by blavery
Mon Oct 06, 2014 6:18 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Virtual-GPIO for Raspberry Pi
Replies: 6
Views: 7962

Re: Virtual-GPIO for Raspberry Pi

OK, I've posted up the code for Virtual-GPIO. Everything should be working, both arduino sketch and python PC-end library. See http://virtgpio.blavery.com/ and https://github.com/BLavery/virtual-GPIO There are over 20 simple included examples in python for controlling the "GPIO" device. Remember, th...
by blavery
Sat Oct 04, 2014 1:09 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Virtual-GPIO for Raspberry Pi
Replies: 6
Views: 7962

Re: Virtual-GPIO for Raspberry Pi

The slave can plug to PI either by UART on the GPIO, or by USB cable. Ie, either via /dev/ttyAMA0 or /dev/ttyUSB0-1. As it stands, the python code would get indigestion trying to work with multiple USB-arduino devices. I coded it as a single instance. I'm sure it should be possible to rework it one ...
by blavery
Sat Oct 04, 2014 7:52 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Virtual-GPIO for Raspberry Pi
Replies: 6
Views: 7962

Re: Virtual-GPIO for Raspberry Pi

I put up some more extensive documentation today:

http://virtgpio.blavery.com

It's all working here as per that information, and I will release that version as 0.9 shortly.
by blavery
Wed Sep 17, 2014 5:31 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Virtual-GPIO for Raspberry Pi
Replies: 6
Views: 7962

Virtual-GPIO for Raspberry Pi

I have often wished to be able to do some of the gadget interfacing that rPi's GPIO allows, on my laptop. The laptop obviously has no SPI, no I2C, no pin I/O at all. My final "need" was for a NRF24L01 (2.4GHz, SPI) running on the laptop, trading data with arduino and Raspberry Pi. I decided to imple...
by blavery
Wed Aug 27, 2014 12:09 am
Forum: HATs and other add-ons
Topic: NRF24L01+ in Python
Replies: 30
Views: 40550

NRF24L01+ in Python

EDIT JUNE 2015: PLEASE SEE REVISED FILES IN POST BELOW 28 NOV 2014. B Here are my experiences of getting NRF24L01+ modules ($1 up on eBay) running on rPi. It is based on Joao Paulo Barraca's pynrf24 python library at https://github.com/jpbarraca/pynrf24. It took some debugging, but now I have a work...
by blavery
Wed Aug 20, 2014 5:25 am
Forum: Raspbian
Topic: Screenshot?
Replies: 18
Views: 16615

Re: Screenshot?

I simply installed gnome-screenshot in the pi.

I have vnc installed too (XIIVNC), and I often control the pi from a linux laptop. Then it is easy to take the pi screenshot directly on the laptop. (That uses gnome-screenshot on the laptop!)

B.
by blavery
Mon Jul 14, 2014 8:51 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI Chip Select line (CE0) goes low after transmittin
Replies: 8
Views: 6146

Re: SPI Chip Select line (CE0) goes low after transmittin

I can confirm that there seems to be a spurious downwards glitch in the CE* line out of my Pi. The attached image is taken from the pigpio/PiScope. (The Pi is navel-gazing at its own GPIO pins, and the display screen is my laptop over network.) The PiScope seems to have limited resolution, so my SPI...
by blavery
Thu Dec 19, 2013 2:45 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: ArdEx - Using Arduino as i2c slave for expanded I/O
Replies: 12
Views: 8998

Re: ArdEx - Using Arduino as i2c slave for expanded I/O

I stopped working on this project some time back. It suited my job at hand at that time, and it worked fine. I have since had other things to do. The Pi seems to have a built in fault regarding clock stretching. As Gert says "The I2C clock stretching is done in hardware. Therefore there is nothing w...

Go to advanced search