<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Varich Boonsanong on Medium]]></title>
        <description><![CDATA[Stories by Varich Boonsanong on Medium]]></description>
        <link>https://medium.com/@thapecroth?source=rss-1c52289d8a09------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*JANZK476yGwUoy9i.</url>
            <title>Stories by Varich Boonsanong on Medium</title>
            <link>https://medium.com/@thapecroth?source=rss-1c52289d8a09------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 16:10:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thapecroth/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[[python series ] List and For — loop]]></title>
            <link>https://medium.com/@thapecroth/python-series-array-and-for-loop-60da59988c7d?source=rss-1c52289d8a09------2</link>
            <guid isPermaLink="false">https://medium.com/p/60da59988c7d</guid>
            <dc:creator><![CDATA[Varich Boonsanong]]></dc:creator>
            <pubDate>Fri, 05 Jan 2018 14:05:35 GMT</pubDate>
            <atom:updated>2018-01-09T13:10:42.054Z</atom:updated>
            <content:encoded><![CDATA[<h3>Some problems about normal variable</h3><p>Prob: make me 100 variables.</p><p>you : um…. let me think.</p><p>you: Okay from my knowledge. I would go like.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fe00e7bde4cbde8caf461a7e7ee1fa34/href">https://medium.com/media/fe00e7bde4cbde8caf461a7e7ee1fa34/href</a></iframe><p>(while you are writing this program [the full one] ) :“Why would I do this , it’s such a painful and a waste of time.”</p><p>P: “Many of my friends have the same birthday (it’s tdy) . Can u help me to told them HBD all. (There are only 100 people)”</p><p>For old style:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c9125326488a849532fabdcfdeb44a28/href">https://medium.com/media/c9125326488a849532fabdcfdeb44a28/href</a></iframe><h3>List :</h3><p>list is just an “list” (collections) of var</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/335/0*V9Sdt0dAXY0oC4zd.gif" /></figure><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bf5f79b8ef3b0e31140e381171b7a982/href">https://medium.com/media/bf5f79b8ef3b0e31140e381171b7a982/href</a></iframe><p>Instead of old one we use.</p><p>Done.</p><p>We declared a set of list which contains 12 variables</p><p>Q: How can i access each element(variable)?</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0c331d7b819be6d5293e26a242a4b030/href">https://medium.com/media/0c331d7b819be6d5293e26a242a4b030/href</a></iframe><h4>Method</h4><p>Method is a kind of function that manipulate on the list. Let’s see example!</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/70bd5328f7cfcf0deb42a107dd71d13a/href">https://medium.com/media/70bd5328f7cfcf0deb42a107dd71d13a/href</a></iframe><h3>For-loop:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/0*k6Gm49OcksyirRyT.gif" /></figure><p>In programming , Most of the time we need to do the same thing over and over again So to be robust and lazy. There are a thing call loop i.e. it loop the instruction for you.</p><p>Q: how can I print all of the number in list ?</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2bb9d1445a78914821c0b763ef78b908/href">https://medium.com/media/2bb9d1445a78914821c0b763ef78b908/href</a></iframe><p>Q: how can i print number from 1 to 100 ?</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bc33b603a89fca1275807b60bd2fcf90/href">https://medium.com/media/bc33b603a89fca1275807b60bd2fcf90/href</a></iframe><h3>While-loop:</h3><p>It’s can be best describe as a follow code.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d21a1fd93be84600234a638841c0d382/href">https://medium.com/media/d21a1fd93be84600234a638841c0d382/href</a></iframe><h3>Problems</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*ZByH3lZIzSbMSZwv.gif" /></figure><ol><li>Print 1 to 1000 in the same line. (if u use the code above it’s line make a new line for every number) [hint][u need list + loop]</li><li>Get 10 numbers and print the summation.</li><li>Collect 10 numbers and find mean and median.</li></ol><p>Special</p><ol><li>Ask for 10 number collect them all and print each one of them in increasing order.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60da59988c7d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ทดลองง เชื่อมต่อ arduino DHT sensor [ code part 1 ]]]></title>
            <link>https://medium.com/@thapecroth/%E0%B8%97%E0%B8%94%E0%B8%A5%E0%B8%AD%E0%B8%87%E0%B8%87-%E0%B9%80%E0%B8%8A%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%A1%E0%B8%95%E0%B9%88%E0%B8%AD-arduino-dht-sensor-code-part-1-d07bebb90d5b?source=rss-1c52289d8a09------2</link>
            <guid isPermaLink="false">https://medium.com/p/d07bebb90d5b</guid>
            <dc:creator><![CDATA[Varich Boonsanong]]></dc:creator>
            <pubDate>Thu, 04 Jan 2018 13:41:54 GMT</pubDate>
            <atom:updated>2018-01-04T13:41:54.244Z</atom:updated>
            <content:encoded><![CDATA[<h3>เราทำไรกันอยู่ ?</h3><p>ก็จริงๆ แล้วมันต้องต่อก่อนแล้วค่อยมาดูโค้ดช่ะมะ แต่พอดี ขก ต่อ แล้วก็ตอนที่เขียน board ไม่ได้อยู่กับตัวก็เลยจะทำพาร์ตโค้ดก่อน ส่วนพาร์ตการต่อเนี่ยเดี๋ยวจะตามมานะจ๊ะ</p><h3>Requirement</h3><ol><li>Arduino IDE : <a href="https://www.arduino.cc/en/Main/Software">https://www.arduino.cc/en/Main/Software</a></li><li>esp8266 arduino tools วิธีการลงก็ เปิด arduino ide -&gt;preference -&gt; addtition board manager url แล้วใส่ <a href="http://arduino.esp8266.com/stable/package_esp8266com_index.json">http://arduino.esp8266.com/stable/package_esp8266com_index.json</a> -&gt; กด ok</li><li>กด tools -&gt; board -&gt; board manager -&gt; search esp8266 -&gt; install</li><li>ที่เหลือ ตั้งค่าตามนี้ ส่วนใครที่มีความรู้อยู่แล้ว จะตั้งให้ไม่เหมือนก็ได้นะ</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/393/1*ryRvAamTHQbAPe2IRAAing.png" /><figcaption>ตั้งค่าใน tools</figcaption></figure><p>ที่นี้เราก็มาเริ่มที่โค้ดกันเลยแล้วกัน จะอธิบายโค้ดเป็น comment หลังโค้ดแล้วกันนะ</p><p>comment ของโค้ดเนี่ยคือหลัง // ซึ่งหลัง คำพูดหลังจาก // เนี่ยจะไม่มีความหมายต่อโปรแกรม เฉพาะในบันทัดนั้นนะ !</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7f7dfa8cd31599d574b5041126cf5924/href">https://medium.com/media/7f7dfa8cd31599d574b5041126cf5924/href</a></iframe><h3>ทิ้งท้าย</h3><p>ก็ไหนๆก็อ่านกันแล้วก็ช่วยกด clap ให้ด้วยนะครับ แล้วก็ถ้าตรงไหนไม่เข้าใจก็ comment ถามกันได้เลย ส่วนตอนต่อไปของ code จะเป็น เรื่องของการ save ลง sd card นะงับ</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d07bebb90d5b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ทำความรู้จัก wemos d1 mini]]></title>
            <link>https://medium.com/@thapecroth/%E0%B8%97%E0%B8%B3%E0%B8%84%E0%B8%A7%E0%B8%B2%E0%B8%A1%E0%B8%A3%E0%B8%B9%E0%B9%89%E0%B8%88%E0%B8%B1%E0%B8%81-wemos-d1-mini-35f3cf0ab875?source=rss-1c52289d8a09------2</link>
            <guid isPermaLink="false">https://medium.com/p/35f3cf0ab875</guid>
            <dc:creator><![CDATA[Varich Boonsanong]]></dc:creator>
            <pubDate>Thu, 04 Jan 2018 08:19:24 GMT</pubDate>
            <atom:updated>2018-01-04T08:19:24.481Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Xreuw9q39udjndjs.jpg" /></figure><p>ถ้าจะเอาแบบ เทคนิค wemos ก็คือ development board ที่มีชิพ esp8266 ซึ่ง esp8266 เนี่ยเราไว้ค่อยไปคุยในรายละเอียดที่หลังแล้วกันมันเยอะะะ</p><p>แต่เราจะมาคุยกันก่อนว่ามันสามารถทำไรได้บ้าง</p><ol><li>คือมันเป็นบอร์ดที่สามารถใช้ arduino IDE และ syntax สำหรับ arduino มาเขียนได้เลย นั้นทำให้ code ส่วนใหญ่ที่รันบน arduino มาใส่ใน wemos d1 ได้เลย และยังสามารถใช้ libary ของ arduino ส่วนใหญ่ได้ด้วย</li><li>ในตัวบอร์ดได้มีการฝังเสา wifi มาให้เรียบร้อยโดยจะใช้ความที่ 2.4 Ghz เท่านั้นนะงับ 5 Ghz คงต้องรอไปก่อน ทำให้เราสามารถใช้งานมันเป็นได้ทั้ง client ซึ่งก็คือตัวเราสำหรับเชื่อสัญญาณจาก router หรือก็คือเหมือน มือถือ หรือ notebook เรานั้นเอง นอกจากนั้นแล้วยังสามารถทำเป็น acces point ได้ด้วยซึ่งก็เหมือน router ที่ปล่อย wifi ออกมาให้เราเชื่อมและเนื่องจากมันเป็นสัญญาณ wifi อุปกรณ์ทุกเครื่องที่ใช้ wifi จึงสามารถเชื่อมกับมันได้เลย</li></ol><h3><strong>แล้วจะเชื่อมไปทำไม ?</strong></h3><ol><li>เราสามารถทำให้มันเป็นอุปกรณ์ IOT ซึ่งก็คือสามารถส่งสถานะของตัวเองไปที่ server ที่เราตั้งไว้แบบ real-time</li><li>เราสามารถทำให้ wemos เนี่ยเป็น server เองโดยใน client ตัวอื่นมาเชื่อมเพื่อขอข้อมูล หรือ จะทำเป็น webserver เหมือนเวลาที่เราเข้าเน็ตทั่วไปเลยก็ได้</li></ol><h3>เขียนทำไม ?</h3><p>ก็นี้จะเป็นบทความแรกใน series เปลี่ยน wemos d1 ให้เป็น webserver ไว้ดูค่า อุณหภูมิ , ความชื่น , ความสูง , พิกัด gps</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35f3cf0ab875" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>