• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Need more GPIO ports

Q&A Forum › Category: ESP32 › Need more GPIO ports
0 Vote Up Vote Down
Bernie asked 5 months ago

Hi. I have run out of digital output ports. It appears that GPIO 34, 35, 36, 39, 2, 7, 8, 9, 10, 12, Rx0, Tx0, cannot not be used as output GPIOs.  However, I am using GPIO 0, 4, 13, 14, 15.

The multiplexer 74HC4067 is recommended to set up extra addressable ports for an ESP32.  But does this multiplexer retain the output value of the signal when it is deselected and another port is addressed? I do not think it does, as this device is an analog device. It probably sinks to LOW (or HIGH) when deselected?  As I am directly driving relays, this is necessary.

Does the TCA9548A I2C multiplexer retain values upon deselection?

What is the best way to get hold of more output ports for the ESP32 or the ESP32-S3?
Thanks

Question Tags: ESP32, Multiplexer, wifi
3 Answers
1 Vote Up Vote Down
Sara Santos Staff answered 5 months ago

Hi.
The best way to have more GPIOs is to use a multiplexer.
The one you mentioned is to use multiple I2C devices: https://randomnerdtutorials.com/tca9548a-i2c-multiplexer-esp32-esp8266-arduino/
 
For GPIO multiplexing, it’s recommended the MCP23017, for example.
At the moment, we don’t have any tutorials about that module.
 
Regards,
Sara

0 Vote Up Vote Down
Bernie answered 5 months ago

Thank you Sara.  I’ve ordered a MCP23017 module from eBay.
Bernie

0 Vote Up Vote Down
Sara Santos Staff answered 5 months ago

Great!

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.