ESP32S3 Camera pin reuse/resetting the state

the_same_one
Posts: 1
Joined: Fri Aug 09, 2024 3:29 pm

ESP32S3 Camera pin reuse/resetting the state

Postby the_same_one » Fri Aug 09, 2024 3:44 pm

I have an amazing Wroom1 Esp32S3 board.
I set camera pin (say 10) to be input: `pinMode(10, INPUT_PULLUP);`
After the power up, I measure voltage on the pin 10 it's HIGH (3V).
On the button push, I initialize camera which is calling `esp_camera_init(&config)` with config of type `camera_config_t`.
I measure the pin (10) again and voltage is floating, apparently it is used still by the camera.

What do I need to do in order to get this pin free of camera usage to it's previous state? (input pull_up)

now, it doesn't matter which pin is used to trigger camera initialization. the point is to get the camera pin(any one of them) to be usable as input pin after the camera init therefore I need some way of halting the camera down. `esp_camera_deinit()` is not enough.
esp32s3_test_cam_wifi_mqtt.zip
main sketch
(2.68 KiB) Downloaded 66 times

lbernstone
Posts: 826
Joined: Mon Jul 22, 2019 3:20 pm

Re: ESP32S3 Camera pin reuse/resetting the state

Postby lbernstone » Sat Aug 10, 2024 12:37 am

After the camera uses the GPIO, the pinMode is reset. You need to set the pinMode again after the camera is turned off.

Who is online

Users browsing this forum: No registered users and 33 guests