Jump to content

Karel_Kruger

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by Karel_Kruger

  1. 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

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines