I2C device with switches to gain pins

Building an own I2C device can be complicated for a beginner so does there exists something like a I2C addressable module only read/writable?
A writable one like want to switch for examples LEDs so at 1 and 3 on at this device so send the bits true and they turn on or a readable like pressing button 2 and 3 and reading the state of all buttons as bytes?
Imagine an I2C led-matrix or calculator pad but I want this as abstract outputs or inputs to expand so how would these two types of modules named and do they already exist?
I can imagine also a device controlled by writing to a pwm pin or reading from an analog one (which would be limitted to 8 switches?).

Yes absolutely lots of them
I use these often
https://www.hobbytronics.co.uk/mcp23017-16bit-port-expander

Each one gives you 16 extra I/O pins and you can set the address with three address pins meaning you can connect up to eight of them on a single bus.

1 Like

More suggestions:

2 Likes

Thank you very much, searching after something without knowing the name leading to it can be so frustrating. Now... maybe the naming was too obvious and I searched in the wrong categories of my favourite electronics store too. :slight_smile:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.