Dear every one,
I have some project . I want to turn the stepper motor to the exactly degree on an exactly date of the first month , then on an exactly date of the second month I want to turn the stepper again but in another degree and do same action on the next month until end of the year.
Please help me to code and sugression me for select equipment.
I am a newbie.
Paitoon.
I like the DS3231 Real Time Clock. There are lots of those available on modules. There are also several libraries for them.
As to the stepper motor, how much torque does it need? Once you know that you can make an intelligent choice of motor. You will need a driver for the motor, too.
like the DS3231 Real Time Clock. There are lots of those available on modules. There are also several libraries for them.
As to the stepper motor, how much torque does it need? Once you know that you can make an intelligent choice of motor. You will need a driver for the motor, too.
I use Nema17 stepper motor.
I use Nema17 stepper motor.
Do you have a data sheet for the stepper? How many steps per revolution? What is the rated coil current?
For motors with up to 1.5A coil current (more if heat sinked and forced air cooled) the DRV8825 is a good stepper driver.
For motors with higher coil current the TB6600 driver is good for up to 4 Amps coil current.
Which ever driver you choose, be sure to closely follow the instructions for setting the coil current.
Thank you so much #groundFungus
Can you code it for me from the above situation ?
Yes I can, but I won't. This site is not about providing free code writing service, it is about helping people learn to use the Arduino boards.
Do you have the hardware? The RTC module, stepper driver and stepper motor?
I would use the DS3231 library (available through the library manager) and the AccelStepper library (also available through the library manager).
Use the included example code to understand how the libraries work and you will see that it is pretty easy to do what you want.
If you get stuck we are willing to try to help.
You will need a way to "zero" the stepper so that it starts from the right position. You can set it by hand each time that the program starts or use a limit switch to "home" the stepper. The limit switch can be mechanical, optical, magnetic or ...
If you really do not want to develop the code yourself you could ask a moderator to move this thread to the Gigs abd Collabarations section. But expect to pay.
What are you going to use to make the stepper motor stay in position during the time it waits for the next month? Are you going to leave the whole thing powered up? what about power failures?
Paul
Problem with a 200 step motor, 200 steps / 12 months = 16.6667°, 1 step = 1.8°, 9 steps = 16.2°, 10 steps = 18.0°, etc.
Get my drift?
You can use microstepping to get closer but never exact. Even with 1 / 32 microstepping, 296 steps = 16.65°, 297 = 16.70625°.
Thank you so much for your sugression #groundFungus.
I will try to code by myself.