Adding I/O with MCP23017 - Collin’s Lab Notes #adafruit #collinslabnotes

preview_player
Показать описание
Don’t want to switch boards for more I/O? Add many many pins with an I2C port expander #adafruit #collinslabnotes
Upgrade with port expanders:

-----------------------------------------

-----------------------------------------
Рекомендации по теме
Комментарии
Автор

FYI the MCP23018 is the newer version of this part. There's also an 8bit gpio expander version the mcp23008 (with a newer version of that being the mcp23009). the newer versions have slightly fewer pins by using a voltage divider to set the address pin (which has its pros and cons). otherwise, the newer versions are identical.

mattb
Автор

I love these quick 1-minute Lab Notes. Lots of cool ideas, hints and reminders on various stuff. Thank You.

jimwithheld
Автор

The RP2040 has two i2c buses, so 256 i2c pins are possible there. There is also the MCP23S17 using the SPI bus for even more expansion.

linux
Автор

I ❤❤❤❤❤ this chip 😊
It has made so many projects so much easier to build - a lotbof projects that would have otherwise needed a mega just for the I/O got simplified with a couple of these, and a nano 👍❤

LordPhobos
Автор

Another favourite chip for output multiplexing is the pca9685, for multiple pwm outputs, for controlling (through power drivers) many motors or leds.

Orionrobots
Автор

Depending what you're doing, you can also use a shift register, which is probably cheaper and easier for many tasks.

deltaray
Автор

Interesting way to add ports, I was guessing you were going to use some sort of shift register

joshm
Автор

I just use the shift register for gpio expension

herbertattema
Автор

Actually you don't even need to use i2c. Simply use a shift register ic and you are good to go. Its older tech but does the same job for cheap.

merterenkarabulut
Автор

After the 128 pins, using demux for 2^128 hdjssj

furkanayas
Автор

How is it different from using a multiplexer?

bharattamang
Автор

Question where you can get the library for example for a pic

juanfra
Автор

Could this port expander be used on the chip must used when making a DIY Mechanical keyboard ??

EvilDaveCanada
Автор

What about Analog Pins? I want to expand the number of analog pins to have multiple joysticks/pots. Is there something like this chip? Or do I need a multiplexer?

hanshearth
Автор

Iirc the i2c version is only 15 bits. I made that mistake with my work board.

gdawgpwnsall
Автор

I just stumbled on this content creator, I don't really understand much, what is a good way to dive into learning this stuff?

trayvordemonslayer
Автор

What’s the advantage of this over shift registers?

deviousengineer
Автор

Any one give the code used in this Shorts for mcp23017

rushikeshpawar
Автор

I use a mega2560 arduino and nearly all the pins are in use for engine management

Shiznit
Автор

Thankgod u said its a lot I was all lost before that

KnOwThEDiNo