Ir para conteúdo
3DFinder
Entrar

Você está no 3DFinder

Buscamos em Thingiverse, MakerWorld e Printables ao mesmo tempo para te dar o melhor de cada uma.

Buscar mais como este
Modelo 3D Egg Turner por djgizmo35 no Thingiverse

Descrição

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 } }

Thingiverse

Egg Turner

15
Curtidas
0
Downloads
13
Coleções
Licença Creative Commons - Attribution
Arquivos (3)
holder.stl 93.8 KB
dişli2.stl 606.7 KB
dişli.stl 1.2 MB
Ver no Thingiverse (abre em nova aba)