want to know the code to run a dc motor for a particular time!
Yes please!
want to know the code to run a dc motor for a particular time(input)!
Input how?
Serial? Rotary encoder? Analogue?
The simplest way is using a "delay()"
Hi, how much experience have you had programming and with electronics?
We need to know so we can start explaining to you how to go about getting your project to work.
Tom.....
just know some c codes and m just a beginner ,,,,input through serial but without the use of delay?
Have a look at the blink without delay example in the IDE
blink example i knew already but i wanna code for a dc motor that will run for a particular time,,can u provide?
blink example i knew already but i wanna code for a dc motor that will run for a particular time,,can u provide?
You can actually use the blink without delay to drive a motor. You just have to setup a driver for the motor on the pin that has the LED.
instead of LED-motor?
It's not the code you need assistance with, it's basic electronics.
actually i am a beginer in arduino.
raghul_emcee:
instead of LED-motor?
But not without a transistor, like this.
i am using a driver
HI, what hardware have you got, model of the arduino, model of the driver, type of motor?
Tom...
l293d driver ,dc motor and arduino nano
raghul_emcee:
l293d driver ,dc motor and arduino nano
Have a look here.