|
Raspberry Pi Pico |
x 1 | |
|
65Pcs Male to Male Solderless Flexible Breadboard Jumper Cables Wires |
x 12 | |
|
40Pin Jumper Wires Male to Female 20cm |
x 4 |
|
arduino IDEArduino
|
Stepper Motor Controlled 4-digit Passcode Lock with a Raspberry Pi Pico
Supplies
- A Raspberry Pi Pico
- A Rotary Encoder OR A Stepper Motor
- *A Stepper Motor to Rotary Encoder Converter
- ^A 4-digit, 7-segment, LED display
- 4 200Ω resistors
- Male to male breadboard hook-up wires
- 4 male to female jumper wires(For connecting the rotary encoder to Pico.)
*You can either use a simple incremental rotary encoder or you can use a stepper motor instead by following this guide.
^You can use either a common-anode or common-cathode display, but you will need to specify it in the code in the following function:
sevseg.begin(COMMON_ANODE, numDigits, digitPins, segmentPins);
Step 1: Program the Pico
You can get the Arduino code from here.
You can learn how to program the Raspberry Pi Pico using the Arduino IDE from here.
Step 2: Study the Circuit Schematic and Make the Wiring Connections
Start by installing the Pico on the breadboard, followed by the LED display. Then, make the wiring connections by following the above circuit schematic. Make sure all the wiring connections are correctly made and are not loose.
Step 3: Connect the Rotary Encoder to the Setup
If you are using a rotary encoder, then you need to connect it to the Pico as shown in the circuit schematic in the previous step.
If you are using a stepper motor as a rotary encoder, then you will need to connect the amplifier board instead in the same way as a rotary encoder to the Pico as shown in the previous step. You can learn more here.
Step 4: Connect the Stepper Motor to the Amplifier
If you are using a rotary encoder, then you can skip this step.
Connect the stepper motor to the amplifier board by following the above schematic.
Step 5: Power Up the Setup and Test it
After powering up, check if the display is showing a digit '0' with a decimal point. Then check if your setup is working as shown in the above video.
I hope you enjoyed making this project. Thanks for coming by!
Stepper Motor Controlled 4-digit Passcode Lock with a Raspberry Pi Pico
- Comments(0)
- Likes(2)
- papernov Aug 02,2021
- ElectroMaker Jun 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
-
10design
-
10usability
-
10creativity
-
9content
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...
-
RPI - 8 IO PLC With ATTiny85 Watch Dog
86 0 0 -
Nintendo Famicom HVC-001 Controller Shells
139 0 0 -
COMMODORE 128 DIAGNOSTIC REV.785260 KEYBOARD DONGLE
148 0 2 -
COMMODORE 128 15KHz DISPLAY ADAPTER (C128 80 COLUMN ADAPTER)
173 0 2 -
-
-
-
TEKTRONIX THS710,THS720,THS730 LED Backlight drop in replacement Controller
537 0 0