Hi All
I am having aproblem with my fully FW updated VESC 75/300 R2. When i am choosing "current reverse button" in vesc tool, i am able to reverse the motor by putting gnd to servo input.
But when i am choosing "current reverse adc2 brake button" the same input does not reserve the motor. It functions as Cruise Control (keeping the speed as long as i set the input).
I am building a gokart and the possibility to reserve would really be a win. The project: https://www.youtube.com/watch?v=k5flv72Oivc
I spent a couple of hours looking into the code anyway. I think i found a fault. Now the code looks like this:
Should it not be looking like this, when i am using ADC & UART, with ADC1 as trottle and ADC2 as brake and a button to reverse the throttle to reverse (just like normal CURRENT_REVERSE function)?
I need the vesc to reverse, when i set the PPM input. It works great in CURRENT_REVERSE, but not in ADC_CTRL_TYPE_CURRENT_REV_BUTTON_BRAKE_ADC
I will look into it, should be quite easy to fix.
Hello, I am having exactly this same issue with FW 6.05.
Using ADC and UART, "current reverse button" works perfectly with reverse to ground connected to servo pin. Data over UART to dash display works fine. I can go forward and reverse with nice throttle control. So, reverse button connected to servo pin with UART enabled is working OK.
With: "current reverse adc2 brake button" using brake pedal on ADC2, regen-brake works well. However, now reverse does not work. Inverting the reverse pin in the VESC Tool makes no difference, so I assume it is ignoring the reverse input. The help text suggests this should work but does not.
Benjamin, may I ask if you were able to look at this issue as per the previous poster please? At the moment, I can't find any other VESC Tool configurations to adjust to make this work for a car application with forward, reverse, regen braking in both direction and a UART display. But all modes work perfectly on their own.
I can provide any further information that may help resolve this.
Thank you so much. Kind regards, Richard.
Unable to stop making outlandish items.
Looking deeper at the APP code like dk-odense did earlier, I do think there is a config missing:
In: bldc/applications/app_adc.c
We can see that with the config: ADC_CTRL_TYPE_CURRENT_REV_BUTTON_BRAKE_ADC it checks for rev_button status and reverses the current if reverse is selected. Great!
However, it is ignoring reading the reverse button for ADC_CTRL_TYPE_CURRENT_REV_BUTTON_BRAKE_ADC as this config is missing from line 303-304:
So with this missing, it never gets to check the reverse button in this mode.
Please can this be checked and added in? I'd love to be able to do this myself but setting up this tool chain, modifying and building the firmware and then being confident this was not going to brick my hardware is a bit beyond me.
Hopefully this would also help others.
Thank you very much. I can then complete my son's ride-on car build.
Regards, Richard.
By the way, there may be a work around by writing a LISP function, but that is complete beyond me!
Unable to stop making outlandish items.
As an update to this, I did load the tools to adjust and rebuild the firmware and can confirm the suggested addition in bldc/applications/app_adc.c does fix the problem. So, if anyone is seeing a lack of reverse when using ADC2 for regenerative braking, you will need to make this change until fixed. I'll try and raise an issue in Github.
Unable to stop making outlandish items.