Egg Turner

Egg Turner

thingiverse

const int relayPin = 2; // relay digital signal pin unsigned int relayState = LOW; long offTime = 14400000; // 4 hours (1000 = 1 second) long onTime = 3000; // 3 seconds (1000 = 1 second) unsigned long previousMillis=0; void setup() { // put your setup code here, to run once: pinMode(relayPin, OUTPUT); relayState = LOW; digitalWrite(relayPin, LOW); } void loop() { // put your main code here, to run repeatedly: long currentMillis = millis(); if ((relayState==HIGH)&&(currentMillis-previousMillis>=offTime)) { relayState = LOW;// turn it on previousMillis = currentMillis; // Remember the time digitalWrite(relayPin, LOW); // Update the actual relay } else if((relayState==LOW)&&(currentMillis-previousMillis>=onTime)) { //digitalWrite(RELAY2, LOW); relayState=HIGH; // Turn it off previousMillis = currentMillis; // Remember the time digitalWrite(relayPin, HIGH); // Update the actual relay } }

Download Model from thingiverse

With this file you will be able to print Egg Turner with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Egg Turner.