The Arduino on the Sensors Mezzanine can’t communicate with the dragonboard.
Here is my test code:
test_com.ino
void setup()
{
Serial.begin(9600);
}
void loop()
{
Serial.println(“Hello world from Arduino on 96B Sensors PCB”);
delay(2000);
}
test_com.py
import serial
import upm
from upm import pyupm_jhd1313m1
ard = serial.Serial(’/dev/tty96B0’, 9600)
lcd = pyupm_jhd1313m1.Jhd1313m1(0, 0x3e, 0x62)
if name == ‘main’:
print(‘Test comm between Arduino and dragonboard 410c’)
lcd.clear()
lcd.setCursor(0, 0)
lcd.setColor(255, 180, 180)
lcd.write(‘Test comm’)
try:
while True:
ardOut = ard.readline()
print(ardOut)
except KeyboardInterrupt:
lcd.setColor(0,0,0)
lcd.clear()
print("CTRL-C!! Exiting...")
Makefile
include /usr/share/arduino/Arduino.mk
run: upload
python3 test_com.py