I am trying to control a VESC in my system using a Raspberry Pi using Python. So far I have my input as a Wiimote coming into the Pi through Bluetooth and that’s all sorted out, but my next hurdle is to somehow send signals to the VESC itself using the onboard GPIO pins.
I started to implement the PyVESC library, but I’m not really sure on how to get the signals I’m sending to the actual VESC itself. I thought I would be able to use the PPM cable that comes out of the VESC, but I can’t seem how to figure out if that’s doing anything.
Has anyone had any experience with this before or can anyone send me in the right direction for more reading?
Ok, so first of all the PPM input is an input which can only handle PWM signals.
I’m just going to assume that the PyVESC library uses the UART protocol to communicate with the vesc. So you would need to connect the according GPIO pins to the UART port of the vesc.
I know you can create a PPM signal from an arduino (lib is fro servo iirc) to send to a remote receiver. Should be the same in python if you can find something like this.