Controlling VESC using UART and current control

General topics and discussions about the VESC and its development.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable
MikeLemon
Posts: 7
Joined: 29 Apr 2017, 22:58
Location: none
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

Controlling VESC using UART and current control

Postby MikeLemon » 17 Jul 2017, 20:47

Hello,

I'd like to control a VESC using UART and I've came across this arduino library that allows to set it in a single function.
now my question is what should be the minimum and maximum value for the current setting(the function takes float)
and if I apply a negative value does it brake and return power to the battery(regen braking after moment) or does it just heat the battery or doesn't do anything( just to mention I want to control it with UART the same I control it with PPM cable just map to the appropriate values).

rew
Posts: 943
Joined: 25 Mar 2016, 12:29
Location: Delft, Netherlands.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

Re: Controlling VESC using UART and current control

Postby rew » 18 Jul 2017, 04:40

I THINK your set current would need a value from 0 to max-current. Or actually from -max to +max.

If you provide a negative number the motor will apply negative torque. The controller will start to charge the battery. But if you do that long enough, the speed will reduce to zero and reverse.

There might also be a command to set a brake current. Then the VESC will stop applying current once it reaches zero speed.


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

Return to “General”

Who is online

Users browsing this forum: No registered users and 4 guests