Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set current and velocity? #41

Open
comes04 opened this issue Apr 11, 2023 · 1 comment
Open

set current and velocity? #41

comes04 opened this issue Apr 11, 2023 · 1 comment

Comments

@comes04
Copy link

comes04 commented Apr 11, 2023

Hi there,

I used the example code SetCurrent as following with an Arduino UNO and its working as intended.

#include <VescUart.h>

/** Initiate VescUart class */
VescUart UART;

float current = 2.0; /** The current in amps */

void setup() {
  Serial.begin(9600);
  /** Setup UART port (Serial1 on Atmega32u4) */
  Serial.begin(115200);
  
  /** Define which ports to use as UART */
  UART.setSerialPort(115200);
}

void loop() {
  
  /** Call the function setCurrent() to set the motor current */
  UART.setCurrent(current);

}

My question is, if its possible to set both current and speed so I have control over the torque of my BLDC motor.
Thanks in advance

@Iv
Copy link

Iv commented Jul 8, 2023

It's impossible right now. This is not implemented in the vesc firmware.
Somehow it's quite easy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants