Arnov Sharma
Published © MIT

Pico Motor Driver

Motor Driver powered by a Raspberry Pi Pico, uses a Mosfet as switch setup to run motor.

BeginnerFull instructions provided1 hour181
Pico Motor Driver

Things used in this project

Hardware components

NextPCB PCB Service
×1
Raspberry Pi Pico
Raspberry Pi Pico
×1

Software apps and online services

Arduino IDE
Arduino IDE
Fusion
Autodesk Fusion

Hand tools and fabrication machines

3D Printer (generic)
3D Printer (generic)

Story

Read more

Custom parts and enclosures

cad file

Schematics

SCH

Code

code

C/C++
int Motor = 0;        
int Speed = 0;  
int fadeAmount = 5;  

void setup() {

pinMode(Motor, OUTPUT);
}

void loop() {
analogWrite(Motor , Speed);
Speed = Speed + fadeAmount;

if (Speed <= 0 || Speed >= 255) {
fadeAmount = -fadeAmount;
}
delay(30);
}

Credits

Arnov Sharma
352 projects • 360 followers
I'm Arnov. I build, design, and experiment with tech—3D printing, PCB design, and retro consoles are my jam.

Comments