First of all, I am totally new to Arduino and electronics in general. I have limited basics on all that.
Now, that this is out of the way, I am currently trying to build a pump control project and would like to have control on all that beautiful stuff with Arduino IoT. I currently have an Arduino Mega2560 and an ESP32 CAM.
My current problem is connecting both of these together. As of now, I understand how to make the physical connections (connecting the UoT to pin RX0 and UoR to pin TX0 + connecting the 5V and GND). My problem is on the programming side of things. I tried using the example files for the ESP32 cam, but I am missing something.
I do believe I need to upload something on the mega in order for it to communicate with the ESP32 cam, but I have found nothing about that. Can any of you point me in the direction of a tutorial or a reference I could use to understand that part? As of now I am at a dead end and at the limit of my knowledge on that.
What I am trying to do in the end is to have access to my Mega's program remotetly using the ESP32cam. At a later date, I might try using the camera, but that is not my main goal.
I am guessing that part of my problem is that the 3.3V is not connected then?
That would clearly depend on just what all these devices are. A LCD character display with an I²C backpack requires two I²C pins and just one "port expander" can share these same two pins to control 8 or 16 inputs/ outputs.
To connect I/O lines between 3.3V and 5V devices, bi-directional level shifters like this one are required, or you will destroy one or both devices. Available from many suppliers.