Home automation board getting started

alexburcea

Moderator
Staff member
Hi,

Could you share the output of the install process (sudo pip install SMioplus -U)
Then run python --version and share the output.
It might happens the pip install the library for one version of python that is not the default one.
 

enallon

New member
~/devel/src/ioplus-rpi $ sudo pip install SMioplus -U
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: SMioplus in /usr/local/lib/python3.9/dist-packages (1.0.0)
Collecting SMioplus
Using cached https://www.piwheels.org/simple/smioplus/SMioplus-1.0.0-py2.py3-none-any.whl (3.2 kB)

python --version
Python 3.9.2

Also tried the second set of install instructions
~/devel/src/ioplus-rpi $ pip install -e python/
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Obtaining file:///home/eric/devel/src/ioplus-rpi/python
Installing collected packages: SMioplus
Running setup.py develop for SMioplus
Successfully installed SMioplus

1701865768985.png
 

enallon

New member
Before I ask a dumb question, I want to make sure I have the hardware on correctly. I've enabled the I2C interface and placed a jumper on Stack ID 0. Does that sounds right. Missing anything?
 

alexburcea

Moderator
Staff member
Stack level 0 means no jumper, now you set stack level 1.
You can use the command "ioplus -list" to see the stack level of every card connected (if you have more)
 

enallon

New member
I'm playing around with the function getAdcV(stack, channel). Is there a way to read all channels at the same time? If not, is there a delay I need to incorporate when reading all channels?
 

alexburcea

Moderator
Staff member
Hi,
There is no function to read all channels so you have to read one at a time. The delay depends on your raspberry type and what is running on it but a few milliseconds delay , lets say 10, is good practice. You also can test with deferent values to see how it goes.
 

enallon

New member
I'm starting to work with the relays for this board. I'd like to relay 24VDC using these and have an external power supply. Where would I connect the power supply to use this external source?
 

alexburcea

Moderator
Staff member
The card has 2 connectors one for 4 relays. The connectors contains one common and 4 channels. You should connect one of the external power source pin (for example +) to the common (marked "COM" on the back of the card), the second power source terminal (-) to the negative terminal of your load and the positive terminal of the load to the relay (REL 1...8 marked pins).
 
Top