METRO M0 EXPRESS PMW

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
tkoon24
 
Posts: 2
Joined: Sat Apr 16, 2022 10:51 am

METRO M0 EXPRESS PMW

Post by tkoon24 »

Hello all, I am currently trying to code a motor controller with PMW output. However, I can not figure out how call out the PMW pins in circuitpython. Any help would be much appreciated, thank you!

User avatar
dastels
 
Posts: 15667
Joined: Tue Oct 20, 2015 3:22 pm

Re: METRO M0 EXPRESS PMW

Post by dastels »

What hardware are you using to drive the motor?

Dave

User avatar
tkoon24
 
Posts: 2
Joined: Sat Apr 16, 2022 10:51 am

Re: METRO M0 EXPRESS PMW

Post by tkoon24 »

The motor is being controlled through an external controller in terms of current and voltage. However, in the controller plug-in ( essentially a potentiometer controller ), my professor would prefer I use a motor controller to send a different voltage back into the signal. The current is dismal and the voltage can range from 1-4V. I plan on using two buttons (one for stepped deceleration / other for stepped acceleration) to send a signal back to the board. Which would in turn, send the PWM signal to the motor with the respective signal (voltage).

However, I do not know if I am understanding it correctly. Best Regards!

Trevor

User avatar
dastels
 
Posts: 15667
Joined: Tue Oct 20, 2015 3:22 pm

Re: METRO M0 EXPRESS PMW

Post by dastels »

So, you are having trouble understanding how yo generate a PWM signal from CircuitPython?

If that's the case, this might help: https://learn.adafruit.com/circuitpytho ... python-pwm

Dave

Locked
Please be positive and constructive with your questions and comments.

Return to “Metro, Metro Express, and Grand Central Boards”