Reading multiple sensors
The ADC Pi is an Analogue to Digital converter for the Raspberry Pi
16/01/2019
Posted by:
Geoff
Re IO Pi Plus. Is it possible to read in the 8 inputs from a port as a single 8 bit word rather than polling through all 8 pins
16/01/2019
Posted by:
andrew
Hello Geoff
You can read a port as a single 8-bit byte by using the read_port() function in our IO Pi libraries.
Each bus on the IO Pi is split into two ports; port 0 for pins 1 to 8 and port 1 for pins 9 to 16. Calling read_port(0) would read all pins between 1 and 8 and return a number between 0 and 255 or 0x00 and 0xFF.
You can read a port as a single 8-bit byte by using the read_port() function in our IO Pi libraries.
Each bus on the IO Pi is split into two ports; port 0 for pins 1 to 8 and port 1 for pins 9 to 16. Calling read_port(0) would read all pins between 1 and 8 and return a number between 0 and 255 or 0x00 and 0xFF.
16/01/2019
Posted by:
Geoff
Thanks Andrew, I just worked that out. I think this will make all the difference for my application where I have to poll 48 independent sensors quickly. I have not yet found a simple list of all the commands available?
16/01/2019
Posted by:
andrew
If you are using our python library you can find all of the available functions in our IO Pi Plus GitHub repository
We also have IO Pi libraries for C, C++, Node JS and C# .net in our AB Electronics UK GitHub Repository
You can also find several tutorials on using the IO Pi Plus in our IO Pi Plus Knowledge Base
We also have IO Pi libraries for C, C++, Node JS and C# .net in our AB Electronics UK GitHub Repository
You can also find several tutorials on using the IO Pi Plus in our IO Pi Plus Knowledge Base
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.