<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>ARDUINO UNO by Azrul Izzat Mokhtar</title>
      <link>https://padlet.com/azrulizzatmokhtar/u0fmbjp67wx1sgsl</link>
      <description></description>
      <language>en-us</language>
      <pubDate>2025-07-31 02:55:19 UTC</pubDate>
      <lastBuildDate>2025-07-31 04:13:59 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>Coding Sensor</title>
         <author>azrulizzatmokhtar</author>
         <link>https://padlet.com/azrulizzatmokhtar/u0fmbjp67wx1sgsl/wish/3532545736</link>
         <description><![CDATA[<p>// defines pins numbers</p><p>const int trigPin = 9;</p><p>const int echoPin = 10;</p><p>const int buzzer = 11;</p><p>const int ledPin = 13;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //&nbsp; Project by - Be innovative with Prasad</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //&nbsp; &nbsp;title - ultrasonic sensor project with buzzer and Arduino&nbsp;</p><p>// defines variables</p><p>long duration;</p><p>int distance;</p><p>int safetyDistance;</p><p>&nbsp;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</p><p>void setup() {</p><p>pinMode(trigPin, OUTPUT); // Sets the trigPin as an Output</p><p>pinMode(echoPin, INPUT); // Sets the echoPin as an Input</p><p>pinMode(buzzer, OUTPUT);</p><p>pinMode(ledPin, OUTPUT);</p><p>Serial.begin(9600); // Starts the serial communication</p><p>}</p><p>&nbsp;</p><p>&nbsp;</p><p>void loop() {</p><p>// Clears the trigPin</p><p>digitalWrite(trigPin, LOW);</p><p>delayMicroseconds(2);</p><p>&nbsp;</p><p>// Sets the trigPin on HIGH state for 10 micro seconds</p><p>digitalWrite(trigPin, HIGH);</p><p>delayMicroseconds(10);</p><p>digitalWrite(trigPin, LOW);</p><p>&nbsp;</p><p>// Reads the echoPin, returns the sound wave travel time in microseconds</p><p>duration = pulseIn(echoPin, HIGH);</p><p>&nbsp;</p><p>// Calculating the distance</p><p>distance= duration*0.034/2;</p><p>&nbsp;</p><p>safetyDistance = distance;</p><p>if (safetyDistance &lt;= 20)&nbsp; &nbsp;// You can change safe distance from here changing value Ex. 20 , 40 , 60 , 80 , 100, all in cm</p><p>{</p><p>&nbsp; digitalWrite(buzzer, HIGH);</p><p>&nbsp; digitalWrite(ledPin, HIGH);</p><p>}</p><p>else{</p><p>&nbsp; digitalWrite(buzzer, LOW);</p><p>&nbsp; digitalWrite(ledPin, LOW);</p><p>}</p><p>&nbsp;</p><p>// Prints the distance on the Serial Monitor</p><p>Serial.print("Distance: ");</p><p>Serial.println(distance);</p><p>}&nbsp; &nbsp;</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-07-31 02:55:53 UTC</pubDate>
         <guid>https://padlet.com/azrulizzatmokhtar/u0fmbjp67wx1sgsl/wish/3532545736</guid>
      </item>
   </channel>
</rss>
