author

PaulR253

Inbox View Profile
1Instructables114Views2Comments

Tell us about yourself!

  • PaulR253 commented on tim127's instructable Basic Arduino strobe light

    little adjust to the code so it works finevoid setup() { pinMode(13, OUTPUT); //define pins as output pinMode(11, OUTPUT); pinMode(9, OUTPUT); pinMode(7, OUTPUT);}void loop() { unsigned int strobespeed = 150; //change for a different strobe speed digitalWrite(7, HIGH); delay(strobespeed); digitalWrite(7, LOW);// the led on pin 7 turns off when digitalWrite(9, HIGH);//the led on pin 9 turns on delay(strobespeed); digitalWrite(9, LOW);// this pattern continues digitalWrite(11, HIGH); delay(strobespeed); digitalWrite(11, LOW); digitalWrite(13, HIGH);// the strobe stops delay(strobespeed); digitalWrite(13, LOW); //and starts going the other way digitalWrite(11, HIGH); delay(strobespeed); digitalWrite(11, LOW); digitalWrite(9, HIGH); delay(strobespeed); digitalWrite(9,…

    see more »

    little adjust to the code so it works finevoid setup() { pinMode(13, OUTPUT); //define pins as output pinMode(11, OUTPUT); pinMode(9, OUTPUT); pinMode(7, OUTPUT);}void loop() { unsigned int strobespeed = 150; //change for a different strobe speed digitalWrite(7, HIGH); delay(strobespeed); digitalWrite(7, LOW);// the led on pin 7 turns off when digitalWrite(9, HIGH);//the led on pin 9 turns on delay(strobespeed); digitalWrite(9, LOW);// this pattern continues digitalWrite(11, HIGH); delay(strobespeed); digitalWrite(11, LOW); digitalWrite(13, HIGH);// the strobe stops delay(strobespeed); digitalWrite(13, LOW); //and starts going the other way digitalWrite(11, HIGH); delay(strobespeed); digitalWrite(11, LOW); digitalWrite(9, HIGH); delay(strobespeed); digitalWrite(9, LOW); unsigned int delayvar = 100;//You can chane this but it wont do muchdigitalWrite(13, HIGH); //blink twice digitalWrite(11, HIGH); digitalWrite(9, HIGH); digitalWrite(7, HIGH); delay(delayvar); digitalWrite(13, LOW); digitalWrite(11, LOW); digitalWrite(9, LOW); digitalWrite(7, LOW); delay(delayvar); digitalWrite(13, HIGH); digitalWrite(11, HIGH); digitalWrite(9, HIGH); digitalWrite(7, HIGH); delay(delayvar); digitalWrite(13, LOW); digitalWrite(11, LOW); digitalWrite(9, LOW); digitalWrite(7, LOW); delay(delayvar);

    View Instructable »
  • PaulR253 followed niq_ro
  • PaulR253 followed ibenkos