Controlling the Hercules Dual 15A 6-20V Motor Controller From Udoo Neo

Discussion in 'UDOO NEO' started by jeffib, Oct 30, 2016.

  1. jeffib

    jeffib New Member

    Joined:
    Oct 30, 2016
    Messages:
    8
    Likes Received:
    0
    I'm trying to use the Arduino side of the Udoo to send commands to the Hercules motor controller. I have the pwm.ino and the associated libraries on the Herc but I'm having trouble compiling the motordriverdemo.ino for the Udoo board. I get a file not found compile error on the include for <avr/io.h>.

    Is the avr library even compatible with an ARM processor? Is there an alternative? Is there a workaround?

    Any help is appreciated. I'll provide any additional info. needed.
     
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Can you give us the link to the files you mention?
     
  3. jeffib

    jeffib New Member

    Joined:
    Oct 30, 2016
    Messages:
    8
    Likes Received:
    0
  4. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    As far as I can read this Hercules dual is a motor driver and Arduino. It is a complete self supporting device. The motordriverdemo.ino has to be executed on the Hercules, not on de Udoo Neo. That is why it will not compile.

    If you want to have it communicate with the Arduino side of the Neo you have to connect it somehow to Serial1 device.
     
  5. jeffib

    jeffib New Member

    Joined:
    Oct 30, 2016
    Messages:
    8
    Likes Received:
    0
    Doh! Newbee error. The Hercules kit comes with a UartSbee which converts USB serial to serial for the motor driver. I think I even may have some example code for the Udoo side to send data to the UartSbee.

    Thanks very much for your time and answer!
     

Share This Page