Successfully reported this slideshow.
Arduino Lab 1.1   LED Pattern - SOS
Pre-requisiteArduino Lab 1.0Same material, installationUnderstanding of-   setup,-   loop,-   output,-   delay-   digitalW...
SetupDefine Pin 13 as LEDSet it as OutputUse a variable I#define LED 13int I;void setup(){  pinMode(LED,OUTPUT);}
LoopBlink led for 3 times. Each blink is for100 msecBlink led for 3 times. Each blink is for300 msec now.Remain in loopThi...
Loopvoid loop(){  for(I=0;I<3;++I)  {    digitalWrite(LED,HIGH);    delay(100);    digitalWrite(LED,LOW);  delay(100);  } ...
LogicWell, part of the program is same asfirst except that it is executed only for3 timesand then it moves to next step whi...
QueryYou hear Morse code for SMS almostevery day for last so many years.Guess where?
Contact MeHave more ideas, queries, suggestions?Contact me at -Vinay Chaddhaemail : vinay@open-embedded.infoSMS : 98110740...
Check us onlineJoin our facebook page atfacebook.com/open.embeddedBuy products from myworld.ebay.in/open.embedded
Upcoming SlideShare
Loading in …5
×

Arduino lab 1_1

792 views

Published on

Variant of first lab. How to generate a visual distress signal (what is popularly known as SOS)

Published in: Self Improvement
  • Be the first to comment

  • Be the first to like this

Arduino lab 1_1

  1. 1. Arduino Lab 1.1 LED Pattern - SOS
  2. 2. Pre-requisiteArduino Lab 1.0Same material, installationUnderstanding of- setup,- loop,- output,- delay- digitalWrite,pinMode- High, Low
  3. 3. SetupDefine Pin 13 as LEDSet it as OutputUse a variable I#define LED 13int I;void setup(){ pinMode(LED,OUTPUT);}
  4. 4. LoopBlink led for 3 times. Each blink is for100 msecBlink led for 3 times. Each blink is for300 msec now.Remain in loopThis is SOSdot-dot-dot-dash-dash-dash-dot-dot-dot......
  5. 5. Loopvoid loop(){ for(I=0;I<3;++I) { digitalWrite(LED,HIGH); delay(100); digitalWrite(LED,LOW); delay(100); } for(I=0;I<3;++I) { digitalWrite(LED,HIGH); delay(500); digitalWrite(LED,LOW); delay(500); }}
  6. 6. LogicWell, part of the program is same asfirst except that it is executed only for3 timesand then it moves to next step which issame except that delay is more andagain repeated for three timesAnd then back to previous stepResult is morse code for SOS
  7. 7. QueryYou hear Morse code for SMS almostevery day for last so many years.Guess where?
  8. 8. Contact MeHave more ideas, queries, suggestions?Contact me at -Vinay Chaddhaemail : vinay@open-embedded.infoSMS : 9811074026know more about me at visualcv.com/gvc3065
  9. 9. Check us onlineJoin our facebook page atfacebook.com/open.embeddedBuy products from myworld.ebay.in/open.embedded

×