Hello Everyone!
I am trying to get a motorized Fader project up with the feather rp2040, but it´s turning to be not that easy.
I am using the earlephilhower core and adafruit_tinyUSB. (already also sucssefuly installed the arduino mbed core in the past)
I basically just need: USB Midi, Capacitive Touch Sense and a Motor driver
- USB Midi - currently using FortySevenEffects /arduino_midi_library (midi.h)
- Capacitive Touch - currently using PicoCapSense (https://github.com/khoih-prog/RP2040_PWM). Working just fine with the earlephilhower core
- DC Motor / PWM at freq above 20KHz to avoid motor noise
so far i found the RP2040_PWM (https://github.com/khoih-prog/RP2040_PWM) that states to be compatible with the feather rp2040, but every time the motor turns on the USB connection gets lost for split of sec.
It is not a hardware problem because it runs fine not using the adafruit_tinyUSB (using the pico SDK), and it works also fine with circuitPython.
I am driving the motor with a DRV8833 (https://www.adafruit.com/product/3297) and a DC Step UP. As i said everything works fine with circuitpython with pwm freqs greater then 20KHz and also in arduino with pico SDK.
Any tips of how to get the Feather PWM at a custom freq?
the RP2040_PWM feels a little bit to complicated to use for what i need.
Would it be a problem to ditch the adafruit_tinyUSB?
Thank you all!
Any Tips? _ Feather RP2040 DC motor (PWM) Lib with custom Freq _
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- fredrabelo
- Posts: 6
- Joined: Mon Nov 28, 2022 4:53 am
Please be positive and constructive with your questions and comments.