Give me a link of the motor driver specification and I will review it.
XU4 has no hardware PWM port.
Software bit-bang PWM has very inaccurate waveform since there is no DMA GPIO driver.
It can't control the servo motors.
So consider using an I2C-PWM board via level shifter on I2C bus.http://www.ebay.com/itm/PCA9685-16-Chan ... 2072404693
I was hoping you could answer a few questions to help me out with my project
I'm using the Odroid XU-4 as the brains for a small autonomous car, and I need to control the steering servo. I understand that hardware PWM is not possible, so I was considering three options:
1.You've mentioned that software PWM is really inaccurate. Is there no way I can use that to control just one servo over GPIO? I've found an example by Pi4J to implement softPWM on the Odroid XU4 using Java: https://github.com/Pi4J/pi4j/tree/master/pi4j-example/src/main/java/odroid/xu4
Can I not use something like this?
2. I'm considering using the I2C-PWM board that you've mentioned and I know that I need to supply 5 V for the servo and 3-5 V for the breakout board itself. But what if I powered these externally? Then I'd only use the SDA and SCL pins from the XU-4. Is this possible? Below is a picture of the PCA9685 I2C-PWM board:
Does the "Logic: 3-5V" mean that I still need to level shift the XU-4 pins?
3. Can I connect the USB I/O board provided by hardkernel to generate a PWM output?http://www.hardkernel.com/main/products/prdt_info.php?g_code=G135390529643
Your answers would be most useful. Please advise. Thanks in advance