About Us Knowledge Base Community Forum Electronics Toolbox FAQ Shipping & Delivery

Community Forum

Share your projects and post your questions

Search
Register or Sign In
Forum

demo-iowrite.py problem

2191 Views - Created 02/12/2015

02/12/2015

Posted by:
remilaciotat

Users 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 rasbian 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 <module>

    from ABE_ExpanderPi import IO

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

    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

Users Avatar

Location:
United Kingdom

Users Twitter  Users 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.

AB Electronics UK Tech Support

03/12/2015

Posted by:
remilaciotat

Users 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

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.