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