Simple Button Controlled Stepper Motor With Raspberry Pi Pico
Supplies
For this project, you will need:
- A Raspberry Pi Pico
- A step/dir-based stepper motor driver(Like A4988, TMC2208, DRV8825, TB6600, etc)
- Male jumper wires for making the wiring connections.
- A breadboard
- 3 normally-open pushbuttons
- *Hook-up wires for breadboard
- A 12-volt DC power source(Depends on the stepper motor and driver)
- A 5-volt DC power source(A 5-volt regulator can also be used instead of a separate supply)
*Hook-up wires are recommended for making tidy breadboard wiring connections, although you can also use male jumpers.
Step 1: Program the Pico
Here, I have used the Arduino IDE to program the microcontroller. The reason being the availability of an easy-to-use AccelStepper library for motor control. You can get the source code from here.
You can learn how to program a Raspberry Pi Pico using the Arduino IDE from here.
Step 2: Make the Wiring Connections
Connect a pushbutton each between 'GND' and the following pins:
- ADC0
- ADC1
- ADC2
Step 3: Connect the Motor Driver to the Microcontroller
Make the following connections:
- Step/Pulse -> GP16
- Dir -> GP17
Also, connect the 'GND' pin of the microcontroller with the 'GND' terminal of the motor driver.
Step 4: Connect the Motor Driver and the Microcontroller to Power
Connect the motor driver's 'VCC' pin to the +ve of the supply voltage(Here, 12-volts, shown with yellow wire), 'GND' to the -ve of the supply(Black). Connect the +5-volt wire to the 'VSYS' pin of the Pico and the black wire to the 'GND' pin of the Pico.
Step 5: Power Up the Setup and Test the Controls
If everything was done the right way, your motor should run as shown in the video.
Make sure all of the wiring connections are made with the right pins of the microcontroller and the buttons are working properly.
Simple Button Controlled Stepper Motor With Raspberry Pi Pico
- Comments(0)
- Likes(1)
- ElectroMaker May 27,2021
- 1 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
-
8design
-
7usability
-
7creativity
-
10content
More by KushagraK7
- Raspberry Pi Pico RC Vehicle SuppliesA Raspberry Pi Pico(Almost any microcontroller can be used here, but the Pico offers great f...
- Stepper Motor Controlled Stepper Motor Without Microcontroller! Step 1: Watch the VideoWatch the video to get a full understanding of the project and learn how to t...
- Automated Model Railroad Layout Running Two Trains I made an Automated Model Train Layout with Passing Siding a while back. Upon request from a fellow ...
- Program the Raspberry Pi Pico With the Arduino IDE The Raspberry Pi Pico is a recently launched product in the family of microcontrollers and its load ...
- Reuse an Old Laptop's Touchpad to Control a Computer! PS/2 laptop touchpads are among the coolest user interface devices to use with a microcontroller. Th...
- Automated Model Railroad Layout With Reverse Loops In one of my previous projects, I showed how to make a Simple Automated Point to Point Model Railroa...
- Use a Stepper Motor As a Rotary Encoder Rotary encoders are great for use in microcontroller projects as an input device but their performan...
- Keyboard Controlled Model Train(PS/2 Interface) Using Arduino microcontrollers, there are a lot of ways of controlling model railway layouts. A keyb...
- Stepper Motor Speed and Direction Control Without a Microcontroller In one of my previous projects, I showed you how to control a stepper motor's speed using a 555 time...
- Smartphone Controlled 4X4 Robot With ESP8266 SuppliesFor this project, you will need:An ESP8266 microcontroller(Node MCU)A dual H-bridge motor dr...
- Touchpad Controlled Digital Servo Motor Here is a quick and simple project where we control a digital servo motor with the slide of our fing...
- Smartphone Controlled Model Railroad With an ESP8266 IntroA while back, I made a project where a stepper motor's position is controlled using a smartphon...
- Simple USB Volume Controller with Arduino This project uses a rotary encoder connected to an Arduino Leonardo to control the audio volume of a...
- Motor Speed and Direction Control with a Web-Server using an ESP01 Supplies:For this project, you will need:An ESP01 microcontroller(You can use any ESP8266-based micr...
- Wi-Fi Controlled Stepper Motor With an ESP Microcontroller Step 1: Get All the Required StuffFor this project, you will need:An ESP8266 microcontrollerA Steppe...
- Simple Automated Model Railroad Loop With Yard Siding Video:Supplies: For this project, you will require:An Arduino microcontroller board compatible with ...
- Laptop Touchpad Controlled Model Railroad Supplies:For this project, you will require:An Arduino microcontroller compatible with Adafruit Moto...
- Control a Stepper Motor with a Slide of Your Finger Supplies:An Arduino microcontroller boardA PS/2 touchpad from a laptop(Try to get one with a Synapti...
-
-
Helium IoT Network Sensor Development board | H2S-Dev V1.2
91 0 0 -
-
-
-
-
-
3D printed Enclosure Backplate for Riden RD60xx power supplies
176 1 1