Boss lady
Boss lady
DIIDevHeads IoT Integration Server
Created by Boss lady on 9/11/2024 in #edge-networking
How do I set up UART communication between BeagleBone Black and Esp32?
Hello, I’m working on a light intensity monitoring system using BeagleBone Black and a Esp32. How do I set up UART communication between BeagleBone Black and Esp32? Because am receiving no data from microcontroller, I have checked checked UART pin connections and baud rate settings.
# BeagleBone Black Python code
import serial
ser = serial.Serial('/dev/ttyO1', 9600)
while True:
if ser.in_waiting > 0:
light_level = ser.readline().decode('utf-8').strip()
print(f"Light Level: {light_level}")

# BeagleBone Black Python code
import serial
ser = serial.Serial('/dev/ttyO1', 9600)
while True:
if ser.in_waiting > 0:
light_level = ser.readline().decode('utf-8').strip()
print(f"Light Level: {light_level}")

1 replies