hoverboard-robotics / hoverboard-driver

ROS hardware driver for UART-controlled hoverboard
MIT License
98 stars 54 forks source link

Connections and PID #7

Closed bekirbostanci closed 4 years ago

bekirbostanci commented 4 years ago

Hi How can i connect arduino and hoverboard mainboard or nano and hoverboard mainboard. Which port should I use? Also did you have any problem about the motor controls. Do the motors work correctly? or is it necessary to use a pid? for example rotating at equal speeds

Thank you for answers

alex-makarov commented 4 years ago

Hey,

I'm using USART2.

Motors work correctly without PID control (at least with no load), but then your changes are instant -- not something you want for a mobile platform. I don't see any reason to avoid using PID, it helps a lot in fine tuning the motion.

bekirbostanci commented 4 years ago

thank you for answer but I wanted to learn, there are 2 different tx rx pins on the mainboard, I don't know which one to use. I couldn't see a diagram about it either. thank you so much for your answer again

alex-makarov commented 4 years ago

Check the firmware repo, it has a picture -- https://github.com/bipropellant/bipropellant-hoverboard-firmware USART2 is on the left.

bekirbostanci commented 4 years ago

thank you again for answers