Hi i am newbie and i am just learning how to write programs in c for PIC 16f877a
I have written a code for rotating a 2 stepper motor forward and backward. (Sun-tracker but does not track the sun just a timer based on the sun movement.)
One stepper motor move the panel from morning 6 to evening 6 that is i want the motor to rotate 180 degrees in the entire 12 hour period and then quickly return to back its original position that is rotate reverse by 180 degrees quickly and wait till 6 next morning to start rotating again.
And the other will should move after a period of 4 days by 2 degrees and about half a month start moving backwards.
Also what is the minimum delay i can implement on a stepper motor??
And i want to implement a delay of about 12 hours what code should i use or can i use a code to turn it off for 12 hours??
Can i run the timer programs for both motors simultaneously cause one timer will be in terms of minutes and the other in terms of days..
Could you'll please help me.
Sorry for asking so many questions but i would really help me to understand better.
Any suggestions or help..
Thanks..
I uploaded the simple program i wrote to rotate a stepper motor but this is only for the one motor. I dunno how to interface two motors simultaneously and run separate timers for each of them..
And i use MPLAB for programming
I have written a code for rotating a 2 stepper motor forward and backward. (Sun-tracker but does not track the sun just a timer based on the sun movement.)
One stepper motor move the panel from morning 6 to evening 6 that is i want the motor to rotate 180 degrees in the entire 12 hour period and then quickly return to back its original position that is rotate reverse by 180 degrees quickly and wait till 6 next morning to start rotating again.
And the other will should move after a period of 4 days by 2 degrees and about half a month start moving backwards.
Also what is the minimum delay i can implement on a stepper motor??
And i want to implement a delay of about 12 hours what code should i use or can i use a code to turn it off for 12 hours??
Can i run the timer programs for both motors simultaneously cause one timer will be in terms of minutes and the other in terms of days..
Could you'll please help me.
Sorry for asking so many questions but i would really help me to understand better.
Any suggestions or help..
Thanks..
I uploaded the simple program i wrote to rotate a stepper motor but this is only for the one motor. I dunno how to interface two motors simultaneously and run separate timers for each of them..
And i use MPLAB for programming