I am trying to send data serially to ESP 32 from the Raspberry Pi Model 4b with a RS485 hat. The ESP32 will then forward data to the LoRa wan gateway to upload to TTN. I am a beginner to Raspberry Pi and I don't understand how to configure the GPIO pins to send 'data' to the esp32.
For now, I just want to send sample data to the esp32 for testing purposes and later on, I will hook the HC-SR04 ultrasonic sensor to the RS485 to send the data to the esp32. I am not sure of the programs I need to run to configure and send the data to the esp32. I would appreciate if someone could give me some guidance on what libraries I need to use to establish serial communication and if possible, some examples.
Thank you.
For now, I just want to send sample data to the esp32 for testing purposes and later on, I will hook the HC-SR04 ultrasonic sensor to the RS485 to send the data to the esp32. I am not sure of the programs I need to run to configure and send the data to the esp32. I would appreciate if someone could give me some guidance on what libraries I need to use to establish serial communication and if possible, some examples.
Thank you.
Statistics: Posted by lakindu — Wed Jul 24, 2024 8:10 am — Replies 3 — Views 67