You are here

General discussion

foc with encoder fails to run smoothly

Submitted by jdn on Thu, 2019-08-22 12:26

I would like to use a vesc controller and a bldc motor in an application where a controllable torque is needed at low or zero velocity.

I am able to use the motor at high speeds with foc in sensorless mode. But it fails to run smoothly with foc in encoder mode. The both the motor and the encoder are detected and calibrated correctly with the VESC tool. 

I am using a VESC 6 and i am controlling the motor by setting a desired current (which I would like to result in a constant torque) over UART.

 

Set and store Current limit via Canbus

Submitted by matrixgti on Mon, 2019-08-19 23:13

Hi all,

I'm setting up a CAN controller for a VESC 6.0 using an Atmega2560 , I'm able to control RPM, Duty, and Current ring and get back  all the info from Message 5 but is not clear form me ho to dynamically set the maximum motor current. Not intended as primary control, just the maximum current as in the FOC parameter.

Here is the portion of the code from comm_can.c

 

Logging IMU Data over UART

Submitted by stefan_novige on Mon, 2019-08-19 18:28

Hey Guys, 

I recently picked up a VESC 6+ and I can see that it has a built in IMU. I have managed to write my own code to access and use all the commands built into the VESC  i.e. SetDuty, GetVals... etc...

However I have not managed to find any info on extracting the IMU Data. I would assume this to be straightforward as the VESC tool can do this over USB, however documentation is slim. Does anyone have any pointers to get me started? I am writing in python due to its ease for rapid prototyping.

Vesc to Uart (Nextion display)

Submitted by g1tana on Mon, 2019-08-19 15:29

 

Hi everyone,

A bit of background, I'm running a fsesc6.6 on a razor scooter. I created a sketch using the solid geek libraries, my first screen displays volts,motor amps and watts and amps displayed in a progression type dial. I am trying to create another page for the fault codes (this is my first arduino/c++ project) like they way it comes up in ackmans bluetooth app. 

 

I have found the fault_data in datatypes but not sure how to use it 

 

 

Simulating controller accurately

Submitted by TechAUmNu on Fri, 2019-08-16 15:35

I have been trying to find a way to accurately know what voltages will be seen by the high side fets with different motors. So I would set the resistance and inductance of the motor and can see the peak voltages.

Using the simulation that Benjamin made in LTSpice shows very small voltage peaks which I don't really believe.

If I just model one phase path with 2 IRF7769 mosfets, then it looks much more realistic. Plus you can model the motor phase much better. 

 

Trying to make motor-control work for predetermined motions, could use some help

Submitted by Davideo on Fri, 2019-08-16 01:20

I'm building a project where I use an Arduino to control a single HAL-sensored outrunner motor through a VESC. The interface program I wrote sends a number of 'moves' to my device, which are then supposed to be executed one by one.

These 'moves' consist of a start-time, end-time, up-ramp-time, a down-ramp-time, a top speed in RPM, and a final tachometer position (the destination). Additionally, my program is aware of the minimum RPM I need to send to make the motor move. I also have access to current tachometer position and current RPM.

Ebike specific code ?

Submitted by flix on Wed, 2019-08-14 21:43

Hello, 

I'm interested into the compatibility of the vesc 6.0 firmware with standart ebike systems (display, pas, torque sensor). Before trying to reinvent everything myself, I'm investigation what already has been done in the field. Is there a list / compilation somewhere of vesc code optimization for ebike ? For an instance, maybe someone already worked on implementing 5s or bafang display protocols ?

Thank you for your time,

felix

Need help to configure the regenerative brake ...

Submitted by Loops on Mon, 2019-08-12 19:43

Hello all !

First, i'm sorry for my aproximative english.

I've build a E-mountainboard. The setup is :

- 2 SK8 6374 130KV (sensored)
- 2 FLIPSKY FSESC 6.6
- 12S Lipo

I will try to explain you my problem ...

All works perfectly ... I'm ridding, I've the throttle at 50% (for example). If i release the throttle, the board continue in 'free weels" ... But if i accelerate with a throttle less than before, 25% for example, the board will brake ... 

Is there a way to brake only if i put the throttle in reverse ?

Reverse ADC and UART

Submitted by ben_src on Mon, 2019-08-12 17:22

Hello,

I'm using a FSESC 4.12. When the controller is in ADC mode the RX pin acts as the Reverse button but which pin is it in ADC and UART mode?

Also is there anyway to reverse in UART mode with the VescUart arduino library for example using a negative duty cycle?

Thanks.

 

Pages

Subscribe to RSS - General discussion