Hello guys can you tell me how to control synchronous motor with rtc, I want to set the rotation time using push button up and push button down. So, i can control it without uploading new order to arduino
Thanks
Hello guys can you tell me how to control synchronous motor with rtc, I want to set the rotation time using push button up and push button down. So, i can control it without uploading new order to arduino
Thanks
Please post your code that is currently being used to control the motor
void turning(){
DateTime now = RTC.now();
if (now.hour() == 00 && now.minute() == 00 && now.second () ==00){
lcd.clear(); digitalWrite(motor, HIGH); lcd.setCursor(5,0);
lcd.print("TURN"); delay(7000);
digitalWrite(motor, LOW); lcd.clear();
}
if (now.hour() == 03 && now.minute() == 00 && now.second () ==00){
lcd.clear(); digitalWrite(motor, HIGH); lcd.setCursor(5,0);
lcd.print("TURN"); delay(7000);
digitalWrite(motor, LOW); lcd.clear();
}}
Here the code
mzroyhan:
Here the code
Please post a complete program. And tell us in detail what it actually does and what you want it to do that is different. It will make it much easier to focus on the parts you need help with rather than wasting time on things that you can do.
What sort of synchronous motor are you using? What does it drive?
How is the Arduino controlling the motor?
...R