<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>Getting Started with Arduino by kawaii nunyaro</title>
      <link>https://padlet.com/syunnnnn248/9hzvg4wgi0ff</link>
      <description>let&#39;s get creative!</description>
      <language>en-us</language>
      <pubDate>2018-08-29 02:16:29 UTC</pubDate>
      <lastBuildDate>2018-09-05 13:16:23 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url>https://padlet-assets.s3.amazonaws.com/icons/Diskette.png</url>
      </image>
      <item>
         <title>welcome everyone</title>
         <author>syunnnnn248</author>
         <link>https://padlet.com/syunnnnn248/9hzvg4wgi0ff/wish/276097526</link>
         <description><![CDATA[<div>Arduino basic workshop ,<br>6th Sept 2018</div>]]></description>
         <enclosure url="" />
         <pubDate>2018-08-29 02:18:54 UTC</pubDate>
         <guid>https://padlet.com/syunnnnn248/9hzvg4wgi0ff/wish/276097526</guid>
      </item>
      <item>
         <title>Digital Read/write (PUSH BUTTON AND LED)</title>
         <author>syunnnnn248</author>
         <link>https://padlet.com/syunnnnn248/9hzvg4wgi0ff/wish/276141066</link>
         <description><![CDATA[<div>int LED=13; //LED is connected to digital pin 6 <br>int button=7; //Push button is connected to digital pin 7.<br>int buttonstatus=0; //The word “buttonstatus” stands for the value 0. <br><br>void setup()<br>{ //The setup starts here<br>pinMode(LED, OUTPUT); //The pin connected to the LED (pin 6) is initialized as an output<br>pinMode(button, INPUT); //The pin connected to the button (pin 7) is initialized as an input.<br>}<br><br>void loop()<br>{ //The loop starts here<br>buttonstatus=digitalRead(button); //The value on pin 7 is read out <br><br>if (buttonstatus == HIGH) //If the button gets pushed (high voltage value)<br>{ //open program part of the if-command<br>digitalWrite(LED, HIGH); // LED will light up<br><br>} <br>else<br>{ //open the program part of the else-command<br>digitalWrite(LED, LOW); //the LED shouldn't light up<br>} //close the program part of the else-command<br>} <br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2018-08-29 07:32:30 UTC</pubDate>
         <guid>https://padlet.com/syunnnnn248/9hzvg4wgi0ff/wish/276141066</guid>
      </item>
      <item>
         <title>TRAFFIC LIGHT</title>
         <author>syunnnnn248</author>
         <link>https://padlet.com/syunnnnn248/9hzvg4wgi0ff/wish/277948526</link>
         <description><![CDATA[<div>// variables<br>int GREEN = 8;<br>int YELLOW = 9;<br>int RED = 10;<br><br>void setup()<br>{<br>  // setup LED modes as output<br>  pinMode(GREEN, OUTPUT);<br>  pinMode(YELLOW, OUTPUT);<br>  pinMode(RED, OUTPUT);<br>}<br><br>void loop()<br>{<br>  // High turns LED on<br>  // Low turns LED off<br><br>  // Turn on green LED<br>  digitalWrite(GREEN, HIGH);<br>  digitalWrite(YELLOW, LOW);<br>  digitalWrite(RED, LOW);<br>  delay(2000);<br><br>  // Blink the green LED<br>  digitalWrite(GREEN, LOW);<br>  delay(300);<br>  digitalWrite(GREEN, HIGH);<br>  delay(300);<br>  digitalWrite(GREEN, LOW);<br>  delay(300);<br>  digitalWrite(GREEN, HIGH);<br>  delay(300);<br>  digitalWrite(GREEN, LOW);<br>  delay(300);<br>  digitalWrite(GREEN, HIGH);<br>  delay(300);<br><br>  //Turns on yellow LED<br>  digitalWrite(GREEN, LOW);<br>  digitalWrite(YELLOW, HIGH);<br>  digitalWrite(RED, LOW);<br>  // how long we want the yellow led on<br>  delay(2000);<br><br>  //Turn on red LED<br>  digitalWrite(GREEN, LOW);<br>  digitalWrite(YELLOW, LOW);<br>  digitalWrite(RED, HIGH);<br>  delay(2000);<br>}// variables<br>int GREEN = 8;<br>int YELLOW = 9;<br>int RED = 10;<br><br>void setup()<br>{<br>  // setup LED modes as output<br>  pinMode(GREEN, OUTPUT);<br>  pinMode(YELLOW, OUTPUT);<br>  pinMode(RED, OUTPUT);<br>}<br><br>void loop()<br>{<br>  // High turns LED on<br>  // Low turns LED off<br><br>  // Turn on green LED<br>  digitalWrite(GREEN, HIGH);<br>  digitalWrite(YELLOW, LOW);<br>  digitalWrite(RED, LOW);<br>  delay(2000);<br><br>  // Blink the green LED<br>  digitalWrite(GREEN, LOW);<br>  delay(300);<br>  digitalWrite(GREEN, HIGH);<br>  delay(300);<br>  digitalWrite(GREEN, LOW);<br>  delay(300);<br>  digitalWrite(GREEN, HIGH);<br>  delay(300);<br>  digitalWrite(GREEN, LOW);<br>  delay(300);<br>  digitalWrite(GREEN, HIGH);<br>  delay(300);<br><br>  //Turns on yellow LED<br>  digitalWrite(GREEN, LOW);<br>  digitalWrite(YELLOW, HIGH);<br>  digitalWrite(RED, LOW);<br>  // how long we want the yellow led on<br>  delay(2000);<br><br>  //Turn on red LED<br>  digitalWrite(GREEN, LOW);<br>  digitalWrite(YELLOW, LOW);<br>  digitalWrite(RED, HIGH);<br>  delay(2000);<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2018-09-05 13:10:53 UTC</pubDate>
         <guid>https://padlet.com/syunnnnn248/9hzvg4wgi0ff/wish/277948526</guid>
      </item>
      <item>
         <title>CAR REVERSE ALARM</title>
         <author>syunnnnn248</author>
         <link>https://padlet.com/syunnnnn248/9hzvg4wgi0ff/wish/277952325</link>
         <description><![CDATA[<div>// defines pins numbers<br>int trigPin = 9;<br>int echoPin = 10;<br>int buzzer = 11;<br>int ledPin = 13;<br><br>// defines variables<br>long duration;<br>int distance;<br><br>int safetyDistance;<br><br><br>void setup() {<br>pinMode(trigPin, OUTPUT); // Sets the trigPin as an Output<br>pinMode(echoPin, INPUT); // Sets the echoPin as an Input<br>pinMode(buzzer, OUTPUT);<br>pinMode(ledPin, OUTPUT);<br>Serial.begin(9600); // Starts the serial communication<br>}<br><br><br>void loop() {<br>// Clears the trigPin<br>digitalWrite(trigPin, LOW);<br>delayMicroseconds(2);<br><br>// Sets the trigPin on HIGH state for 10 micro seconds<br>digitalWrite(trigPin, HIGH);<br>delayMicroseconds(10);<br>digitalWrite(trigPin, LOW);<br><br>// Reads the echoPin, returns the sound wave travel time in microseconds<br>duration = pulseIn(echoPin, HIGH);<br><br>// Calculating the distance<br>distance= duration*0.034/2; //distance=(Time*speed of sound)/2<br><br>safetyDistance = distance;<br>if (safetyDistance &lt;= 5){<br>  tone(11,3000);<br>  delay(500);<br>  noTone(11);<br>  digitalWrite(ledPin, HIGH);<br>}<br>else{<br>  noTone(11);<br>  digitalWrite(ledPin, LOW);<br>}<br><br>// Prints the distance on the Serial Monitor<br>Serial.print("Distance: ");<br>Serial.println(distance);<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2018-09-05 13:15:10 UTC</pubDate>
         <guid>https://padlet.com/syunnnnn248/9hzvg4wgi0ff/wish/277952325</guid>
      </item>
   </channel>
</rss>
