CanyoneroRobotics / TFM

MIT License
5 stars 0 forks source link

High pitch noise in video #22

Closed carlosjoserg closed 8 years ago

carlosjoserg commented 8 years ago

In the video @simium made and @marcgenevat sent me, I hear a high pitch noise when actuating the motors, that is typically caused by a low and audible PWM frequency.

I see you are using the default frequency of 1.6Khz here.

If the H-bridge you have supports a non-audible frequency (>20Khz), then it'd be pleasantly quiet if you set a higher PWM frequency.

If I was mistaken about the noise, then forget this issue.

simium commented 8 years ago

In this project we are using the Motor Shield v2 by Adafruit, which uses the PCA9865 PWM chip to generate the desired PWM signals for the motors. The problem is that this IC provides a maximum frequency of 1.6Khz (it's actually designed to drive LEDs, not motors, but it keeps costs down)

In a future version of Canyonero we could get better motor drivers that have more pleasant frequencies, but there's not much we can do about this right now with current hardware.

carlosjoserg commented 8 years ago

:+1: