You are here

Communicate to VESC with ESP32/Arduino

2 posts / 0 new
Last post
semeat
Offline
Last seen: 3 weeks 20 hours ago
VESC Free
Joined: 2024-08-21 00:45
Posts: 1
Communicate to VESC with ESP32/Arduino

Hi,

I'm having some trouble using an ESP32 to control my VESC motor controller. I am trying to connect my ESP32 to a VESC motor controller using UART2. I have already tried using the RollingGecko, SolidGeek, and Peemouse libraries for UART control, but nothing seems to work. We have tested our motor using the VESCtool keyboard controls, and it spins perfectly with 3A of power. However, when trying to use the Arduino IDE, it was not able to communicate with the VESC.

I've been using this GitHub library for all my debugging (mentioned before): https://github.com/SolidGeek/VescUart . All of my VESC app settings are default.

Any advice on communicating from an ESP32 and the VESC is appreciated. If there is an easier way to communicate to the VESC using another communication method (PPM, CANbus, etc.) or have encountered this issue in the past, any help is appreciated.

Thanks so much in advance!

P.S I am using this Flipsky VESC: https://flipsky.net/collections/v75-series/products/flipsky-75100-foc-75... along with a hub motor

Frazatto
Frazatto's picture
Offline
Last seen: 2 weeks 4 days ago
VESC Free
Joined: 2018-06-27 15:33
Posts: 19

I have successfully done what you are trying to do, it was a pain in the ass!!!!

It was a few years ago and I don´t remember all the details, but if my notes are any trustworthy, I was using RollingGecko's lib and you must make sure UART communication is set in the VESC.

Working with the ESP is just a matter of using appropriate pins, there was no issues with the architecture at all.

Just remember the stupid ESP32 blocks some pins functions when using radio!!!! It was not very well documented at the time  -.-"

 

I'm coming back to this project for the next months, as soon as I get re-acquainted with my old code I can give you more details as needed.