I am a newcomer to arduino and recently got an arduino uno board with dfrobot motor shield (2A version) and trying to control the motors in the RP5 robot chassis (a 2WD car). When I try to control it using PWM, I hear a sound like beeping, I have no idea why it happens, can you give me some hints ?
Because of the problem with PWM, I switched using PLL. I am a little familiar with PWM but not with PLL motor control at all. Is it possible to control the speed with PLL ? is it functionally same with PWM, do you recommend or not using PLL over PWM ?
Thank you for quick answer. I just saw the pages in arduino.cc website on changing PWM frequency and also I am checking the outputs on oscilloscope now. I guess I will manage.
metebalci:
Thank you for quick answer. I just saw the pages in arduino.cc website on changing PWM frequency and also I am checking the outputs on oscilloscope now. I guess I will manage.
No problem. Changing the PWM frequency can be a bit of a pain but glad you found some info (saves me digging for it)
that for the 3 and 11 pin which have freq of 31250, the possible divisors are: 1, 8, 32, 64, 128, 256, and 1024. But none of those divide 31250 near the 20khz zone. Any ideas?