SUMMER SALE • UP TO 20% OFF • Ends 31st AUGUST 2025 *excludes trade customers
Support Forum

Share your projects and post your questions

The Forum

demo-iowrite.py problem

The Expander Pi is an Analogue, Digital and RTC development Interface for the Raspberry Pi

02/12/2015

Posted by:
remilaciotat

remilaciotat Avatar

Hello,

I am not geek!!

I try to play with Expander pi Digital IO

I install i2c as explain in : https://www.abelectronics.co.uk/kb/article/1/i2c--smbus-and-raspbian-linux

I use raspbian jessie

I found Digital IO in x20 by command:"i2cdetect -y 1"( i found other thing in x68)

I check PYTHONPATH witch is correct.

I start demo-iowrite and i found this problem ( have same problem with other demo_xxxx software)

may be i make mistake during install ??

Thank you for your help.

sudo python demo-iowrite.py

Traceback (most recent call last):

File "demo-iowrite.py", line 3, in

from ABE_ExpanderPi import IO

File "/home/lib-python/ABElectronics_Python3_Libraries/ExpanderPi/ABE_ExpanderPi.py", line 23, in

class ADC:

File "/home/lib-python/ABElectronics_Python3_Libraries/ExpanderPi/ABE_ExpanderPi.py", line 34, in ADC

__spiADC.open(0, 0)

IOError: [Errno 2] No such file or directory

02/12/2015

Posted by:
andrew

andrew Avatar

Hello
You will need to install the SPI libraries as well as I2C for the Expander Pi to work. Try following our SPI tutorial to install SPI Python support and see if that solves the problem.

03/12/2015

Posted by:
remilaciotat

remilaciotat Avatar

Hi!
Thank you very much.
Quick reply and fully effective.
All is working fine now.
I can play with my 8 relays connected on digital IO.
Thank you again!
Rémi

Forum Notice – Closure to New Posts

As part of our compliance with the UK’s Online Safety Act, the AB Electronics UK support forum is now closed to new posts and replies.

We understand the importance of continued support for our products, so if you have a technical query or require assistance, please use the Contact Form or consult our Knowledge Base for helpful articles and documentation.

We appreciate your understanding and continued support.


Note: documents in Portable Document Format (PDF) require Adobe Acrobat Reader 5.0 or higher to view.
Download Adobe Acrobat Reader or other PDF reading software for your computer or mobile device.

Home

Shop

Learn

Forum

FAQ

Contact

0 item

Your cart is empty

Please browse our shop to order from the wide range of Raspberry Pi boards and accessories.

Subtotal:£0.00
View Basket Continue to Checkout