Hi guys, i have some troubles with the communication of my Arduino UNO and my ESP32
I want to send data from the ESP to my Arduino using the RX/TX Pins.
But when i test my project without using USB (9V battery for Arduino and 3.3V Arduino's pins for ESP32) This doesn't work only works when i connect the USB to each board
Welcome. You are starting a little bit on the wrong foot.
You are asking a power question without showing the power connections. The diagram you posted is useless because, as you know, it is incomplete. It shows three unlabelled devices and invites the reader to guess what they are.
"The language of electronics is a schematic or circuit diagram. Long descriptions of what is connected to what are generally useless. A schematic is a drawing of what connects to what; please make one and photograph it. We don't mind if it's hand drawn, scruffy and does not use the correct symbols. Please don't post Fritzing diagrams. They may look nice but they are very easy to misinterpret"
any particular reason for using a UNO and ESP32?
if you don't need WiFi or Bluetooth won't the UNO do?
if you need Wifi connect the relay etc to the ESP32?
or are there other components that are not shown on the diagram?
thought this is the problem, but if i connect the Arduino using USB and the ESP connected to the 3.3V, it works properly. So looks like the battery can't provide the current that is needed
Yes. Vin on the ESP is also 5V in/out. It feeds a 3.3V regulator, so I think you can apply a higher voltage instead, like 9V, but the regulator will run hotter.
It's better to allow the ESP32 to do its own power regulation. The 3.3V supply on the Arduino is barely sufficient to power it. Sometimes insufficient.
The post #18 is just a demonstration that ESP32 could be operated using 3.3V supply of UNO (for test purposes). In the field application, your comment of post #19 is to be honored with regards to powering the ESP32 Module.