ESP32 Serial Communication
I have not posted anything since the 12th, so I am past due. I’ve been working on serial communcation between 2 ESP32s, and after a couple of failed sessions, I acheived success yesterday evening. I was struggling with getting serial communication to work on the XIAO boards, and so I moved over to the Elegoo boards for this project. In doing so, I had to wire up the TFT screen (ST7735R) on one of them and a DHT22 on the other. Various challenges arose during that seemingly simple operation, but I got it worked out. Now temperature and humidity data is being sent from 1 MCU to the other via serial (on UART2) communication. Upon reception, data received is displayed on the TFT screen. Updates occur every 2 seconds, or so, if memory serves.
This is a stepping stone project. Next, I plan to migrate from UART communication to wireless communication. But first I want to clean things up a bit. The data isn’t displaying nicely on the TFT yet, and I want to experiment with how the data is packaged and processed on both ends. Perhaps implement some acknowledgment logic as well.
We are going to VA this evening, so I hope to be able to spend a little time tinkering with this when not working up there. We’ll see. Otherwise, progress will have to hold until Sunday.



Post Comment