Author Topic: Increase gpio pins in esp32  (Read 371 times)

0 Members and 1 Guest are viewing this topic.

Offline Rishles69@Topic starter

  • Contributor
  • Posts: 49
  • Country: in
Increase gpio pins in esp32
« on: January 05, 2024, 12:57:50 pm »
So i got two PCF8574 ics for expanding gpio pins in my project. Each ic provides 8 pins so that 16pins. In one chip, im deciding to connect 4 switches and in another ic, im connecting the enable pins of 6 voltage regulators of 3.3 volt. How do the setup will be. And how can i use gpio pins to control the EN pins of these voltage regulators? And Does that actually work? and how much current does it draw, also, while connecting a switch with PCF8574 ic, Is the chip can wake esp32 from deep sleep?
Thanks
 
« Last Edit: January 05, 2024, 01:14:57 pm by Rishles69@ »
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 12128
  • Country: ch
Re: Increase gpio pins in esp32
« Reply #1 on: January 05, 2024, 06:12:13 pm »
So i got two PCF8574 ics for expanding gpio pins in my project. Each ic provides 8 pins so that 16pins. In one chip, im deciding to connect 4 switches and in another ic, im connecting the enable pins of 6 voltage regulators of 3.3 volt.

1. How do the setup will be.
2. And how can i use gpio pins to control the EN pins of these voltage regulators?
3. And Does that actually work?
4. and how much current does it draw, also, while connecting a switch with PCF8574 ic,
5. Is the chip can wake esp32 from deep sleep?
Thanks
1. we aren’t designing the whole circuit for you, dude. In fact, you will need to provide a schematic (or at least block diagram) of your project in order for some questions to be answerable.
2. What exactly is it you’re unclear on? You just drive the EN pin low or high. Whether it’s enabled when high or low you’ll have to read in the regulator datasheet.
3. Does controlling regulators via EN pins with a microcontroller work? Yes. I’ve done it, controlling several different regulators to sequence their startup.
4. How much current does what draw?
5. The PCF8574 has an INT (interrupt) output, so it should be able to trigger the ESP32. Beware that the ESP32’s deep sleep is unusual, in that when it wakes up, it’s basically rebooting. So depending on your application, you may need to save your running state to EEPROM before going to sleep, so that you can resume it as it was and not reinitialize everything. If you need the ESP32 to respond very quickly, you may need to use regular sleep instead, though it uses more power.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf