So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By sprinkfitter
#72814 I have a project with Wemos mini. I have used i2c to hook up a lcd and a rtc on that bus line. D1 and D2 pins. I like to have more digital pins with a sn74hc595 on the same bus line. What I have been reading the 595 will require 3 digital pins. Can the same i2c bus be used with just adding an extra digital pin?
User avatar
By rudy
#72815 It is difficult to have different communications busses on the same lines. It is easy to cause unexpected problems. Since you are already using I2C I strongly suggest a I2C port expander chip.

The MCP23017 is a good choice since it can provide a strong high output as well as sinking current. 25mA sink/source capability per I/O

https://www.aliexpress.com/item/MCP2301 ... 91000.html

The PCF8575 is often used for driving character LCD modules. It is a simpler device and it can not source much current. (weak high) It can sinck current better than source.

https://www.aliexpress.com/item/PCF8575 ... 13090.html
User avatar
By sprinkfitter
#72816
rudy wrote:It is difficult to have different communications busses on the same lines. It is easy to cause unexpected problems. Since you are already using I2C I strongly suggest a I2C port expander chip.

The MCP23017 is a good choice since it can provide a strong high output as well as sinking current. 25mA sink/source capability per I/O

https://www.aliexpress.com/item/MCP2301 ... 91000.html

The PCF8575 is often used for driving character LCD modules. It is a simpler device and it can not source much current. (weak high) It can sinck current better than source.

Thank You

https://www.aliexpress.com/item/PCF8575 ... 13090.html