I tried using analogwrite to set the speed of a 12V wiper motor, but that resulted in a lot of motor noise/wine and poor low speed control (stalling). Any suggestions on a faster PWM library or other to control this motor that’s compatible with the samd21?
Hi, thanks for writing in.
What SAMD21 board are you using? Are you also using a motor driver as well?
What power supply are you using and what are the power ratings for the driver if used and motor?
What code example are you trying to use?
If you can, provide a photo of your setup and we can try and figure out what the deal is.