sorry for my bad drawing. I haven't connected the devices yet because I just purchased a logic level converter.
Also, there's a problem, since TX and RX of ESP32-cam connect to TX and RX of Arduino Mega, how can I upload the program using FTDI programmer. Does it work if I upload the code to ESP32-CAM using a level converter first then connect to Arduino Mega?
As it is a group project, I have to integrate my part with my friends' part, they are using Arduino Mega.
ps: my bad, it's actually Arduino Mega, not Arduino UNO.