User avatar
BirchJD
Posts: 156
Joined: Tue Nov 13, 2012 7:43 pm

Up to 2048 additional GPIO pins or 128 Analog Inputs

Thu Oct 27, 2016 9:40 am

Connecting many SPI devices to a Raspberry Pi, which allows up to 2048 additional GPIO pins or 128 Analog to Digital Inputs. Plus other devices such as OLED displays. Project can be seen on the link below. I am currently converting to code into a Linux device driver, I will then write a Python tutorial example and publish a full write up.

https://www.youtube.com/watch?v=HMC4ZxugdLk
http://www.newsdownload.co.uk/

User avatar
BirchJD
Posts: 156
Joined: Tue Nov 13, 2012 7:43 pm

Re: Up to 2048 additional GPIO pins or 128 Analog Inputs

Fri Nov 04, 2016 10:24 pm

I have now created a Linux driver which can be configured to drive many SPI devices from a Raspberry Pi simultaneously, and included example Python code for using the driver. I will be doing a full write up next explaining how to use the driver from Python. Below is a link to a video demonstrating the driver being used from Python.

https://www.youtube.com/watch?v=VooBr8xlHEI
http://www.newsdownload.co.uk/

User avatar
BirchJD
Posts: 156
Joined: Tue Nov 13, 2012 7:43 pm

Re: Up to 2048 additional GPIO pins or 128 Analog Inputs

Fri Nov 11, 2016 10:14 pm

A full write up for the Raspberry Pi Multi SPI Device Driver is now available here:
http://www.newsdownload.co.uk/pages/RPiSPiDev.html

A follow up version should be available soon which will support the original Model A and Model Zero. Plus larger font sizes for the OLED part of the driver.
http://www.newsdownload.co.uk/

maurice1
Posts: 37
Joined: Tue Mar 05, 2013 8:55 am
Location: Dublin

Re: Up to 2048 additional GPIO pins or 128 Analog Inputs

Mon Nov 14, 2016 12:27 pm

Interesting JD thank you for sharing

User avatar
BirchJD
Posts: 156
Joined: Tue Nov 13, 2012 7:43 pm

Re: Up to 2048 additional GPIO pins or 128 Analog Inputs

Mon Nov 14, 2016 12:51 pm

Thank you. A new revision of the driver should be available by the end of the week in case anyone is interested. It should have the following additions:

Mutli-thread capable. The current inital driver can only really support one application running against it as it is my first device driver and I needed time to read about mutex locking.

Larger font support. Width and height of font can each be selected from 1 to 8.

Internal support for A-D chips, MCP3002 and MCP3004.

Other fixes.
http://www.newsdownload.co.uk/

User avatar
BirchJD
Posts: 156
Joined: Tue Nov 13, 2012 7:43 pm

Re: Up to 2048 additional GPIO pins or 128 Analog Inputs

Tue Nov 15, 2016 9:36 pm

Released the update. It can now be used from multiple threads, different applications can also share the same SPI devices. The width and height can be specified for the font size. Examples have been updated in GitHub. Write up has been updated with download links. There is a version for Original and Zero as well as 2 and 3. I'm now moving on to my next project.
RPiSPiUpdate.jpg
RPiSPiUpdate.jpg (61.57 KiB) Viewed 838 times
http://www.newsdownload.co.uk/

Return to “Other projects”