Esp32 camera is connected to relay, but when connecting to cellphone it will turn off

My project is Arduino uno, touchscreen as buttons for relay, esp32 camera connected to cellphone and led light.

My arduino uno is connected to a battery (3x 18650 to be exact 12v) relay positive connection is connected to 5v of arduino uno, then esp32 camera is in the relay and also the led light. When turning on the relay for esp32 camera, it can connecto the cellphone but when I will start showing the display in the cellphone for the camera, the relay will automatically off. TIA

Please use schematics, not words, to show the build. Links to datasheet of stuff like touchscreen and LEDs.

It's all described in this link: How to get the best out of this forum - Using Arduino / Installation & Troubleshooting - Arduino Forum

You are probably drawing too much current from the Arduino 5V output, so the regulator is overheating and shutting down.

Use a separate 5V switching regulator for the non-Arduino project components, and connect all the grounds. Pololu has the best selection.

It is best to power the Arduino through Vin from a 7 to 9V source, or through the 5V pin from a regulated 5V source.

when the power source came from connection to the computer through usb port, all is stable but when I used the battery 12v the relay from the camera is turning off. Is it possible that it is gaining too much electricity that it will turn itself off? what to do to make the battery stable connection to the arduino?

You stated that already, and I explained the likely cause of the problem.

Find a better way to power the setup. Also, make sure that the relay coil has an inductive kick diode to protect other circuits from voltage spikes.

does using regulator to make the 12v to 5v help?

Yes, the Arduino can be powered from a regulated 5V source, through the "5V" pin.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.