Add more than 100 GPIO pins to your PICO!!!!

Sdílet
Vložit
  • čas přidán 22. 02. 2023
  • There are times when you simply need more inputs or outputs, don't despair! In this video, Chris introduces you to an i2c port expander chip that is easy to use and interface with the PICO. Add up to 128 GPIO pins, with each being an Input or and Output.
    SEE ASSOCIATED VIDEOS:
    Raspberry Pi PICO Setup and Preparation for Programming • Raspberry Pi PICO Setu...
    PICO Machine Library PIN Class • PICO Machine Library P...
    VISIT OUR COMPANION WEBSITE -- makingstuffwithchrisdehut.com
    DOWNLOAD FILES HERE -- makingstuffwithchrisdehut.com...
  • Věda a technologie

Komentáře • 38

  • @donbates3
    @donbates3 Před rokem

    This channel is great. Thank you

  • @skf957
    @skf957 Před rokem +2

    Very interesting Chris. From it's launch I've been astonished as to the capabiliites of the Pico - especially given it's low price point. This I2C package takes it up a notch or 10 I'd say. Liking the longer videos too, thank you.

    • @MakingStuffwithChrisDeHut
      @MakingStuffwithChrisDeHut  Před rokem +3

      HI CG, I too am amazed with the PICO, and everything it is capable of. After watching people use Raspberry PIs being utilized for jobs that a simple microcontroller can do, I was very happy they came out with this little chip! I got some projects coming up that I am working on now that will be released in the summertime that are all using the PICO. So much fun and so economical too!
      Cheers!
      Chris

  • @Starlight-AG
    @Starlight-AG Před rokem

    Good video Chris. This is something I am checking into. As others have requested, please do a follow-up video about the interrupt usage. Thanks.

    • @MakingStuffwithChrisDeHut
      @MakingStuffwithChrisDeHut  Před rokem

      Hi Starlight,
      I have added your comment to the "follow up" video. I am hoping to find time later this summer or perhaps into fall.
      Cheers!
      Chris

  • @mc.the_machine
    @mc.the_machine Před rokem +3

    It's interesting to note that the extender chip here actually cost more than an RP 2040 itself. It seems like it would be interesting to have a video on using RP2040s or other microcontrollers controllers as extenders. There are a number of Chinese microcontrollers that are significantly cheaper than either, and I wonder if someone were to make firmware for them, if they could really replace these older extender chips in a lot of applications, or, at least that these older extender chips would have to compute on price.

    • @MakingStuffwithChrisDeHut
      @MakingStuffwithChrisDeHut  Před rokem +1

      Hi Michael, you do bring up a great point! That might be a fun project video at some point in the future.
      Cheers!
      Chris

  • @quaternion-pi
    @quaternion-pi Před rokem +3

    Quite interesting...I was wondering right away if you would mention if the expanded gpios each supported being attached to an interrupt...and you teased an answer😀 Thanks for your very useful content.

  • @user-kt2yx3zg6m
    @user-kt2yx3zg6m Před 3 měsíci

    Merci, merci, merci infiniment 🌞

  • @showemethemoney
    @showemethemoney Před 7 měsíci

    Hi Chris, great tutorial I'm hoping to build off it. I'm having trouble installing the MCP23017 library. Can you recommend a video or article that shows how to install a library for the pi pico. I'm getting confused by all the mip and pipkin stuff, and the things I'm trying don't seem to work. For reference I"m using the Pi Pico W. Thanks!

    • @MakingStuffwithChrisDeHut
      @MakingStuffwithChrisDeHut  Před 7 měsíci

      Hello,
      This video covers how to do that using the Thonny IDE. I suspect it will help with your problem.
      czcams.com/video/ziBzaqSEQBM/video.html
      Cheers!
      Chris

    • @showemethemoney
      @showemethemoney Před 7 měsíci

      Thanks, it did help, I also needed to update to the latest instance of Thonny@@MakingStuffwithChrisDeHut

  • @gordonw9208
    @gordonw9208 Před rokem

    The port expander chips coat about the same as a pico. I am thinking of getting some anyway.
    Having experimented with some esp-12 modules, i have gone back to pico's only. They are stable and reliable from my experience. Im working on about 4 different pico projects.

    • @MakingStuffwithChrisDeHut
      @MakingStuffwithChrisDeHut  Před rokem +1

      Hi Gordon,
      Yes, some of the devices have gotten expensive but be sure to consider all aspects. They may be able to handle more current than the PICO, they may allow for a more compact layout, they may also provide isolation, etc.
      I have been pretty happy just staying within the PICO world. More and more libraries are becoming available to help with the interfacing making it "easier" to work with.
      In the coming months, I will be doing more project based videos using the PICO - I am hopeful that will attract more viewers and more attention to the PICOs.
      Cheers!
      Chris

  • @jomfawad9255
    @jomfawad9255 Před 6 měsíci

    I have 13 dc motors and each motor has a motor driver that needs 2 pins from the microcontroller so 26 pins in total. My question is if i use external power for the motors and the motor drivers, can i connect all the 26 pins of the motors to the 26 gpio pins on raspberry pi? Thank you

    • @MakingStuffwithChrisDeHut
      @MakingStuffwithChrisDeHut  Před 6 měsíci +1

      Hi,
      If you are saying "connect 26 pins RPi to the motor DRIVERs to provide logic level control signals", then that may work.
      Cheers
      Chris

  • @ManosMantzas
    @ManosMantzas Před 2 měsíci

    Hi, thanks for this. Your link to download files leads to the main page. Which are the files to download for this project please? Thank you in advance. :)

    • @MakingStuffwithChrisDeHut
      @MakingStuffwithChrisDeHut  Před 2 měsíci +1

      Good morning,
      I have edited the website this morning (5/1/2024) and added links to each of the file sections (SUPPORTING DOCS). Look near the bottom of the main page and you should see the TABLE OF CONTENTS section.
      Hope this helps!
      Chris

  • @jyvben1520
    @jyvben1520 Před rokem

    So pico has 2 hardware i2c busses with 8 mcp23017 on each, 256 io, but pico can switch its i2c to other pins very fast.
    max 12 i2c "ports" x 128 io = 1536, external power recommended. (might need to 'detach' old i2c in pico, set it as serial)

    • @MakingStuffwithChrisDeHut
      @MakingStuffwithChrisDeHut  Před rokem

      My head would explode keeping track of all those I/O 🙂 - love your thinking Ben!
      Cheers!
      Chris

  • @edwinvarghese
    @edwinvarghese Před 4 měsíci

    Hey, Thanks for the tut!. Quick question. is there a way to add 300 additional I/O to arduino (uno/mega/any) ?

    • @MakingStuffwithChrisDeHut
      @MakingStuffwithChrisDeHut  Před 4 měsíci

      Hi, It has been a very long time since I have worked with Arduinos and I can't recall all of the specifications needed to answer that question. 300 is a lot, what are you planning on doing?
      Cheers!
      Chris

    • @edwinvarghese
      @edwinvarghese Před 4 měsíci

      @StuffwithChrisDeHut Hey thanks for the lightning-fast response..I want to control around 150 SMD LEDs. I was searching the best way to achieve this. My understanding - Realized that we can use multiple MCP23017 (to get exra 16 I/Os) so I might need 5 of these coupled with an Arduino mega to achieve the goal (using 5 port expanders might result in performance issues) so best way is to get this implemented without performance impacts.

  • @davidkeith423
    @davidkeith423 Před 6 měsíci

    Will this work on a raspberry pi 4b?

    • @MakingStuffwithChrisDeHut
      @MakingStuffwithChrisDeHut  Před 6 měsíci +1

      Yes this chip and others similar to it can be used with any micro-controller. The code would be slightly different, but they are very useful chips when you need a LOT of IO.
      Cheers!
      Chris

  • @wayland7150
    @wayland7150 Před rokem

    I2C is IIC which is I*i*C which is: I squared * C

  • @qozia1370
    @qozia1370 Před 10 měsíci

    thats not how you do a tutorial
    you should start with the simple circuit and then add complexity in the form of your BS led and input

    • @MakingStuffwithChrisDeHut
      @MakingStuffwithChrisDeHut  Před 10 měsíci

      It is unfortunate you feel that way. There are over 114 million CZcams channels that you can choose from, I am sure you will find one that suits your tastes.
      Cheers!
      Chris

    • @ThePrimePrimer
      @ThePrimePrimer Před 10 měsíci

      @@MakingStuffwithChrisDeHutIgnore this troll. The tutorial was great

    • @MakingStuffwithChrisDeHut
      @MakingStuffwithChrisDeHut  Před 10 měsíci

      @@ThePrimePrimerThank you for the show of support and kind words, I really appreciate it!
      Cheers!
      Chris

    • @qozia1370
      @qozia1370 Před 9 měsíci

      ​@@MakingStuffwithChrisDeHut yes I did choose another channel.
      Too bad you can't take my rough comment as a chance to learn.
      In teaching you explain the concept using simple simple simple example and then build up from there.
      In math class even highly complex subjects is taught through the bare minimum example and then complexity gets introudcuced
      Thanks for northing.

    • @qozia1370
      @qozia1370 Před 9 měsíci

      ​@@ThePrimePrimertroll this troll that! Grow up.