ESP32: Power On status of the pins during power-on/ boot up process.

Yuvaraj1867
Posts: 63
Joined: Wed Mar 06, 2019 4:39 am
Contact:

ESP32: Power On status of the pins during power-on/ boot up process.

Postby Yuvaraj1867 » Tue Jun 18, 2019 10:31 pm

Hi Guys,

My project uses GPIO pins to drive PWM to control power to a load. The issue I am facing now is that the power-on-default value of the pins is driving the MOSFET fully on - this will damage my load as the current is uncontrolled. This condition exists until the boot up process is completed and firmware change the status of the selected pin.

Since the boot time is too large, we need a way to instruct the ESP32 MCU to keep the pins in the required condition during power-on / boot up process.

Can anyone please let me know how to do this?

Yuvaraj1867
Posts: 63
Joined: Wed Mar 06, 2019 4:39 am
Contact:

Re: ESP32: Power On status of the pins during power-on/ boot up process.

Postby Yuvaraj1867 » Wed Jun 19, 2019 9:30 am

Anybody help me because It is urgent.
Last edited by Yuvaraj1867 on Thu Jun 20, 2019 6:49 am, edited 1 time in total.

ESP_Sprite
Posts: 9043
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32: Power On status of the pins during power-on/ boot up process.

Postby ESP_Sprite » Thu Jun 20, 2019 4:51 am

You could try to hack the bootloader to set the GPIOs as soon as possible.... but that would be a workaround at best. What GPIOs are your mosfets connected to? Can you move them to IOs that aren't used during boot, and add a pull-up / pull-down resistor to force them to the correct level around that time?

Yuvaraj1867
Posts: 63
Joined: Wed Mar 06, 2019 4:39 am
Contact:

Re: ESP32: Power On status of the pins during power-on/ boot up process.

Postby Yuvaraj1867 » Thu Jun 20, 2019 5:12 am

Hi

Thanks.

I don't know how to hack the bootloader. Can you help me.

i am using GPIO18 and GPIO19.

ESP_Sprite
Posts: 9043
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32: Power On status of the pins during power-on/ boot up process.

Postby ESP_Sprite » Thu Jun 20, 2019 7:24 am

18 and 19 aren't used by the chip on boot as far as I know. Do you have pullups/downs on the gates of your mosfets?

Yuvaraj1867
Posts: 63
Joined: Wed Mar 06, 2019 4:39 am
Contact:

Re: ESP32: Power On status of the pins during power-on/ boot up process.

Postby Yuvaraj1867 » Thu Jun 20, 2019 11:11 am

i will try to add pullup/pulldown.


Who is online

Users browsing this forum: No registered users and 76 guests