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
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.
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
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
lpf should be used for pwm2dac operation
https://programmerclick.com/images/905/e4805ee05344b5342887410f30b94c21.gif
https://programmerclick.com/article/52401477063/
http://www.kerrywong.com/blog/wp-content/uploads/2013/10/IsolatedDAC.png
http://www.kerrywong.com/2013/10/01/an-isolated-dac-using-pwm-output
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