ESP32-CAM does not boot with DS18B20 on GPIO14

muller59
Posts: 5
Joined: Thu Jul 18, 2019 11:59 am

ESP32-CAM does not boot with DS18B20 on GPIO14

Postby muller59 » Sun Feb 02, 2020 2:58 pm

Hello,
i want to use the ESP32-CAM from AI_thinker to monitor my 3D printer enclosure.
I also want to know the temperature within the enclosure.

When i enhance the standard example CameraWebServer with code to read the DS18B20 temp sensor, this compiles without error.
However, the ESP32-CAM does not boot with gpio14 connected to the DS18B20. the gpio14 is pulled up with a 4K7 resistor (ds18b20 requirement).
when i disconnect gpio14, the ESP32-CAM boots
then i connect gpio14, and the ESP32-CAM starts reading the sensor, so the code works.

i am not using any card in the ESP32-CAM

does anyone have an idea why the ESP32-CAM will not boot with gpio14 connected.
Is gpio14 the right io to use? It seems free on the AI_thinker board.

thanks for reading,
Rob

username
Posts: 536
Joined: Thu May 03, 2018 1:18 pm

Re: ESP32-CAM does not boot with DS18B20 on GPIO14

Postby username » Sun Feb 02, 2020 7:05 pm

Are you using the SD card with your application ?
IO14 is the HS2_CLK signal for the SD Card socket.

muller59
Posts: 5
Joined: Thu Jul 18, 2019 11:59 am

Re: ESP32-CAM does not boot with DS18B20 on GPIO14

Postby muller59 » Mon Feb 03, 2020 11:58 am

No, i am not using the SD card.

i am just curious which gpio port is free to use on the ESP32-CAM, all ports that are accessible via header seem to be spoken for.

Thanks for the reaction.

bobtidey
Posts: 43
Joined: Mon Jun 18, 2018 2:24 pm

Re: ESP32-CAM does not boot with DS18B20 on GPIO14

Postby bobtidey » Tue Feb 04, 2020 11:55 am

I don't know why GPIO14 would affect the boot unless it is something to do with the camera software. Maybe try it with a minimal sketch to see if that boots OK with GPIO14 pulled up.

On my camera app I do use the SD card so there is little IO free. I use RXD as GPIO3 pin; just use pinMode in setup.. This doesn't stop serial debug if required. I am sure you could use this for your temp sensor.

Chuma87
Posts: 8
Joined: Sun Jan 26, 2020 6:34 pm

Re: ESP32-CAM does not boot with DS18B20 on GPIO14

Postby Chuma87 » Tue Feb 04, 2020 2:35 pm

Hi, try using GPIO_13

I have a doppler sensor and it works great

Who is online

Users browsing this forum: No registered users and 37 guests