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 hour154
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
339 projects • 344 followers
Just your average MAKER
Contact

Comments

Please log in or sign up to comment.