Control DC motor using Maker Drive and CircuitPython on RP2040

Control DC motor using Maker Drive and CircuitPython on RP2040

Introduction

In this tutorial I will share how to control a DC motor using Maker Drive and program it using CircuitPython on the Maker Nano RP2040.

Video

Hardware Preparation

This is the list of items used in the video.

Sample Program

This is CircuitPython sample program. You need to include these libraries in your CIRCUITPY/lib folder. You can download it from CircuitPython Library Bundle.

  • adafruit_motor

Thank You

References:

Thanks for reading this tutorial. If you have any technical inquiries, please post at Cytron Technical Forum.

"Please be reminded, this tutorial is prepared for you to try and learn.
You are encouraged to improve the code for a better application."

 

 

Be Part of Our Growing Community!

Related Products


Related Posts

Build Fun Piano with Ultrasonic using Maker Nano RP2040

Build Fun Piano with Ultrasonic using Maker Nano RP2040

This tutorial shows how to make a piano using an ultrasonic sensor and Maker Nano RP2040. The project is super fun and very simple to make!....
Maker Nano RP2040 Interfacing With Maker Drive Using Arduino IDE

Maker Nano RP2040 Interfacing With Maker Drive Using Arduino IDE

 Video Hardware PreparationThis are the list of items used in this tutorial.Maker Nano RP2040: Simplifying Projects with Raspberry Pi RP2040Make....
Building Line Following Robot Using Maker Pi Pico, Maker Drive and Maker Line

Building Line Following Robot Using Maker Pi Pico, Maker Drive and Maker Line

Raspberry Pi Pico is the 1st Microcontroller Development Board from Raspberry Pi Foundation. It is also based on the 1st Microcontroller IC/Silicon - RP2040, designed and produced by Engineers from th..
Bluetooth Mobile Robot wih Maker Drive

Bluetooth Mobile Robot wih Maker Drive

In this tutorial, I’ll share with you on how to build a mobile robot using a Maker Drive. Before this we’re using an L298N motor driver and now we’re going to change it to Maker Driv....
Measuring DC Motor RPM Through Built-in Hall Sensor Encoder

Measuring DC Motor RPM Through Built-in Hall Sensor Encoder

When we deal with controlling motor speed, normally we just provide PWM and the motor will rotate accordingly to the voltage reach at motor terminal. To have a better speed controlling, we can monitor..
Raspberry Pi: Control DC Motor using MDDS10

Raspberry Pi: Control DC Motor using MDDS10

There are several methods to control DC motors using Raspberry Pi. The suitable method for your application depends on how many PWM outputs you have and what performance you expect out of those output..