Support Forum

Share your projects and post your questions

Register   or   Sign In
The Forum

demo-iowrite.py problem

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

3245 Views - Created 02/12/2015

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

Location:
United Kingdom

andrew Twitter  andrew Website  

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

Sign in to post your reply


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.