Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
ronfrtek
Published © GPL3+

Arduino DC Motor Running for a Specific Time

In this tutorial we will learn how to rotate a DC motor for a certain time period and then with a push of a button repeat it again.

BeginnerProtip1 hour142
Arduino DC Motor Running for a Specific Time

Things used in this project

Hardware components

Dual H-Bridge motor drivers L298
SparkFun Dual H-Bridge motor drivers L298
×1
DC Motor, 12 V
DC Motor, 12 V
×1
Gravity:Digital Push Button (Yellow)
DFRobot Gravity:Digital Push Button (Yellow)
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Breadboard (generic)
Breadboard (generic)
×1
Resistor 1k ohm
Resistor 1k ohm
×1

Software apps and online services

Arduino IDE
Arduino IDE
Visuino

Story

Read more

Schematics

Visuino File

Code

Visuino File

Arduino
Download Visuino file above

Credits

ronfrtek
312 projects • 79 followers
Arduino Fan!
Contact

Comments

Please log in or sign up to comment.