You are here

Controlling BLDC motor with VESC 4.12 and raspberry pi

6 posts / 0 new
Last post
sanketh1691
Offline
Last seen: 3 years 5 days ago
Joined: 2021-09-30 01:06
Posts: 13
Controlling BLDC motor with VESC 4.12 and raspberry pi

Hello,

 

I am curently trying to control the BLDC motor of Traxxas X-maxx robo car with VESC 4.12 and raspberry pi, I tried giving PWM signals to the motor with python code in raspberry pi, I was not able to get the motor running but when I tried to run it with VESC tool without pi, then it worked but when I trying with pi and VESC together, I am not able to get it running. And I am giving power with 2 4S1P LiPo (6700 mAh, 14,8v). Can anyone help me with this as to what I should do here with PWM signals or should I send input through another way with pi?

Thank you,

Sanketh

frank
Offline
Last seen: 3 weeks 6 days ago
VESC BronzeVESC FreeVESC GoldVESC OriginalVESC PlatinumVESC Silver
Joined: 2016-12-27 20:19
Posts: 847

First be careful with GND loops. If you power the PI from a different source, other than the 5V out of the ESC, you will create a ground loop! So you would need to use electronic decoupling (e.g.opto decoupler) in between the Pi and the ESC. Then you can check the input signal in VESC-Tool and see if your signal actually arrives and if it is well calibrated. You would then run the Input Wizard to configure and calibrate the input signal.

sanketh1691
Offline
Last seen: 3 years 5 days ago
Joined: 2021-09-30 01:06
Posts: 13

Hello frank, 

Thank you for the response. So without a decoupler, I should first try with 5v output from ESC to power the raspberry pi is it? And I am not using any input source like radio controller, I am giving the input hardcoded through python script in pi. And can you tell me where in VESC tool do I see the input signal if we give them directly from pi to VESC? so that I can see if te signal is properly received.

Thank you,

Sanketh

sanketh1691
Offline
Last seen: 3 years 5 days ago
Joined: 2021-09-30 01:06
Posts: 13

Hello,

Can yu tell me what is the frequency that VESC 4.12 will receive the PWM signals from pi or arduino?

Thank you,

Sanketh

skyline1970
Offline
Last seen: 4 months 2 weeks ago
VESC Free
Joined: 2017-09-07 22:28
Posts: 232
sanketh1691
Offline
Last seen: 3 years 5 days ago
Joined: 2021-09-30 01:06
Posts: 13

Hello,

I didn't really understood can you tell me with an overview as to how can I give PWM input to the BLDC motor from raspberry pi with the help of ESC/VESC