Karel_Kruger Posted March 8, 2018 Posted March 8, 2018 (edited) I have a Adafruit PN532 connected over UART to the orange Pi Zero on UART1(p8/10) i added the uart overlays to armbianEnv.txt and edited the libnfc.conf to include device.connstring = "pn532_uart:/dev/ttyS1" #device.connstring = "pn532_uart:/dev/ttyS1:9600". I commented included a fixed lower baudrate to test if it might have been the problem. To thest the theory i connected a arduino due to the same serial port to print somting to see if there was any communication but nothing went through the python code i used was simple : import serial ser = serial.Serial('/dev/ttyS1') print(ser.name) ser.write(b'hello') ser.close() the Arduino scethch just had a Serial1.begin(115200) Serial.begin(9600) // Serial1.begin(9600) and in the loop while(Serial1.available > 0) { Serial.print(Serial1.read(); } I am coming from a Arduino background and the pi is very new to me so any advice will be greatly apprichiated Edited March 8, 2018 by Karel_Kruger
Recommended Posts