You are here

Noise between VESC and microcontroller

3 posts / 0 new
Last post
onsokumaru
Offline
Last seen: 5 years 3 months ago
Joined: 2018-01-04 19:57
Posts: 2
Noise between VESC and microcontroller

Hello everyone,

I am controlling two VESCs 4.12 from a microcontroller. Both VESCs are connected through CAN bus (2 wire) and share the same battery (10s hoverboard battery).

Each VESC is connected to a hoverboard motor (10 inch), with hall sensors and configured in FOC mode.

One of the VESCs is connected to the microcontroller through the UART. I can control both motors without problem and also read back values from both of them. However there is an issue when the motors are not spinning (i.e. I send current or rpm to 0). A lot of noise appears in the 5V power lines when the motors are not spinning, and disappears as soon as they start to move. This causes a lot of issues in the microcontroller with bouncing IOs even when they have the internal pullups activated, I2C bus hanging, etc. I first started with an arduino mega, and now I've switched to a teensy 3.2. I power the microcontrollers from the VESC 5V line, but powering them from a different power supply doesn't fix the problem (with the arduino mega the VESC 5V was actually the least noisy option). I even tried CAN bus with the teensy 3.2  but still got the same issue.

Have any of you experienced this kind of noise problems? and how have you solved them? as there are a lot of people connecting VESC to other microcontrollers and devices.

Thank you very much and congratilations for this great project.

onsokumaru
Offline
Last seen: 5 years 3 months ago
Joined: 2018-01-04 19:57
Posts: 2

I have switched to BLDC mode instead of FOC mode and the problem disappeared. I can confirm also that in FOC mode the electric noise appears when the motor is holding or braking, but if you release the motor the electric noise disappears also. In BLDC mode works even with full brake. I would like to have FOC control because the silent operation.

fourchette
Offline
Last seen: 3 years 4 days ago
Joined: 2018-11-07 19:29
Posts: 16

hello,

thanks for the feedback. that might explain some of the noise i was exeriencing on the oscilloscope. didnt try t use bldc mode. thanks for sharing

can you elaborate on the uart commands you used to send rpm to both motors while communicating to only to master vesc?

what arduino/teensy lib did you use if any?