DVC-Viking-Robotics / Robot-Senses

A collection of hardware interfaces specific to sensors
0 stars 0 forks source link

Need driver class for MCP23017 i2c expander IC #3

Open 2bndy5 opened 4 years ago

2bndy5 commented 4 years ago

The MCP23017 provides 16 extra digital input/output GPIO pins for access via the i2c bus (2 wire data communication protocol). We could use this to read data from 8 HC-SR04 distance sensors. Because timing is very important to using those distance sensors, it would be a good idea to implement the MCP23017's IRQ (interrupt) pin(s) to lessen the amount of times the MCU or Raspberry Pi has to poll the MCP23017 for results.

2bndy5 commented 4 years ago

A library like the circuitpython-mcp230xx would be ideal for this