<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>IOT by 4Tall</title>
      <link>https://padlet.com/irfandharmawan52/js2megjopy68jxfp</link>
      <description></description>
      <language>en-us</language>
      <pubDate>2021-11-22 02:19:07 UTC</pubDate>
      <lastBuildDate>2022-11-25 03:11:18 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>Servo</title>
         <author>irfandharmawan52</author>
         <link>https://padlet.com/irfandharmawan52/js2megjopy68jxfp/wish/2397368144</link>
         <description><![CDATA[<div>#include &lt;ESP32Servo.h&gt;</div><div>Servo myservo;</div><div><br><br></div><div>void setup() {</div><div>&nbsp; // put your setup code here, to run once:</div><div>&nbsp; <strong>Serial</strong>.begin(115200);</div><div>&nbsp; <strong>Serial</strong>.println("Hello, ESP32!");</div><div>myservo.attach(15);</div><div>}</div><div><br></div><div>void loop() {</div><div>&nbsp; // put your main code here, to run&nbsp;<br>myservo.write(0);<br>delay(1000);<br>myservo.write(180);<br>delay(1000);<br><br></div><div>}</div><div><br></div><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2022-11-25 01:33:17 UTC</pubDate>
         <guid>https://padlet.com/irfandharmawan52/js2megjopy68jxfp/wish/2397368144</guid>
      </item>
      <item>
         <title>BUTTON + SERVO</title>
         <author>irfandharmawan52</author>
         <link>https://padlet.com/irfandharmawan52/js2megjopy68jxfp/wish/2397416531</link>
         <description><![CDATA[<div>#include &lt;ESP32Servo.h&gt;</div><div>Servo myservo;</div><div>float pos = 0.0;</div><div>float step = 1.0;</div><div>int tombol1 = 2;</div><div>int tombol2 = 4;</div><div><br><br></div><div>void setup() {</div><div>&nbsp; // put your setup code here, to run once:</div><div>&nbsp; <strong>Serial</strong>.begin(115200);</div><div>&nbsp; <strong>Serial</strong>.println("Hello, ESP32!");</div><div>myservo.attach(15);</div><div>pinMode(tombol1, INPUT_PULLUP);</div><div>pinMode(tombol2, INPUT_PULLUP);</div><div>pinMode(14, OUTPUT); //tambahan</div><div>pinMode(13, OUTPUT);</div><div>pinMode(12, OUTPUT);</div><div>}</div><div><br></div><div>void loop() {</div><div>&nbsp; // put your main code here, to run repeatedly:</div><div>&nbsp; if (!digitalRead(tombol1)){</div><div>&nbsp; &nbsp; if(pos &lt; 180){</div><div>&nbsp; &nbsp; &nbsp; myservo.write(pos);</div><div>&nbsp; &nbsp; &nbsp; &nbsp;pos = pos + step;</div><div>&nbsp; &nbsp; &nbsp; delay(5);</div><div>&nbsp; &nbsp; &nbsp;<strong>Serial</strong>.println(pos);</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp; if(!digitalRead(tombol2)){</div><div>&nbsp; &nbsp; if(pos &gt; 0){</div><div>&nbsp; &nbsp; &nbsp; myservo.write(pos);</div><div>&nbsp; &nbsp; &nbsp; pos = pos - step;</div><div>&nbsp; &nbsp; &nbsp; delay(5);</div><div>&nbsp; &nbsp; &nbsp; <strong>Serial</strong>.println(pos);</div><div>&nbsp; &nbsp; }&nbsp;</div><div>&nbsp; }</div><div>&nbsp; //tambahan</div><div>&nbsp; if(pos &gt; 1){</div><div>&nbsp; &nbsp; digitalWrite(14, HIGH);</div><div>&nbsp; }</div><div>&nbsp; if (pos &gt; 100 ){</div><div>&nbsp; &nbsp; digitalWrite(12, HIGH);</div><div>&nbsp; }</div><div>&nbsp; if (pos &gt; 150){</div><div>&nbsp; &nbsp; digitalWrite(13, HIGH);</div><div>&nbsp; }</div><div>&nbsp; else{</div><div>&nbsp; &nbsp; digitalWrite(14, LOW);</div><div>&nbsp; &nbsp; digitalWrite(13, LOW);</div><div>&nbsp; &nbsp; digitalWrite(12, LOW);</div><div>&nbsp; }</div><div>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-11-25 02:23:52 UTC</pubDate>
         <guid>https://padlet.com/irfandharmawan52/js2megjopy68jxfp/wish/2397416531</guid>
      </item>
      <item>
         <title>Ultrasonic HC-SR04</title>
         <author>irfandharmawan52</author>
         <link>https://padlet.com/irfandharmawan52/js2megjopy68jxfp/wish/2397448167</link>
         <description><![CDATA[<div>#define trig 15</div><div>#define echo 2</div><div><br></div><div>long waktu, jarak;</div><div><br></div><div>void setup() {</div><div>&nbsp; // put your setup code here, to run once:</div><div>&nbsp; <strong>Serial</strong>.begin(115200);</div><div>&nbsp; <strong>Serial</strong>.println("Hello, ESP32!");</div><div>&nbsp; pinMode(trig, OUTPUT);</div><div>&nbsp; pinMode(echo, INPUT);</div><div>}</div><div><br></div><div>void loop() {</div><div>&nbsp; // put your main code here, to run repeatedly:</div><div>&nbsp; delay(10); // this speeds up the simulation</div><div>&nbsp; digitalWrite(trig, HIGH);</div><div>&nbsp; delayMicroseconds(10);</div><div>&nbsp; digitalWrite(trig, LOW);</div><div>&nbsp; waktu = pulseIn(echo, HIGH);</div><div>&nbsp; jarak = waktu/58-2;</div><div>&nbsp; <strong>Serial</strong>.print(jarak);</div><div>&nbsp; <strong>Serial</strong>.println("CM");</div><div>&nbsp; delay(1000);</div><div>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-11-25 02:56:13 UTC</pubDate>
         <guid>https://padlet.com/irfandharmawan52/js2megjopy68jxfp/wish/2397448167</guid>
      </item>
      <item>
         <title>Limit jarak 1m Ultrasonik</title>
         <author>irfandharmawan52</author>
         <link>https://padlet.com/irfandharmawan52/js2megjopy68jxfp/wish/2397463673</link>
         <description><![CDATA[<div>#define trig 15</div><div>#define echo 2</div><div><br></div><div>long waktu, jarak;</div><div><br></div><div>void setup() {</div><div>&nbsp; // put your setup code here, to run once:</div><div>&nbsp; <strong>Serial</strong>.begin(115200);</div><div>&nbsp; <strong>Serial</strong>.println("Hello, ESP32!");</div><div>&nbsp; pinMode(trig, OUTPUT);</div><div>&nbsp; pinMode(echo, INPUT);</div><div>}</div><div><br></div><div>void loop() {</div><div>&nbsp; // put your main code here, to run repeatedly:</div><div>&nbsp; delay(10); // this speeds up the simulation</div><div>&nbsp; digitalWrite(trig, HIGH);</div><div>&nbsp; delayMicroseconds(10);</div><div>&nbsp; digitalWrite(trig, LOW);</div><div>&nbsp; waktu = pulseIn(echo, HIGH);</div><div>&nbsp; jarak = waktu/58-2;<br>if(jarak &gt; 100 ) {</div><div>&nbsp; <strong>Serial</strong>.println("jarak terlalu jauh");</div><div>}<br>else {</div><div>&nbsp; <strong>Serial</strong>.print(jarak);</div><div>&nbsp; <strong>Serial</strong>.println("CM");</div><div>&nbsp; delay(1000);<br>}</div><div>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-11-25 03:11:09 UTC</pubDate>
         <guid>https://padlet.com/irfandharmawan52/js2megjopy68jxfp/wish/2397463673</guid>
      </item>
   </channel>
</rss>
