Esp can't boot when sensor attached !?

Cagire
Posts: 3
Joined: Thu Feb 09, 2023 8:05 am

Esp can't boot when sensor attached !?

Postby Cagire » Thu Feb 09, 2023 8:31 am

Hello,

Trying to set up a heating system controller based on esp32. I had a couple of temperature 1 wire sensors ds18b20 mounted with 4.7k pullup resistor and it was working fine on the test setup. Now I moved one of the sensor at the end of a 25m twisted pairs cable, with a 2.2k pullup resistor. I also pinned this particular sensor to a dedicated GPIO (27).

The sensor is working fine when I plug the resistor after esp32 boot sequence is completed. However, if I try to boot / reset the esp when resistor is wired, it doesn't work.

I tried an another usb power supply, a 5v 2a power supply , changed gpio ... Nothing.

Thank you for helping :)

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

Re: Esp can't boot when sensor attached !?

Postby ESP_Sprite » Fri Feb 10, 2023 1:51 am

Can you clarify 'it doesn't work', e.g. what output do you see on the serial port?

Cagire
Posts: 3
Joined: Thu Feb 09, 2023 8:05 am

Re: Esp can't boot when sensor attached !?

Postby Cagire » Fri Feb 10, 2023 9:16 am

Ok so I managed to plug a laptop on the device in order to have a look at the serial port outputs, and the issue is related to wifi connection. It's booting, but cannot connect the wifi.

Code: Select all

[W][wifi_esp32:494]: Event: Disconnected ssid='Tusseau_koala' bssid=[redacted] reason='Auth Expired'
[W][wifi:549]: Error while connecting to network.
As soon as I disconnect the pullup reistor and press reset, it's booting and connect perfectly at first attempt.

Thank you

Cagire
Posts: 3
Joined: Thu Feb 09, 2023 8:05 am

Re: Esp can't boot when sensor attached !?

Postby Cagire » Fri Feb 10, 2023 6:50 pm

Problem solved, it was a power issue as I suspected. I transfered all my sensors to +3.3V instead of +5v and now my ESP can boot and connect the wifi with all stuff plugged.

8-)

Who is online

Users browsing this forum: Baidu [Spider] and 79 guests