M365 controller with smartESC / VESCTool reverse mode

ElectroXa

1 mW
Joined
Jul 29, 2024
Messages
12
Location
France
Hello, i'm designing a small electric shuttle with two M365 controllers, planning to flash them with SmartESC for M365 ESC, and use an ESP32 for the throttle, regen brake, (and reverse switch) like on the git page

I searched on the internet to see if this firmware and the m365 ESC could accomodate both the forward and backward mode, using a switch on the dashboard to set the moving direction of the shuttle, but I didn't find any suitable result,
The shuttle needs to be capable of moving both directions, at the same speed, being able to reverse upon the flipping of the switch

if anyone used this firmware, are you knowing if it support the reverse operation mode, and if it can be easily implemented into the code ?

thank you, and have a nice day
 
Last edited:
It looks like this is just a VESC port to this controller so any control uses setups available on VESC and with the matching hardware would work.

So using the ESP32 you probably have to modify the provided ESP32 code to send the correct inputs to the VESC. I'm not really sure how to do this but I assume it would be possible, maybe even trivial for someone knowing more about the vesc protocol used.

The project says it can use the stock display which has a throttle so I'm wondering if that throttle just shows up as a normal ADC. If so and if you willing to change the control setup slightly that could work too. You could use "current reverse center" for instance and instead of having a switch to set it to reverse you just have a control lever that goes forward if you press it forward and reverse if you pull it back which may be more intuitive anyway.

The other problem is you are going to have to connect them over UART to control both which seems perfectly possible since the UART works but may add complexity given this is not native VESC hardware.

If it where me honestly I would just spend a little more and buy a cheap dual VESC which will have two ADCs you can configure in various ways, will already be connected with UART so one input controls both controllers and will have some additioanl features like temperature sensors for the motors.
 
Hello, I see your idea, I'm afraid using the reverse center throttle will not be possible, as the throttle I have has a spring returning to 0


I will try on the esp32, trying speed or RPM order as a signed int, to see if it goes on reverse if I put for example erpm=–2800 as an order

if that not working, I may try a true VESC
 
I got on telegram, they told me it was easy to code the reverse function, so I will try this out
 
Back
Top