UDOO and the SPI pinout

Discussion in 'UDOO QUAD' started by Danilo Monda, Mar 4, 2016.

  1. Danilo Monda

    Danilo Monda New Member

    Joined:
    Jan 30, 2016
    Messages:
    3
    Likes Received:
    1
    Hello everyon, thi is my first thread.

    I'm working as a electronic designer at the E-Team Racing team of University of Pisa.
    We are using the UDOO board for the telemetry of our car.
    We have available the RFM12B module and I need to interface the UDOO board with the RFM12B module.
    In the library of the RFM12B module, I found this:

    // pins used for the RFM12B interface:
    // for DUE we only need to define these two pins
    // the SS pin determines which SPI interface will be used
    #define RFM_IRQ 8 // PWM8 Digital8
    #define SPI_SS 10 // PWM10 SPI-CS0

    PWM10 corresponding to SPI5 but no bit comes out pins. (I verified this by using an oscilloscope)
    I tried to change the SPI-CS0 pin with another pin of another SPI port but no SPI works.
    (I used the pinout diagram of the UDOO board).

    Which SPI can I use to connect the UDOO board with the RFM12B module?
    Thanks for the help.
     
    Andrea Rovai likes this.
  2. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    140
    So, you want to access the SPI from Linux or from the arduino?

    Gesendet von meinem FP2 mit Tapatalk
     
  3. Danilo Monda

    Danilo Monda New Member

    Joined:
    Jan 30, 2016
    Messages:
    3
    Likes Received:
    1
    I would prefer linux

    Inviato dal mio PLK-L01 utilizzando Tapatalk
     
  4. Danilo Monda

    Danilo Monda New Member

    Joined:
    Jan 30, 2016
    Messages:
    3
    Likes Received:
    1
    From arduino too
     
  5. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    140
  6. arno

    arno New Member

    Joined:
    Monday
    Messages:
    2
    Likes Received:
    0
    I want to connect an RFID-RC522 to the udoo.
    Can I use the SPI port in Arduino?
     
  7. fetcher

    fetcher Member

    Joined:
    Mar 9, 2014
    Messages:
    163
    Likes Received:
    17
    For SPI on the Arduino side (SAM3X CPU) you'll need to run a 4-pin cable to that small male 4x1 header sandwiched between the Udoo's rear USB ports and its power LED. There's no SPI function on any of the shield-area pins as far as I know, although you can map some of those to (EC)SPI in Linux.

    This is one of the few layout differences between an Udoo and an original Arduino Due, which, like newer Atmel-based Arduino's puts its SPI on a 3x2 header within the main shield footprint. Some shields expect SPI to be in that location, and include a matching female header on the bottom to connect to it -- to make these work on an Udoo you'll need to solder extra wires, being careful to match up the pin assignments correctly.

    I don't know why the Udoo designers decided on this deviation from the standard Arduino layout.
     
  8. arno

    arno New Member

    Joined:
    Monday
    Messages:
    2
    Likes Received:
    0
    Thank you very much
     

Share This Page