Control more arduino from UDOO

Discussion in 'UDOO X86' started by Marco Morgia, Mar 13, 2019.

  1. Marco Morgia

    Marco Morgia New Member

    Joined:
    Mar 13, 2019
    Messages:
    4
    Likes Received:
    0
    Good morning,

    I want to implement a project to "command" more arduino's yun from a UDOO board.

    The udoo board must have a rfid module. When I pass the RFID card to the reader, the UDOO must be able to read from an internal database if the card is enabled and then communicate to one (or more) Arduino Yun to activate a relay via the rest services internal to the Arduino.

    I want to know wich rfid module is compatible with UDOO, and how UDOO comunicate with that rfid module.In my experience with arduino i have a "driver" written in C++ wich communicate directly from arduino to rfid module. It's the same with UDOO, or exist other type of "comunication"?
     
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    With a Udoo you better do this with an USB RFID reader and do the handling of the Linux side. Then you have nu issues with databases. Such an USB RFID reader acts like a keyboard so you don't have to deal with customer drivers. To be honest you do not need a Udoo for this, a Raspberry pi will do the trick too.
     
  3. Marco Morgia

    Marco Morgia New Member

    Joined:
    Mar 13, 2019
    Messages:
    4
    Likes Received:
    0
    What kind of USB reader I've to buy?
     
  4. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
  5. Marco Morgia

    Marco Morgia New Member

    Joined:
    Mar 13, 2019
    Messages:
    4
    Likes Received:
    0
    Ok thanks,

    but now how to comunicate with the usb reader. I have found this node.js script

    const SerialPort = require('serialport')
    const port = new SerialPort('/dev/tty-usbserial1', { baudRate: 57600 })

    but the port name is not correct.
     
  6. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580

Share This Page