You are here

General discussion

AMT 102 Encoder not working properly with VESC

Submitted by DerpRush on Thu, 2019-07-25 11:32

 

TLDR: Encoder works in live data, FOC doesn't work

I tried doing FOC with an AMT 102 encoder and the motor won't commutate properly. I tried setting up FOC with my VESC and when I used the foc setup wizard, it wouldn't detect the encoder and set it up as sensorless. I can see the encoder in live data and the encoder seems to be working properly. When I tried setting up FOC manually, the encoder offset would change every time I tried using detect encoder. Sometimes, the motor works for 10 sec, then chatters. Any idea on what to do?

Current loop resonance in higher ERPM under Current Mode

Submitted by ypl on Sat, 2019-07-20 09:34

Hi,

I control vesc using current mode,at a certain speed,the motor shook so badly that it couldn't accelerate.

Load has a certain inertia.

I adjust the Current KP KI to change the speed of the oscillation. It doesn't help much.

Protection due to serious out-of-control of current.

But duty cycle mode works normally.

I have no way to solve this problem.

Do you have any tips how to solve this problem?

Thanks.

Controlling VESC with arduino -

Submitted by vulkan66 on Thu, 2019-07-11 11:51

Hi,

I control VESC with arduino and I have a problem with arduino freezing/crashing.

I tried to control it via both UART and PWM. Motor (DYNS1665, 800kV) works well for a while and then the arduino (mega 2560) crashes.

When the motor is disconnected in VESC tool, everything works without any crash (I can see desired RPM in the graph).

It looks like the motor generates some signals and propagates it trough VESC to arduino which can't handle them.

Do you have any tips how to solve this problem?

Thanks.

Motor amps higher than batt amps

Submitted by minim on Sat, 2019-07-06 22:42

I'm having this weird behavior if I change my amp settings. I have a longboard with 2x raptor hub motors and  vesc6's. When I run Ackmaniac firmware I set motor amps to 70A, -70A and batt max/min to 40 and -13 for each vesc. This works great and it gives a nice punch. When I try the newest official vesc firmware and do motor detection it sets me at 40-40 motor amps and 99 batt amps.

How to achieve synchronize position control by CAN between 2 VESCs

Submitted by ztwsa007 on Sat, 2019-07-06 17:32

Hi everyone,

     I am working on a robot motion control project, I have two VESCs and two AS5047 encoders. Now I want to acquire position signals via VESC A and then control the position of VESC B via CAN as demonstrated in the video.

https://m.youtube.com/watch?v=8CcqD5sw90U

微信截图_20190706204341.png

FSESC6.6 and Rpi via UART - Understanding the software

Submitted by gabrielredding on Sat, 2019-07-06 02:50

Hey all. Thanks so much in advance for reading!

I am trying to get to where I can control 4 motors with two of the Dual FSESC6.6.

I am trying to use UART to connect to the first ESC, and then use the CAN bus to connect to the rest.

However, I know that this project is a bit advanced for me. My experience is that I have used UART to pull data from a GPS module, and written custom code to parse it.

How to Write Serial Communication Program Not Applicable to RTOS

Submitted by Jack_Li on Fri, 2019-07-05 06:55

Hello, friends, I am a beginner, I do not understand the system, I want to control VESC through the serial port of my stm32f407 development board, but I can not understand the pointer and callback in the routine very well. Can you give me some help? How to write serial interrupt? My own is as follows.Is it true? Thank you.

 

 

step by step ebike thorttle setup

Submitted by sindre on Wed, 2019-07-03 17:59

Hi. I am a complete novice in this game and need a few tips. Just bought the fsec4.12 with a flipsky 6354 motor. This is for my kids ebike, custom build, but I have no clue on setting the esc up to use with e-bike throttle. Any tips would be nice, or a point in the right direction on where to start.

Best, Sindre

Pages

Subscribe to RSS - General discussion