NVIDIA-AI-IOT/jetbot

communication with motor

fatemeh-mohseni-AI opened this issue · 1 comments

Hello sir/madam.
I have a question about the best way of communication between brushless motors and jetson nano.
For the educational project, we had to build a robot using Jetson nano 4G and DC or Brushless motors.
We connected our motors to an Arduino and then connected that Arduino to Jetson Nano using a serial port and USB cable.
after many efforts, we couldn't have a reliable connection between the motor and jetson nano with serial-type communication.
now I have a question about the best type of communication in a 4-wheeled robot, between motors and jetson nano.
I would appreciate it if you could help me.
I have PID controllers on pwm of motors too so I can not send raw pwm to the motor and there should always be something like Arduino to calculate some things and receive velocity from jetson and send pwm to motor.

should I change communication from USB to anything else ?
how can I achieve a reliable connection between a motor and Jetson Nano?
Do I have to use pins on jetson nano rather than USB cables ?
it is really important to me.
thank you so much

Hi Fatemeh,

Is there any reason you need to communicate through an Arduino? Actually my robot is using a custom build based on an Adafruit Motot HAT, but you can directly use the Adafruit PCB on a jetson (jetson GPIO and raspberry pie GPIO are pin compatible). Most Adafruit python script are able to run on a jetson environment...

Regards
Marco