Hello everyone, im doing a project where at a push of a button i have to run a dc motor for five seconds ( for example) then stop then run it again for 5 seconds. Any idea on how to proceed ? im currently using a motor to run it clockwise and anti clockwise but i have no idea how to do it with timing intervals. Any help would be appreciated
Search for the tutorial "Blink without delay".
Hi,
Welcome.
But in order for us to help you better, we need more information.
Have you read the thread:
"How to get the best out of this forum"?
If not, please read.
Then inform which arduino you use, which motor driver, and using tags, post the code you wrote, even if it doesn't work, so we'll know more about your project and for example what pins you're using.
It is highly recommended that you post a schematic of your project, even if it is drawn freehand.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.