<?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 Apirak Sang-ngenchai on Medium]]></title>
        <description><![CDATA[Stories by Apirak Sang-ngenchai on Medium]]></description>
        <link>https://medium.com/@ASsuperman?source=rss-494f81229938------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*PpknH_sdC2kj-snRCpKpFQ@2x.jpeg</url>
            <title>Stories by Apirak Sang-ngenchai on Medium</title>
            <link>https://medium.com/@ASsuperman?source=rss-494f81229938------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 14 Nov 2026 21:16:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ASsuperman/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[M5StickV : Face Mask Detection]]></title>
            <link>https://medium.com/chiang-mai-maker-club/m5stickv-face-mask-detection-ae3198eff44e?source=rss-494f81229938------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae3198eff44e</guid>
            <category><![CDATA[artificail-intelligence]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[face-mask-detection]]></category>
            <category><![CDATA[m5stickv]]></category>
            <dc:creator><![CDATA[Apirak Sang-ngenchai]]></dc:creator>
            <pubDate>Fri, 03 Jul 2020 12:03:55 GMT</pubDate>
            <atom:updated>2020-07-03T12:03:55.729Z</atom:updated>
            <content:encoded><![CDATA[<h3>M5StickV : Face Mask Detection</h3><p>face mask detection system powered by m5stickv</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jKtYRgpYnDuVvB3_0PPlOA.png" /></figure><h3>Introduction</h3><p>Hello I’m Apirak, Welcome back to journal. Last article we try to do an <a href="https://medium.com/asbavensky/d-i-y-automatic-alcohol-dispenser-a82bc3828de6">Automatic alcohol dispenser</a> It works very well. So, Today i would like to introduce you to a new project that can detect: you are wearing a mask or not and notify on the LED light.</p><p><strong>Let’s see how it work</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FL34gg8YdzoY%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DL34gg8YdzoY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FL34gg8YdzoY%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/de8d744379ba089db2fcc3239343a142/href">https://medium.com/media/de8d744379ba089db2fcc3239343a142/href</a></iframe><blockquote>When the board found you are not wearing a face mask the light in the front will turn to <strong>RED </strong>light</blockquote><blockquote>But if you are wearing a face mask the light will turn to <strong>GREEN </strong>light</blockquote><h3>Thing is request</h3><ul><li>M5StickV (hardware)</li><li>Maixpy IDE (software)</li><li>Flash_gui (software)</li></ul><h3>Collecting data</h3><p>Before we train a machine can recognize who is wearing a mask or not. We need to collect the picture with a mask and no mask (we call it a data set). So, on this article you can download the data set from <a href="https://www.kaggle.com/"><strong>https://www.kaggle.com</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tjZ_kOpX8OKezoUIb6s7Dg.png" /></figure><p>After you download the data set, First you have to preparing the pictures for using in v-training (v-training is a website that you can training your data become to model for free)</p><h3>Train your model</h3><p>To train your model following this instruction : <a href="https://docs.m5stack.com/#/en/related_documents/v-training">docs.m5stack.com/#/en/related_documents/v-training</a></p><ul><li><strong>Preparing your data set</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VZ7CCXjav_B2UYgcU-ROug.png" /></figure><ul><li><strong>Zip file and upload to V-Training</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*zkR_NLdWfPmHcNb4QeYyug.png" /></figure><h3>Test your model</h3><p>After training is accomplished they will send it to you by personal email. You will found the link to download the model file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*u6wffit5denuJWOzMh6rVg.png" /></figure><ul><li>Unzip the file and copy to SD card in the M5StickV</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7sYsZDzxL9-YW-2lWpfOaA.png" /></figure><h3>Summary</h3><p>M5Stickv is a board that can help you to getting started to make a machine vision embedded solution. So far, This article just shows you how to use the Technology can help you to solve a problem in this situation. It’s just an Idea but it can be improved to use it in the future.</p><p><a href="https://github.com/bavensky/M5StickV-FaceMaskDetectionSystem"><strong>FREE SOURCE CODE AND MODEL HERE !!!</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*Ikbl1Q_0ClXr7wrUEuN2_A.png" /></figure><p><strong>Resource<br></strong><a href="https://www.hackster.io/hendra/mask-detector-to-prevent-covid-19-c0ddd4">https://www.hackster.io/hendra/mask-detector-to-prevent-covid-19-c0ddd4</a><br><a href="https://docs.m5stack.com/#/en/related_documents/v-training">https://docs.m5stack.com/#/en/related_documents/v-training</a><br><a href="https://www.kaggle.com/vtech6/medical-masks-dataset">https://www.kaggle.com/vtech6/medical-masks-dataset</a><br><a href="https://www.kaggle.com/niharika41298/withwithout-mask">https://www.kaggle.com/niharika41298/withwithout-mask</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae3198eff44e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/chiang-mai-maker-club/m5stickv-face-mask-detection-ae3198eff44e">M5StickV : Face Mask Detection</a> was originally published in <a href="https://medium.com/chiang-mai-maker-club">Chiang Mai Maker Club</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[D.I.Y. Face Mask Detection]]></title>
            <link>https://medium.com/asbavensky/d-i-y-face-mask-detection-ae6377701da4?source=rss-494f81229938------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae6377701da4</guid>
            <category><![CDATA[m5stickv]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[face-mask]]></category>
            <category><![CDATA[detection]]></category>
            <dc:creator><![CDATA[Apirak Sang-ngenchai]]></dc:creator>
            <pubDate>Thu, 02 Jul 2020 04:56:27 GMT</pubDate>
            <atom:updated>2020-07-09T04:21:51.836Z</atom:updated>
            <content:encoded><![CDATA[<p>with M5StickV (K210)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jKtYRgpYnDuVvB3_0PPlOA.png" /></figure><h3><strong>Introduction</strong></h3><p>Hello I’m Apirak, Welcome back to journal. Last article we try to do an <a href="https://medium.com/asbavensky/d-i-y-automatic-alcohol-dispenser-a82bc3828de6">Automatic alcohol dispenser</a> It works very well. So, Today i would like to introduce you to a new project that can detect: you are wearing a mask or not and notify on the LED light.</p><p><strong>Let’s see how it work</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FL34gg8YdzoY%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DL34gg8YdzoY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FL34gg8YdzoY%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/de8d744379ba089db2fcc3239343a142/href">https://medium.com/media/de8d744379ba089db2fcc3239343a142/href</a></iframe><blockquote>When the board found you are not wearing a face mask the light in the front will turn to <strong>RED </strong>light</blockquote><blockquote>But if you are wearing a face mask the light will turn to <strong>GREEN </strong>light</blockquote><h3>Thing is request</h3><ul><li>M5StickV (hardware)</li><li>Maixpy IDE (software)</li><li>Flash_gui (software)</li></ul><h3><strong>Collecting data</strong></h3><p>Before we train a machine can recognize who is wearing a mask or not. We need to collect the picture with a mask and no mask (we call it a data set). So, on this article you can download the data set from <a href="https://www.kaggle.com/"><strong>https://www.kaggle.com</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tjZ_kOpX8OKezoUIb6s7Dg.png" /></figure><p>After you download the data set, First you have to preparing the pictures for using in v-training (v-training is a website that you can training your data become to model for free)</p><h3><strong>Train your model</strong></h3><p>To train your model following this instruction : <a href="https://docs.m5stack.com/#/en/related_documents/v-training">docs.m5stack.com/#/en/related_documents/v-training</a></p><ul><li><strong>Preparing your data set</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VZ7CCXjav_B2UYgcU-ROug.png" /></figure><ul><li><strong>Zip file and upload to V-Training</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*zkR_NLdWfPmHcNb4QeYyug.png" /></figure><h3><strong>Test your model</strong></h3><p>After training is accomplished they will send it to you by personal email. You will found the link to download the model file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*u6wffit5denuJWOzMh6rVg.png" /></figure><ul><li>Unzip the file and copy to SD card in the M5StickV</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7sYsZDzxL9-YW-2lWpfOaA.png" /></figure><h3><strong>Summary</strong></h3><p>M5Stickv is a board that can help you to getting started to make a machine vision embedded solution. So far, This article just shows you how to use the Technology can help you to solve a problem in this situation. It’s just an Idea but it can be improved to use it in the future.</p><p><a href="https://github.com/bavensky/M5StickV-FaceMaskDetectionSystem"><strong>FREE SOURCE CODE AND MODEL HERE !!!</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*Ikbl1Q_0ClXr7wrUEuN2_A.png" /></figure><p><strong>Resource<br></strong><a href="https://www.hackster.io/hendra/mask-detector-to-prevent-covid-19-c0ddd4">https://www.hackster.io/hendra/mask-detector-to-prevent-covid-19-c0ddd4</a><br><a href="https://docs.m5stack.com/#/en/related_documents/v-training">https://docs.m5stack.com/#/en/related_documents/v-training</a><br><a href="https://www.kaggle.com/vtech6/medical-masks-dataset">https://www.kaggle.com/vtech6/medical-masks-dataset</a><br><a href="https://www.kaggle.com/niharika41298/withwithout-mask">https://www.kaggle.com/niharika41298/withwithout-mask</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FSnoE3XEEkhZF19uTL4IFQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae6377701da4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/asbavensky/d-i-y-face-mask-detection-ae6377701da4">D.I.Y. Face Mask Detection</a> was originally published in <a href="https://medium.com/asbavensky">ASbavensky</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[D.I.Y. Automatic Alcohol Dispenser]]></title>
            <link>https://medium.com/asbavensky/d-i-y-automatic-alcohol-dispenser-a82bc3828de6?source=rss-494f81229938------2</link>
            <guid isPermaLink="false">https://medium.com/p/a82bc3828de6</guid>
            <category><![CDATA[dispenser]]></category>
            <category><![CDATA[makers]]></category>
            <category><![CDATA[arduino-uno]]></category>
            <category><![CDATA[covid19]]></category>
            <dc:creator><![CDATA[Apirak Sang-ngenchai]]></dc:creator>
            <pubDate>Fri, 15 May 2020 06:25:23 GMT</pubDate>
            <atom:updated>2020-07-03T11:50:20.233Z</atom:updated>
            <content:encoded><![CDATA[<p>International College of Technology (ICT) Hakusanroku campus</p><p>In this situation of Covid-19, The general public turn to wear a face mask, wash their hands, and leave more spacing especially. In school many countries have closed classes, some schools can still open classes including ICT Hakusanroku campus because all of the students are here. But, we still do all classes online. Even so, we still let students wear a face mask and always wash their hands to reduce infection and spread the infection.</p><p>Anyway, one thing that is a problem is we have to press a Alcohol bottle. That means we touch things and the virus can spread to the bottle. Then, I tried to design a 3D model to press the alcohol bottle with servo motor instead of our hand and print all parts by 3D printer, detect our hand with ultrasonic sensor and all of these are controlled with Arduino board.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9VcZYLpEo3K9sxCf84EGwA.jpeg" /></figure><h3>Supplies</h3><ol><li>Computer or Laptop<br>- Arduino IDE<br>- Autodesk Fusion360 (optional)<br>- Autodesk Tinkercad (optional)</li><li>3D printer</li><li>Arduino UNO board</li><li>Servo motors MG996R High Torque or any Servo motor</li><li>Ultrasonic Sensor SR04 or any Distance sensor</li><li>Wire and AC Adapter</li></ol><h3>Step 1</h3><p>Design your 3D model and make a file for your 3D printer or <a href="https://github.com/bavensky/arduino-alcohol-dispenser">download here</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/1*gXdSbPMnwverIsFOGje8oA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*GdetBUnp7JzVKcu6uA_T5Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*Sg37u5RwDCmMxUYBbhIcwA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*_XFdQ-awzzl7-N_7mEMrog.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*tc5e_E4UInpUW2j6I7zisg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/364/1*UE51qZkX9hSaiMiEiuCceA.png" /></figure><h3>Step 2</h3><p>Print the model and assemble it together</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tsTA21CA05HwE9HLyU358w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*10EfEoCH5yLXuGy0S1he1Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pqk0XPV52D5C-vwtRoyrXg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EonwEEznQrft6CdRApk5iQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3XrZDo3kniJYS9vVIi-EYQ.png" /></figure><h3>Step 3</h3><p>Wiring and connecting</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*3496DE028-gaGZ6b704hNQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/1*SyNcbiMUsFUEjvmkC6E3tA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bKh2LVIGpx2du_0o5OFdTA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SjQYcgaIguGIfIGODdtV6w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jNAtF65m3KDjRHJBnGoG6A.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-x1P5tg0axg8MC6GCw4oHw.jpeg" /></figure><h3>Step 4</h3><p>Write your code to read a distant when the hand is close to dispenser , Then pressed a alcohol bottle by servo motor</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f669ccacf69e58ef609e4824c03045b3/href">https://medium.com/media/f669ccacf69e58ef609e4824c03045b3/href</a></iframe><p><a href="https://github.com/bavensky/arduino-alcohol-dispenser/blob/master/arduino-dispenser.ino">bavensky/arduino-alcohol-dispenser</a></p><h3>Step 5</h3><p>let’s see how it works</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F9O0lwme0a_Q%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D9O0lwme0a_Q&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F9O0lwme0a_Q%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/728e909bd7128491547a66208337f81a/href">https://medium.com/media/728e909bd7128491547a66208337f81a/href</a></iframe><h3>Step 6</h3><p>Finally, Powering and setup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FQhIz70yemscxpjiVDaFaA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OycqGr0eVWc_Nq8Asq9oxg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a82bc3828de6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/asbavensky/d-i-y-automatic-alcohol-dispenser-a82bc3828de6">D.I.Y. Automatic Alcohol Dispenser</a> was originally published in <a href="https://medium.com/asbavensky">ASbavensky</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[D.I.Y. Automatic Alcohol Dispenser]]></title>
            <link>https://medium.com/chiang-mai-maker-club/d-i-y-automatic-alcohol-dispenser-94c749f3a98d?source=rss-494f81229938------2</link>
            <guid isPermaLink="false">https://medium.com/p/94c749f3a98d</guid>
            <category><![CDATA[arduino-uno]]></category>
            <category><![CDATA[makers]]></category>
            <category><![CDATA[dispenser]]></category>
            <category><![CDATA[covid19]]></category>
            <dc:creator><![CDATA[Apirak Sang-ngenchai]]></dc:creator>
            <pubDate>Fri, 15 May 2020 06:22:52 GMT</pubDate>
            <atom:updated>2020-07-03T11:50:49.847Z</atom:updated>
            <content:encoded><![CDATA[<p>สร้างเครื่องกดเจลล้างเมืองอัตโนมัติด้วย arduino</p><p>In this situation of Covid-19, The general public turn to wear a face mask, wash their hands, and leave more spacing especially. In school many countries have closed classes, some schools can still open classes including ICT Hakusanroku campus because all of the students are here. But, we still do all classes online. Even so, we still let students wear a face mask and always wash their hands to reduce infection and spread the infection.</p><p>Anyway, one thing that is a problem is we have to press a Alcohol bottle. That means we touch things and the virus can spread to the bottle. Then, I tried to design a 3D model to press the alcohol bottle with servo motor instead of our hand and print all parts by 3D printer, detect our hand with ultrasonic sensor and all of these are controlled with Arduino board.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9VcZYLpEo3K9sxCf84EGwA.jpeg" /></figure><h3>Supplies</h3><ol><li>Computer or Laptop<br>- Arduino IDE<br>- Autodesk Fusion360 (optional)<br>- Autodesk Tinkercad (optional)</li><li>3D printer</li><li>Arduino UNO board</li><li>Servo motors MG996R High Torque or any Servo motor</li><li>Ultrasonic Sensor SR04 or any Distance sensor</li><li>Wire and AC Adapter</li></ol><h3>Step 1</h3><p>Design your 3D model and make a file for your 3D printer or <a href="https://github.com/bavensky/arduino-alcohol-dispenser">download here</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/1*gXdSbPMnwverIsFOGje8oA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*GdetBUnp7JzVKcu6uA_T5Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*Sg37u5RwDCmMxUYBbhIcwA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*_XFdQ-awzzl7-N_7mEMrog.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*tc5e_E4UInpUW2j6I7zisg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/364/1*UE51qZkX9hSaiMiEiuCceA.png" /></figure><h3>Step 2</h3><p>Print the model and assemble it together</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tsTA21CA05HwE9HLyU358w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*10EfEoCH5yLXuGy0S1he1Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pqk0XPV52D5C-vwtRoyrXg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EonwEEznQrft6CdRApk5iQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3XrZDo3kniJYS9vVIi-EYQ.png" /></figure><h3>Step 3</h3><p>Wiring and connecting</p><p>Arduino UNO || Ultrasonic || Servo motor<br>5V — — — — — — VCC — — — — VCC — — — <br>GND — — — — — GND — — — — GND — — — <br>D5 — — — — — — TRIG — — — — — — — — — <br>D6 — — — — — — ECHO — — — — — — — — — <br>D9 — — — — — — — — — — — — SIG — — — —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/1*SyNcbiMUsFUEjvmkC6E3tA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bKh2LVIGpx2du_0o5OFdTA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SjQYcgaIguGIfIGODdtV6w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jNAtF65m3KDjRHJBnGoG6A.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-x1P5tg0axg8MC6GCw4oHw.jpeg" /></figure><h3>Step 4</h3><p>Write your code to read a distant when the hand is close to dispenser , Then pressed a alcohol bottle by servo motor</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f669ccacf69e58ef609e4824c03045b3/href">https://medium.com/media/f669ccacf69e58ef609e4824c03045b3/href</a></iframe><p><a href="https://github.com/bavensky/arduino-alcohol-dispenser/blob/master/arduino-dispenser.ino">bavensky/arduino-alcohol-dispenser</a></p><h3>Step 5</h3><p>let’s see how it works</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F9O0lwme0a_Q%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D9O0lwme0a_Q&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F9O0lwme0a_Q%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/728e909bd7128491547a66208337f81a/href">https://medium.com/media/728e909bd7128491547a66208337f81a/href</a></iframe><h3>Step 6</h3><p>Finally, Powering and setup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FQhIz70yemscxpjiVDaFaA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OycqGr0eVWc_Nq8Asq9oxg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94c749f3a98d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/chiang-mai-maker-club/d-i-y-automatic-alcohol-dispenser-94c749f3a98d">D.I.Y. Automatic Alcohol Dispenser</a> was originally published in <a href="https://medium.com/chiang-mai-maker-club">Chiang Mai Maker Club</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[สรุปอบรม “การใช้ AI for Thai Platform” สำหรับนักพัฒนาโปรแกรม (ภาคเหนือ)]]></title>
            <link>https://medium.com/asbavensky/%E0%B8%AA%E0%B8%A3%E0%B8%B8%E0%B8%9B%E0%B8%AD%E0%B8%9A%E0%B8%A3%E0%B8%A1-%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B9%83%E0%B8%8A%E0%B9%89-ai-for-thai-platform-%E0%B8%AA%E0%B8%B3%E0%B8%AB%E0%B8%A3%E0%B8%B1%E0%B8%9A%E0%B8%99%E0%B8%B1%E0%B8%81%E0%B8%9E%E0%B8%B1%E0%B8%92%E0%B8%99%E0%B8%B2%E0%B9%82%E0%B8%9B%E0%B8%A3%E0%B9%81%E0%B8%81%E0%B8%A3%E0%B8%A1-%E0%B8%A0%E0%B8%B2%E0%B8%84%E0%B9%80%E0%B8%AB%E0%B8%99%E0%B8%B7%E0%B8%AD-4213680e508b?source=rss-494f81229938------2</link>
            <guid isPermaLink="false">https://medium.com/p/4213680e508b</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-for-thai]]></category>
            <category><![CDATA[nectec]]></category>
            <dc:creator><![CDATA[Apirak Sang-ngenchai]]></dc:creator>
            <pubDate>Fri, 31 Jan 2020 08:57:09 GMT</pubDate>
            <atom:updated>2020-01-31T08:57:09.668Z</atom:updated>
            <content:encoded><![CDATA[<p>Seminar : AI for Thai Platform for developer</p><p>AI for Thai เกิดจากความมุ่นมั่นของศูนย์เทคโนโลยีอิเล็กทรอนิกส์และคอมพิวเตอร์แห่งชาติ (เนคเทค) ที่จะสร้างเทคโนโลยีฐานรากทางด้านดิจิทัล (Digital Infrastructure) ให้กับประเทศไทย โดยนำผลงานวิจัยที่มีอยู่ทางด้านปัญญาประดิษฐ์มาเผยแพร่ในรูปแบบการให้บริการ หรือ API เพื่อให้นักพัฒนานำไปต่อยอด สร้างสรรค์และพัฒนาแอปพลิเคชันให้เกิดประโยชน์ทั้งในเชิงธุรกิจและสังคม</p><p>แพลตฟอร์ม AI for Thai ยังเป็นชิ้นส่วนและกลไกสำคัญที่จะช่วยสร้างและขับเคลื่อนระบบนิเวศทางด้านปัญญาประดิษฐ์ (AI Ecosystem) ให้เกิดขึ้นในประเทศไทย โดยจะเปิดให้นักวิจัย อาจารย์ นักศึกษาและนักพัฒนามาร่วมกันสร้าง API ใหม่ๆ และนำมาให้บริการผ่านแพลตฟอร์ม เพื่อเป็นประโยชน์สูงสุดกับผู้ใช้งานในประเทศไทย</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kV23XFmpEMj4zPQ1ugUQlw.png" /></figure><p>การอบรม “การใช้ AI for Thai Platform” สำหรับนักพัฒนาโปรแกรม (ภาคเหนือ) จัดขึ้นวันเสาร์ที่ 21 ธันวาคม 2562 ณ สำนักบริการวิชาการ มหาวิทยาลัยเชียงใหม่ (UNISERV CMU) จังหวัดเชียงใหม่</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*re6_dBQGZVEa-GHG" /></figure><p>AI for Thai เกิดจากความมุ่นมั่นของศูนย์เทคโนโลยีอิเล็กทรอนิกส์และคอมพิวเตอร์แห่งชาติ (เนคเทค) ที่จะสร้างเทคโนโลยีฐานรากทางด้านดิจิทัล (Digital Infrastructure) ให้กับประเทศไทย โดยนำผลงานวิจัยที่มีอยู่ทางด้านปัญญาประดิษฐ์มาเผยแพร่ในรูปแบบการให้บริการ หรือ API เพื่อให้นักพัฒนานำไปต่อยอด สร้างสรรค์และพัฒนาแอปพลิเคชันให้เกิดประโยชน์ทั้งในเชิงธุรกิจและสังคม<br>แพลตฟอร์ม AI for Thai ยังเป็นชิ้นส่วนและกลไกสำคัญที่จะช่วยสร้างและขับเคลื่อนระบบนิเวศทางด้านปัญญาประดิษฐ์ (AI Ecosystem) ให้เกิดขึ้นในประเทศไทย โดยจะเปิดให้นักวิจัย อาจารย์ นักศึกษาและนักพัฒนามาร่วมกันสร้าง API ใหม่ๆ และนำมาให้บริการผ่านแพลตฟอร์ม เพื่อเป็นประโยชน์สูงสุดกับผู้ใช้งานในประเทศไทย<br>(ที่มา : <a href="https://l.facebook.com/l.php?u=https%3A%2F%2Faiforthai.in.th%2Fabout.php%3Ffbclid%3DIwAR2SBWkthwUNs0ox58hcBv2gZ_p1dgyhRS28q3qof5yA530ERsQcI-e6Xiw&amp;h=AT1mcaYhPqZvlyXZS4SEIoRs9666ekUYjq9oZ8v16jTXITPs2E2nUUH9Arx3JmDuGwyj9Uqj1lO2RNPmWEpjWIY0-VaImsYgvtuI6H7UHhkDRLFHEjy_MCvHUL3xqQUYOTk5lQ">https://aiforthai.in.th/about.php</a>)</p><h3>ผู้ใช้งานสามารถทดลองใช้ AI for Thai ได้ที่ <a href="https://l.facebook.com/l.php?u=http%3A%2F%2Faiforthai.in.th%2F%3Ffbclid%3DIwAR154cTCI-1OnWISYUXd0hjOQuvHQJq_ab_JRvYVbirHe3SP7NG7DAn8K00&amp;h=AT0aVJUEQ8ksEwHsy6wvj3r_UyQZN17bp12IX50MzXq7gvLENiPixzmd2xlCHz3zPsXZ3mL8YsExOfkCpR46urWLGGjRtMCEM9p-HZLhTPiXSvs_gfWT4GG2TFCkYOE9Bs4qMw">aiforthai.in.th</a></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/0*MzSpW0sSA9UdUayW" /></figure><h3>เนื้อหาในการอบรม แบ่งออกเป็น 3 ด้านดังนี้<br>1) ภาษา (Language)</h3><p>เป็นการใช้งานการประมวลผลข้อความภาษาไทย เช่น การตัดคำด้วยพจนานุกรรม, การตัดคำด้วย Machine Learning, ตัดคำ และแก้คำซ้ำ, ตัดคำ และบอกประเภท, แสดงคำที่ออกเสียงคล้ายกัน, คำสะกดใกล้เคียงกัน จากพจนานุกรม และรายชื่อคนไทย และคำที่มีบริบทใกล้เคียงกัน โดยสามารถทดลองเรียกใช้งาน API ได้จาก<br><a href="https://l.facebook.com/l.php?u=https%3A%2F%2Fcolab.research.google.com%2Fdrive%2F1RUW1CIR4zBKuHfAd4Gyr7fZ23Tw-aj02%3Ffbclid%3DIwAR3tsbpPzDuIVNM0bvFLWrnrk9pAJSIY3LxZ_eVq-Rh_iwFYEj4Pzb3Q9nk%23scrollTo%3Dia-xcZwTLhAH&amp;h=AT0vyiRn4PZU-3N4lKl5iUFuUNegTBnaNs46znkaQPe0I22MMcEChwu-Gu_FD5oCWWaekjLj08RsQ4AgUJk6DbGuvB_1Fs80vM9D9iHao-WGWfCy_xsm9aFxz4F11vQ-GY5N6zb-6uF4VJEIxlE">colab : Basic NLP API call G2P LexTo Soundex TLexPlus,Word approx, WordSim</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/312/0*RwHKSR2VA5tvxgMP" /><figcaption>การใช้งาน LANGUAGE</figcaption></figure><h3>2) ภาพ (Vision)</h3><p>เป็นการใช้งานการวิเคราะห์ และเข้าใจภาพและวิดีโอ เช่น การแปลงภาพเอกสารให้เป็นข้อความ, การวิเคราะห์วัตถุ (ชื่ออาหาร), การระบุตำแหน่งบุคคลในภาพ, การแสดงความหนาแน่นของบุคคลในรูปภาพ และการตรวจจับป้ายทะเบียนรถ สามารถดาวน์โหลดโปรแกรมทดลองเรียกใช้งาน API ได้จาก<br><a href="https://l.facebook.com/l.php?u=https%3A%2F%2Fdoc-10-2g-docs.googleusercontent.com%2Fdocs%2Fsecuresc%2Feksumalpe5fs5rru4aan366hs1bu8pfh%2Fptbkb18p9ljsi2n5ghgqakoloj14sl82%2F1576893600000%2F12183427470323601102%2F07342156597785572645%2F1Ih5nb4qmJR38uDmD31FNbPVjIKLt7R0h%3Fe%3Dview%26authuser%3D0%26nonce%3Dncujhoupab8tm%26user%3D07342156597785572645%26hash%3Dih1t4i0g79gqjpp0181cs25988g46mc4%26fbclid%3DIwAR2kixlDjr58CN5ykHESORvXTU8cuI6LLnO65fBPrEPwEmmdRB9pumNXTmA&amp;h=AT2k-kNik9a0jtF_O7ikRIHuX9w0BLqIywrLoowTXKwr6HhPKobQ7iEbto5mDoefekCVrmkEZy-lvX9SI1ipFZwdHmukPeZYB1rpgtmCyizNs0kXQ2ZTAJfDxuoC8SnrAEMeOg">Google Drive : ATFORTHAI_vision.zip</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/0*xY3Uvke08wVDQjAV" /><figcaption>การใช้งาน VISION</figcaption></figure><h3>3) การสนทนา และการโต้ตอบ (Conversation)</h3><p>เป็นการใช้งานการสนทนา เสียงพูด และการโต้ตอบจาก chatbot เช่น การแปลงเสียงพูดเป็นข้อความ, การแปลงข้อความเป็นเสียงพูด และการสร้างแช็ตบอตเพื่อโต้ตอบโดยสามารถทดลองเรียกใช้งาน API ได้จาก<br><a href="https://l.facebook.com/l.php?u=https%3A%2F%2Fcolab.research.google.com%2Fdrive%2F1dbxKk2wpXwT-sXROUBDpcjBAfqlJAqrQ%3Ffbclid%3DIwAR2U8wdFRc_elPApgrCoBnkeNKXZ-94zZ76eEcQau_QZQ-VhAVtR1xUIxJw&amp;h=AT1HEYVGAgO3Ya2_zh7loDYF3_YMVwpO0h0tebP89tG6gvAE5VEZP9oyY6URdw4hhb1w2-8fmgOI-cMjS1WPyyktE276KDHr9udk2eoQj7u9iYUVD2xdG0ubj2DnETGD4vOMGA">colab : Conversation API call Partii &amp; Vaja</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/0*5Cv7G7WspQq7U3mj" /><figcaption>การใช้งาน CONVERSATION</figcaption></figure><p>ทั้งนี้จากการอบรมพบว่า ตัวแพลตฟอร์ตเองสามารถใช้งานได้ในระดับหนึ่ง ซึ่งข้อมูล (dataset) ที่ทาง NECTEC ได้รวบรวมและทำ Model เอาไว้ให้ สามารถนำไปใช้งาน และต่อยอดให้เกิดผลงาน สิ่งประดิษฐ์ และนวัตกรรมต่าง ๆ ได้ในอนาคต ทั้งนี้ ขึ้นอยู่กับผู้พัฒนาเอง ว่าจะสามารถดึงความสามารถของ SERVICES ที่เปิดให้ใช้งานได้มากน้อยเพียงใด</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aAfZMLIO2J23QWjr" /></figure><p>จำนวน API ที่สามารถใช้งานได้</p><p><a href="https://www.facebook.com/hashtag/%E0%B9%80%E0%B8%9E%E0%B8%B4%E0%B9%88%E0%B8%A1%E0%B9%80%E0%B8%95%E0%B8%B4%E0%B8%A11?source=note&amp;epa=HASHTAG">#เพิ่มเติม1</a> การใช้งาน API มีขีดจำกัด หากต้องการเพิ่มการใช้งาน สามารถติดต่อกับทาง NECTEC ได้โดยตรง และdataset ที่ใช้สร้างโมเดลอาจจะยังไม่ครอบคลุมทั้งหมด โดยผู้พัฒนาสามารถติดต่อทีม NECTEC เพื่อเพิ่ม dataset สำหรับงานของตนเองในภายภาคหน้าได้</p><p><a href="https://www.facebook.com/hashtag/%E0%B9%80%E0%B8%9E%E0%B8%B4%E0%B9%88%E0%B8%A1%E0%B9%80%E0%B8%95%E0%B8%B4%E0%B8%A12?source=note&amp;epa=HASHTAG">#เพิ่มเติม2</a> ยังไม่ได้อธิบายการใช้งานร่วมกับ ABDUL Platform และ LINE Chatbot นะครับ</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4213680e508b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/asbavensky/%E0%B8%AA%E0%B8%A3%E0%B8%B8%E0%B8%9B%E0%B8%AD%E0%B8%9A%E0%B8%A3%E0%B8%A1-%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B9%83%E0%B8%8A%E0%B9%89-ai-for-thai-platform-%E0%B8%AA%E0%B8%B3%E0%B8%AB%E0%B8%A3%E0%B8%B1%E0%B8%9A%E0%B8%99%E0%B8%B1%E0%B8%81%E0%B8%9E%E0%B8%B1%E0%B8%92%E0%B8%99%E0%B8%B2%E0%B9%82%E0%B8%9B%E0%B8%A3%E0%B9%81%E0%B8%81%E0%B8%A3%E0%B8%A1-%E0%B8%A0%E0%B8%B2%E0%B8%84%E0%B9%80%E0%B8%AB%E0%B8%99%E0%B8%B7%E0%B8%AD-4213680e508b">สรุปอบรม “การใช้ AI for Thai Platform” สำหรับนักพัฒนาโปรแกรม (ภาคเหนือ)</a> was originally published in <a href="https://medium.com/asbavensky">ASbavensky</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ทำ Face recognition ด้วย M5Stick-V]]></title>
            <link>https://medium.com/chiang-mai-maker-club/%E0%B8%97%E0%B8%B3-face-recognition-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-m5stick-v-c10b985adac7?source=rss-494f81229938------2</link>
            <guid isPermaLink="false">https://medium.com/p/c10b985adac7</guid>
            <category><![CDATA[facerecognitioncamera]]></category>
            <category><![CDATA[facedetection]]></category>
            <category><![CDATA[m5stickv]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[face-recognition-software]]></category>
            <dc:creator><![CDATA[Apirak Sang-ngenchai]]></dc:creator>
            <pubDate>Wed, 25 Dec 2019 09:16:32 GMT</pubDate>
            <atom:updated>2019-12-25T09:17:18.336Z</atom:updated>
            <content:encoded><![CDATA[<p>Face recognition with M5Stick-V board (K210)</p><p>เนื้อหาภาคต่อจากบทความ <a href="https://medium.com/chiang-mai-maker-club/%E0%B8%97%E0%B8%B3-face-detection-%E0%B8%87%E0%B9%88%E0%B8%B2%E0%B8%A2-%E0%B9%86-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-sipeed-maix-board-a135f5a57af9">ทำ Face Detection ง่าย ๆ ด้วย Sipeed Maix board</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wd0AezSemZ3VWeJqUOzDYA.jpeg" /></figure><p><strong>M5Stick-V</strong> บอร์ดพัฒนา AI ที่มาพร้อมกับกล้อง OV7740 ความเร็ว 60 fps แบบ VGA(640x480 pixels) มาพร้อมกับจอแสดงผลสี TFT ใช้ชิปเบอร์ ST7789 ขนาด 135x240 pixels นอกจากนี้ ภายในบอร์ดยังมีเซนเซอร์ built-in อย่างมากมาย ทั้ง MPU6886 (3-axis Gyro + 3-axis accelerometer), Power Management AXP192, PCM: MAX98357 และแน่นอนว่าด้วยขุมพลังของ Kendryte K210 จะทำให้สามารถนำไปงานได้หลากหลายไม่ว่าจะเป็น Object detection /classification Face detection / recognition ซึ่งจะได้ทดลองทำกันในบทความนี้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*JE8vAPBCRJnAm8RNzcLcHw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*6L3yyQ3Ev7KjIV0xbBUbHg.jpeg" /></figure><h3>เตรียมเครื่องมือ</h3><ol><li><a href="http://dl.sipeed.com/MAIX/MaixPy/ide/v0.2.3/maixpy-ide-windows-0.2.3-installer-archive.7z">MaixPy IDE for windows</a></li><li><a href="http://dl.cdn.sipeed.com/kflash_gui_v1.5_windows.7z">kFlash GUI</a></li><li><a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/M5StickV_Firmware_1022_beta.kfpkg">M5StickV_Firmware</a></li><li><a href="https://github.com/tzutalin/labelImg/releases">labelImg</a></li><li><a href="https://github.com/cmmakerclub/M5StickV-FaceRegconition">Example code &amp; Model</a></li><li><a href="https://github.com/m5stack/m5-docs/blob/master/docs/en/quick_start/m5stickv/m5stickv_quick_start.md#Download">M5StickV Quick Started</a></li></ol><h3>ทดลองโปรแกรม</h3><p>1) อัพโหลด Firmware ให้กับบอร์ดโดยเปิดโปรแกรม kFlash GUI ทำการเลือก Board M5StickV และ Port ที่เชื่อมต่อให้เรียบร้อย จากนั้นเลือกไฟล์ Firmware (บทความนี้จะใช้ M5StickV_Firmware_1022_beta.kfpka) และทำการ Download ลงบอร์ดให้เรียบร้อย</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*hOepvCqdqdkMlxG4-Wzp7g.png" /></figure><p>2) เปิดโปรแกรม MaixPy IDE</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JXEBrS_aFQyMyCANtuKmVQ.png" /></figure><p>3) ดาวน์โหลด <a href="https://github.com/cmmakerclub/M5StickV-FaceRegconition">Example code &amp; Model</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jJL1of1Wps05tpLwl_fKJQ.png" /></figure><p>4) เปิดโปรแกรมตัวอย่างใน Folder /Example Code/m5stickV_find_face.py</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jPqiTGIjDD2YwrqhE7muAQ.png" /></figure><p>5) นำ Model ใส่ SD Card (บทความก่อนหน้าจะโหลดเข้า Flash แต่บทความนี้จะใช้ SD Card แทนทำให้ใส่โมเดลที่ใหญ่ขึ้นได้นะครับ) โดยสามารถใช้โมเดลตัวอย่างใน Folder /Model/Demo_Model</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/156/1*L_YOHbCarMyvrnxvxkisog.png" /></figure><p>6) ทำการเชื่อมต่อกับบอร์ด โดยกดที่รูปโซ่มุมล่างซ้าย</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AzVxBLt4nV12p3SB7JiwmA.png" /></figure><p>7) เมื่อเชื่อมต่อได้แล้ว สีของรูปโซ่จะเปลี่ยนเป็นสีแดง และจะปรากฏปุ่มเล่น สีเขียว เพื่อกดอัพโหลดโปรแกรมไปยังบอร์ด</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/66/1*0L4jffQvEaIEuM9yjkrxyw.png" /></figure><p>8) เมื่อกดปุ่มเล่น โปรแกรมจะทำการรันบนบอร์ด และผลลัพท์ที่ได้ก็คือ Face Recognition นั่นเอง โดยให้เปิดรูปใน Folder /Model/Demo_Model/imageTest</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lcdxwZLra1Jj6xm_HQPcDA.png" /></figure><p>9) เมื่อเปิด Serial Terminal จะปรากฏค่าที่ return มา ซึ่งประกอบไปด้วย<br>- x, y ตำแหน่งที่ตรวจเจอใบหน้า<br>- width, height ขนาดของกรอบที่วาด<br>- value ค่าความแม่นยำของใบหน้าที่ตรวจเจอ<br>- classid คลาสที่เจอ โมเดลตัวอย่างมีแค่ 2 คลาสคือ 0:man และ 1:tong<br>- index ลำดับของใบหน้าที่พบ<br>- objnum จำนวนของใบหน้าที่พบ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*WOB2fuyY2J7mRFAPkNQ_zQ.png" /></figure><p>10) จากข้อมูลที่ return ออกมา จะได้ตำแหน่งของใบหน้าที่ตรวจจับเจอ ดังนั้นทำให้บอร์ดสามารถตรวจจับใบหน้าเจอ และแยกระหว่างบุคคล 2 คนได้ (2 class) โดยผู้พัฒนาสามารถนำไปต่อยอดเป็นระบบลงชื่อเข้างาน เปิดปิดประตู หรือใช้ในการระบุตัวตนได้อีกด้วย</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5ohuVB5IXPq0jXNBXu5l5w.jpeg" /></figure><h3>สร้างโมเดลด้วยตนเอง</h3><p>1) รวมรวบรูปภาพเก็บไว้ใน Folder /Train_Model/data/images เพื่อใช้สำหรับสร้างโมเดล โดยรูปที่ใช้จะเป็นรูปของบุคคล 2 คน ซึ่งจะแบ่งเป็น 2 คลาส คือ man และ tong โดยโมเดลตัวอย่างที่ใช้ จะสร้างโมเดลด้วยรูป 100 รูป / คน</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uGLGVGjEYfWMNkrFwyb2tg.png" /></figure><p>2) เปิดโปรแกรม LabelImg เพื่อทำการสร้างเฉลยสำหรับการนำไปสร้างโมเดล</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/391/1*1u6TeA1BRXh6q4cJz0OJgA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*P_dgsN2b6r0uCFAVoQBcJA.png" /></figure><p>3) กด Open Dir และเลือก Folder /Train_Model/data/images จากนั้นเลือก Change Save Dir ไปที่ Folder /Train_Model/data/annotations</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*QxjcFg5GO_EUNaom1t4ZFw.png" /></figure><p>4) กด W ที่คีย์บอร์ด หรือคลิก Create\nRectBox เพื่อลากกรอบสี่เหลี่ยมเฉลยเฉย ๆ ใบหน้าที่ต้องการ และตั้งชื่อให้ตรงกับคลาสที่จะนำไปสร้างโมเดล</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QGBB-hbQPMvFN2up1JknnA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hvzzjfq27uul0E0MOS8fdg.png" /></figure><p>#กรณีมี 2 คนในรูปเดียวกัน สามารถเพื่อตั้งชื่อทั้ง 2 คลาส</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fcTwAlHqRS49wuQ12-jc3A.png" /></figure><p>5) ไฟล์เฉลยที่ได้ทั้งหมด จะเป็นไฟล์นามสกุล .xml ใน Folder /Train_Model/data/annotations</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*53e6BynfPiB8h1MPaL8VJQ.png" /></figure><p>6) แก้ไขไฟล์ Config.json ใน Folder /Train_Model/data แก้ไขโปรแกรมดังนี้<br>บรรทัดที่ 6 : labels ทำการเพิ่มคลาสที่ต้องการสร้างโมเดล<br>บรรทัดที่ 17 : train_image_folder เพิ่ม path ของไฟล์รูปที่จะนำไปสร้างโมเดล<br>บรรทัดที่ 18 : train_annot_folder เพิ่ม path ของไฟล์เฉลยที่จะนำไปสร้างโมเดล</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LCjQHaaaCY9ilNvQLMHS2Q.png" /></figure><p>7) ทำการ Setup envelopment ตาม requirements.txt โดยใช้ Anaconda navigator ในการช่วยติดตั้ง ซึ่งขั้นตอนนี้จะเป็นการเตรียมเครื่องคอมพิวเตอร์เพื่อให้สามารถ Train model ได้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/470/1*1e6YrNie3EygYz9xkgUkgw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u-FDa-UFjK0mApVlFIvUNQ.png" /></figure><p>8) เปิด Terminal ของ envelopment ที่สร้างไว้ จากนั้นสั่งสร้างโมเดล</p><p>$ <strong>python train.py -c data/config.json</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ce0OUYGyJ56rdloVQ53pyg.png" /></figure><p>9) เมื่อสร้างโมเดลเสร็จ จะปรากฏไฟล์ model.h5 และ model.tflite</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/265/1*5LJl9kvH_dzCDUyOhpMkcA.png" /></figure><h3>แปลงโมเดล tflite เป็น kmodel</h3><p>1) เปิด Terminal เข้าไปที่ Folder /Model/Convert_2_kmodel/<a href="https://github.com/sipeed/Maix_Toolbox">Maix_Toolbox</a> (โปรแกรมที่เตรียมไว้ใช้สำหรับเครื่อง Windows สำหรับ OS อื่นให้โหลดโปรแกรม <a href="https://github.com/kendryte/nncase/releases">nncase</a> ใหม่)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_11jcPigfIVDI_6DwnM_Tw.png" /></figure><p>2) แปลงโมเดลด้วยคำสั่ง</p><h4><strong>./tflite2kmodel.sh model.tflite</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d48ZA5Up90tZj2ij5_tcYw.png" /></figure><p>3) จะได้ไฟล์นามสกุล <strong>.kmodel</strong> เพื่อนำไปใช้งานต่อไป</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/137/1*WeVD1IA9i6mbFEzNjx7Jyg.png" /></figure><h3>วิดีโอตัวอย่างการใช้งาน</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FzhbRSjfukUU%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DzhbRSjfukUU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FzhbRSjfukUU%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/7d3b0d3ee6f472b361e0674be6d17681/href">https://medium.com/media/7d3b0d3ee6f472b361e0674be6d17681/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*8CIGyj788LR379wiXc_cEA.png" /></figure><p><strong>Chiang Mai Maker Club</strong><br>81/21–25 Prasing, Mueang, Chaing Mai, Thailand. 50200<br>FB: Chaing Mai Maker Club</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c10b985adac7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/chiang-mai-maker-club/%E0%B8%97%E0%B8%B3-face-recognition-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-m5stick-v-c10b985adac7">ทำ Face recognition ด้วย M5Stick-V</a> was originally published in <a href="https://medium.com/chiang-mai-maker-club">Chiang Mai Maker Club</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[สร้างรถบังคับง่าย ๆ ด้วยบอร์ด KidBright]]></title>
            <link>https://medium.com/chiang-mai-maker-club/%E0%B8%AA%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%87%E0%B8%A3%E0%B8%96%E0%B8%9A%E0%B8%B1%E0%B8%87%E0%B8%84%E0%B8%B1%E0%B8%9A%E0%B8%87%E0%B9%88%E0%B8%B2%E0%B8%A2-%E0%B9%86-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2%E0%B8%9A%E0%B8%AD%E0%B8%A3%E0%B9%8C%E0%B8%94-kidbright-370a5a43fdc3?source=rss-494f81229938------2</link>
            <guid isPermaLink="false">https://medium.com/p/370a5a43fdc3</guid>
            <category><![CDATA[kbide]]></category>
            <category><![CDATA[esp32]]></category>
            <category><![CDATA[rc-toy]]></category>
            <category><![CDATA[kidbright]]></category>
            <dc:creator><![CDATA[Apirak Sang-ngenchai]]></dc:creator>
            <pubDate>Fri, 13 Dec 2019 06:38:35 GMT</pubDate>
            <atom:updated>2019-12-13T06:46:15.363Z</atom:updated>
            <content:encoded><![CDATA[<p>D.I.Y. RC car with Kidbright board</p><blockquote>ความฝันของเด็กผู้ชาย คงจะหนีไม่พ้นการมีรถบังคับเท่ ๆ เอาไว้อวดเพื่อน</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NY3mKSHo1Gbmc5VOEIyqBQ.jpeg" /></figure><blockquote>เมื่อเราโตขึ้น ความฝันนั้น บางคนอาจจะเป็นจริง แต่สำหรับบางคนยังเป็นเรื่องที่ต้องใช้ความพยายามเป็นอย่างมาก เพื่อที่จะได้ครอบครองรถในฝัน ถึงอย่างนั้น เรามาเริ่มสร้างมันไปพร้อม ๆ กันเถอะ</blockquote><h4>อุปกรณ์ที่ใช้ q(- -)p</h4><ul><li>รถบังคับ คลื่น 23 MHz หรือ 40Mhz ราคาไม่เกิน 200 บาท (ไม่ต้องใช้รีโมตเดิม)</li><li>บอร์ด KidBright (โรงเรียนไหนที่ได้รับบอร์ด ให้ไปยืมจากอาจารย์ นะจ๊ะ)</li><li><a href="https://www.ttkmicro.com/product/20/mortor-driver-2-way-2-10-v-1-5-a">บอร์ดไดร์มอเตอร์ (Motor Driver 2 Way 2–10 V 1.5 A)</a> ราคาประมาณ 40 บาท</li><li>แบตเตอรี่ AA จำนวน 4 ก้อน ราคาประมาณ 50 บาท</li><li>แอปพลิเคชั่นควบคุม พัฒนาโดย MakerAsia Co., Ltd.</li></ul><h4>&gt;&gt;&gt; ต้นทุนทั้งหมด 290 บาท &lt;&lt;&lt;</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*sMOZBqYyhQwTiDRg9fkP7Q.png" /></figure><h4>ลงมือทำกันเล้ยยย (^^)/</h4><ul><li>ขั้นตอนแรกต้องไปซื้อรถบังคับมาก่อนนาจา</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FcsoK3Kq0WhlCH1QQ6dFCA.jpeg" /></figure><ul><li>มาแกะรถบังคับกันเถอะ อุปกรณ์ที่ใช้จะประกอบไปด้วย</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*6Y9BHHg2Rcx6-aRtgL5YzA.png" /></figure><ul><li>ใช้ไขควงแกะน๊อตด้านล่างของรถบังคับ เพื่อแกะโครงรถออก</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*tjXXhy0SBKEGiea7vI7LtQ.png" /></figure><ul><li>แกะฝาด้านบนออก</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*Q-mVgwQLF7prp1BgWHCusw.png" /></figure><ul><li>บัดกรีสายไฟออกจากวงจร</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oygpX_nk07qamfZ6b8AYBg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JdzVT5pr99JVUBNoLnBc6g.png" /></figure><ul><li>ประกอบวงจรไดร์มอเตอร์เข้ากับบอร์ด KidBright</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BJuNjRpWSvJN97HhJF-KfQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U5L7e8mE5j6VMj3Q51TzWQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/1*FsS2j-0aCDYIm9oteWqQaw.png" /></figure><ul><li>บัดกรีมอเตอร์เลี้ยวด้านหน้า เข้ากับขา MOTOR-B ของไดร์มอเตอร์</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mYOIRs8PSSBM314ItLfhqg.png" /></figure><ul><li>บัดกรีมอเตอร์ขับเคลื่อนด้านหลังเข้ากับ MOTOR-A ของไดร์มอเตอร์</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YCtuNF0dFLR4H_dDSkx4Lg.png" /></figure><ul><li>บัดกรีสายไฟจากสวิตซ์เข้ากับแหล่งจ่ายของไดร์มอเตอร์</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rjxqpnDFgSPpsRK0Y5qIFg.png" /></figure><ul><li>ใช้ปืนกาว ติดบอร์ด KidBright บนรถให้เรียบร้อย</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s2IzEHFeqq5QFKvRk8w22g.jpeg" /></figure><ul><li>เรียบร้อย ขั้นตอนต่อไปมาเขียนโปรแกรมกันเล้ยยยย</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iJFAgxlJOSiiffUXfWPlMw.jpeg" /></figure><h4>เขียนโปรแกรม KidBright ด้วย KB IDE</h4><ul><li><a href="https://medium.com/chiang-mai-maker-club/%E0%B9%80%E0%B8%A3%E0%B8%B4%E0%B9%88%E0%B8%A1%E0%B8%95%E0%B9%89%E0%B8%99%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B8%87%E0%B8%B2%E0%B8%99-kb-ide-%E0%B8%9A%E0%B8%99-windows-ae950d6cdcf1">ติดตั้งโปรแกรม KB IDE</a> (<a href="http://www.kbide.org/">www.kbide.org</a>)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Z15OpjmhlAAbv9_k8K_6Q.jpeg" /></figure><ul><li>เปิดโปรแกรม KB IDE</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cg29Jq0ds-UPtd3fW27dhg.png" /></figure><ul><li>เมนู Plugin Manager ติดตั้ง CMMC Remote และ L298 plugin</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*crejTC-8IvRC6SrRUW-vng.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fP_owqyXv3TVJdw25U3nkg.jpeg" /></figure><ul><li>ลากบล็อกโปรแกรมดังภาพ</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bVKrRIk2mjCBtadG3SwPEQ.jpeg" /></figure><p>หรือเลือกเมนู Examples &amp; Tutorials → Plugin Examples → 02-DIYCar</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y908iHj1Vccz7Ipanlfrtg.png" /></figure><ul><li>แก้ไขชื่อไวไฟ และพาสเวิร์ดสำหรับเชื่อมต่อกับบอร์ด</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*VMGoGBcycyPA6VYcg3ELyA.png" /></figure><ul><li>อัพโหลดโปรแกรมเข้าบอร์ด KidBright จากนั้นติดตั้ง CMMC Remote Application (เปิดให้ใช้งานฟรี เพื่อการศึกษาเท่านั้น)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/447/1*uissxzOXEeAqW7dWHUb-TA.png" /></figure><ul><li>เมื่อติดตั้ง Application เรียบร้อยแล้ว เชื่อมต่อไวไฟเข้ากับบอร์ด KidBright ตามชื่อที่ได้ตั้งเอาไว้</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*I0puSVXEI0AxVTnbQprDmg.jpeg" /></figure><ul><li>เปิดแอปพลิเคชัน CMMC Remote</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RBR2Rohp6VpGLS6y2xl7Rg.png" /></figure><ul><li>ทดสอบควบคุมรถด้วยแอปพลิเคชั่น</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FrUqQoMgSjrk%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DrUqQoMgSjrk&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FrUqQoMgSjrk%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/23739fcc750b9f7217cfced81ef45d94/href">https://medium.com/media/23739fcc750b9f7217cfced81ef45d94/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*qtWo-1w5vo4wfqt1nz0Zmg.png" /></figure><p><strong>ติดตามข่าวสารอื่น ๆ</strong><br><a href="https://www.facebook.com/kbide.org/?ref=br_rs">FB page: KBIDE</a><br><a href="http://www.kbide.org/">Website: www.kbide.org</a><br><a href="https://thai-maker.com/">สั่งซื้อบอร์ด ESP32 : https://thai-maker.com</a><br><a href="https://www.facebook.com/ChiangMaiMakerClub/">ติดตามบทความใหม่ ๆ : FB page Chiang Mai Maker Club</a><br><a href="https://www.facebook.com/groups/ChiangMaiMakerClub/">กลุ่มพูดคุย และปรึกษา : FB Group Chiang Mai Maker Club</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=370a5a43fdc3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/chiang-mai-maker-club/%E0%B8%AA%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%87%E0%B8%A3%E0%B8%96%E0%B8%9A%E0%B8%B1%E0%B8%87%E0%B8%84%E0%B8%B1%E0%B8%9A%E0%B8%87%E0%B9%88%E0%B8%B2%E0%B8%A2-%E0%B9%86-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2%E0%B8%9A%E0%B8%AD%E0%B8%A3%E0%B9%8C%E0%B8%94-kidbright-370a5a43fdc3">สร้างรถบังคับง่าย ๆ ด้วยบอร์ด KidBright</a> was originally published in <a href="https://medium.com/chiang-mai-maker-club">Chiang Mai Maker Club</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[KB-IDE ปรับใหม่ จัดใหญ่กว่าเดิม]]></title>
            <link>https://medium.com/chiang-mai-maker-club/kb-ide-%E0%B8%9B%E0%B8%A3%E0%B8%B1%E0%B8%9A%E0%B9%83%E0%B8%AB%E0%B8%A1%E0%B9%88-%E0%B8%88%E0%B8%B1%E0%B8%94%E0%B9%83%E0%B8%AB%E0%B8%8D%E0%B9%88%E0%B8%81%E0%B8%A7%E0%B9%88%E0%B8%B2%E0%B9%80%E0%B8%94%E0%B8%B4%E0%B8%A1-9511a37b88ef?source=rss-494f81229938------2</link>
            <guid isPermaLink="false">https://medium.com/p/9511a37b88ef</guid>
            <dc:creator><![CDATA[Apirak Sang-ngenchai]]></dc:creator>
            <pubDate>Tue, 15 Oct 2019 04:55:18 GMT</pubDate>
            <atom:updated>2019-10-15T05:17:53.413Z</atom:updated>
            <content:encoded><![CDATA[<h3>KB-IDE v1.1.0 ปรับใหม่ จัดใหญ่กว่าเดิม</h3><p>KB-IDE v1.1.0 change log and bug fix</p><blockquote><a href="https://github.com/MakerAsia/KBProIDE/releases"><strong>Now Opening KB-IDE V1.1.0</strong></a></blockquote><p>KB-IDE แพลตฟอร์มการเขียนโปรแกรมสัญชาติไทย ที่ได้รวมการเขียนโปรแกรมแบบ Block programming และ Text programming เพื่อให้นักพัฒนา และผู้เริ่มต้นศึกษาได้เขียนโปรแกรม สามารถใช้งานได้สะดวก ง่าย และมีกลุ่มผู้ใช้งานภายในประเทศไทยเป็นจำนวนมาก ทำให้การเริ่มต้นการเขียนโปรแกรมในปัจจุบัน สามารถเริ่มต้นเองได้ง่าย ๆ ที่บ้านของท่านเอง</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ovh8LI34ymvQZ9VR67-cFg.jpeg" /></figure><h3>KB-IDE V1.1.0 มีอะไรปรับใหม่บ้าง ?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J7XJfmFIoUunhEGs65S6-w.png" /></figure><p><strong>Change log</strong></p><ul><li>เปลี่ยนรูปแบบการ แปลงโปรแกรม จากเดิม เมื่อลากบล็อกไว้แล้วสลับไปเขียนโค้ด จะแปลงโค้ดให้อัตโนมัติ สำหรับเวอร์ชั่นนี้จะต้องกดปุ่ม New File เพื่อเลือกให้โปรแกรมแปลงบล็อกโปรแกรมหรือไม่</li><li>เพิ่มข้อความ “Loading” หน้าแรกของโปรแกรมขณะกำลังเปิด</li><li>รองรับโมดูลกล้องในอนาคต</li><li>ปรับ Board Manager ใหม่ ทั้งรูปภาพ สี ฟ้อน และการค้นหาแบบแนะนำ ชื่อ แพลตฟอร์ม และผู้จัดจำหนาย</li><li>ปรับ Plugin Manager ใหม่ ให้สามารถเพิ่มปลั๊กอินได้มากขึ้น เลือกการค้นหาแบบต่าง ๆ เช่น ค้นหาด้วยชื่อ ความนิยม หรือแนะนำ</li><li>แก้ไขฟ้อน และสีของโปรแกรม</li><li>เมื่อเปิด Dual-Mode จะปรากฏปุ่ม RAW CODE สามารถเลือกแสดงโปรแกรมทั้งหมดที่เพิ่มเข้าไป หรือแสดงเฉพาะโปรแกรมที่ลากบล็อกวาง</li><li>เพิ่ม Auto format ใน Text-based programming mode</li><li>เพิ่มหน้าต่างแสดงการ Compile โปรแกรม ใน Text-based programming mode</li><li>แก้ไขบล็อก และตั้งค่าอื่น ๆ ให้ใช้งานง่ายยิ่งขึ้น</li><li>การอัพโหลดบอร์ดไปยัง IDE จะถูกตรวจสอบโดยทีมผู้พัฒนา เพื่อให้มีรูปแบบที่ตรงกัน และไม่ก่อให้เกิดปัญหาในภายภาคหน้า</li></ul><p><strong>Bug fix</strong></p><ul><li>แก้ปัญหาไอคอน และการใช้งานที่ผิดพลาด</li><li>แก้ปัญหาไม่สามารถอัพเดท Plugin</li><li>แก้ไขแถบเมนูใหม่ จัดลำดับ และเรียงตามไฟล์ config.json</li><li>แก้ไขให้สามารถเพิ่ม markdown file ใน Example code ของ Plugin ได้</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*16XZFMMO_lGJ4X7ZDqazFg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mJld7rjp1HeBDUruYi9cWA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nWGRxJjMV5M_lQLCxHzdDQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*aQgYQwvVL8Oz6jPG4bI7OA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9m1fsWZnEGkyiixdtmq9Fg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xzcXE_lKmqYpnEmxhQ53iA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QTIGL75kFJKh1v1Pf90yyg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*qtWo-1w5vo4wfqt1nz0Zmg.png" /></figure><p><strong>ติดตามข่าวสารอื่น ๆ</strong><br><a href="https://www.facebook.com/kbide.org/?ref=br_rs">FB page: KBIDE</a><br><a href="http://www.kbide.org/">Website: www.kbide.org</a><br><a href="https://thai-maker.com/">สั่งซื้อบอร์ด ESP32 : https://thai-maker.com</a><br><a href="https://www.facebook.com/ChiangMaiMakerClub/">ติดตามบทความใหม่ ๆ : FB page Chiang Mai Maker Club</a><br><a href="https://www.facebook.com/groups/ChiangMaiMakerClub/">กลุ่มพูดคุย และปรึกษา : FB Group Chiang Mai Maker Club</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9511a37b88ef" width="1" height="1" alt=""><hr><p><a href="https://medium.com/chiang-mai-maker-club/kb-ide-%E0%B8%9B%E0%B8%A3%E0%B8%B1%E0%B8%9A%E0%B9%83%E0%B8%AB%E0%B8%A1%E0%B9%88-%E0%B8%88%E0%B8%B1%E0%B8%94%E0%B9%83%E0%B8%AB%E0%B8%8D%E0%B9%88%E0%B8%81%E0%B8%A7%E0%B9%88%E0%B8%B2%E0%B9%80%E0%B8%94%E0%B8%B4%E0%B8%A1-9511a37b88ef">KB-IDE ปรับใหม่ จัดใหญ่กว่าเดิม</a> was originally published in <a href="https://medium.com/chiang-mai-maker-club">Chiang Mai Maker Club</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ทำ Face Detection ง่าย ๆ ด้วย Sipeed Maix board]]></title>
            <link>https://medium.com/chiang-mai-maker-club/%E0%B8%97%E0%B8%B3-face-detection-%E0%B8%87%E0%B9%88%E0%B8%B2%E0%B8%A2-%E0%B9%86-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-sipeed-maix-board-a135f5a57af9?source=rss-494f81229938------2</link>
            <guid isPermaLink="false">https://medium.com/p/a135f5a57af9</guid>
            <category><![CDATA[maixpy]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[sipeed]]></category>
            <dc:creator><![CDATA[Apirak Sang-ngenchai]]></dc:creator>
            <pubDate>Sun, 13 Oct 2019 07:44:09 GMT</pubDate>
            <atom:updated>2019-10-13T09:54:41.538Z</atom:updated>
            <content:encoded><![CDATA[<p>Face Detection with sipeed maix board</p><h3><strong>1st RV64 AI board for Edge Computing</strong></h3><p>จั่วหัวมาซะแรง แต่ของเค้าก็แรงจริง ๆ กับบอร์ดที่ใช้สถาปัตยกรรมแบบ RISC-V 64 bit IMAFDC แบบ dual-core โดยใช้ขุมพลังของ Kendryte K210 ซึ่งมี KPU (หน่วยประมวลผล neural network) ภายในขนาด 64 KPU ( 576bit) ที่ 230GOPs ความถี่ 400MHz และ SRAM ความเร็วสูงสุด 8MB ด้วยความสามารถหลายประการไม่ว่าจะเป็นขนาดของบอร์ดที่เล็ก กินพลังงานเพียง 0.5W รองรับการใช้งาน AI (AIoT)โดยสนนราคาเพียง $12 (300+ บาท ราคาเฉพาะชิปนะแจ๊ะ) บอกได้คำเดียวว่า “โอ้ ม่าย รอด”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qvcvl05pndfIfSZb8c-ZcA.jpeg" /><figcaption><a href="https://th.mouser.com/new/seeed-studio/seeed-studio-m1w-dock-suit-dev-board/">https://th.mouser.com/new/seeed-studio/seeed-studio-m1w-dock-suit-dev-board/</a></figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fvideoseries%3Flist%3DPLv0yTDAlHNxa4ndTOXK_U_8Jy61_36c9C&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DBJTTjiWc0MQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FBJTTjiWc0MQ%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/355c565db63c5ec06cfb7d91c82c77c8/href">https://medium.com/media/355c565db63c5ec06cfb7d91c82c77c8/href</a></iframe><p>โดยในบทความนี้ ผมจะขอเลือกใช้บอร์ด Sipeed M1w dock suit ที่มาพร้อมกับขอแสดงผลแบบ LCD 2.4 inch ( 320x240) และกล้อง OV2640 ที่คามละเอียด 2Mpixel โดยมีขาใช้งาน (GPIO) ทั้งหมด 48 ขาใช้งาน สามารถเชื่อมต่อกับไวไฟได้ผ่าน ESP8285 ทั้งนี้ตัวบอร์ด ยังรองรับการใช้งาน AI ต่าง ๆ ไม่ว่าจะเป็น Face Detection, Object Recognition และการทำ Neural Network</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/1*5EyqbbOc_dTg9jxfLfKasw.png" /><figcaption><a href="https://www.seeedstudio.com/Sipeed-M1-dock-suit-M1-dock-2-4-inch-LCD-OV2640-K210-Dev-Board-1st-RV64-AI-board-for-Edge-Computing.html">https://www.seeedstudio.com/Sipeed-M1-dock-suit-M1-dock-2-4-inch-LCD-OV2640-K210-Dev-Board-1st-RV64-AI-board-for-Edge-Computing.html</a></figcaption></figure><p>ตัดมาช่วงโฆษณา อยากได้แบบพร้อมใช้อะ ซื้อที่ไหนได้บ้าง<br>- <a href="https://www.thaieasyelec.com/sipeed-m1w-dock-suit-k210-dev-board.html">Thaieasyelec</a><br>- <a href="https://www.gravitechthai.com/search.php?s=sipeed">Gravitechthai</a><br>- <a href="https://www.seeedstudio.com/Sipeed-M1-dock-suit-M1-dock-2-4-inch-LCD-OV2640-K210-Dev-Board-1st-RV64-AI-board-for-Edge-Computing.html">SeeedStudio</a></p><p>เอาละ ในเมื่อได้บอร์ดกันมาแล้ว ไม่พูดพร่ำทำเพลง มาเริ่มเล่นเจ้า Sipeed M1w dock กัน โดยเจ้าบอร์ดนี้สามารถใช้ Arduino IDE เขียนได้ด้วยนะเออ แต่ในบทความนี้จะขอไม่พูดถึง เราจะไปใช้ micropython กัน โดยลงโปรแกรมดังต่อไปนี้</p><ol><li><a href="http://dl.sipeed.com/MAIX/MaixPy/ide/v0.2.3/maixpy-ide-windows-0.2.3-installer-archive.7z">MaixPy IDE for windows</a></li><li><a href="http://dl.cdn.sipeed.com/kflash_gui_v1.5_windows.7z">kFlash GUI</a></li><li><a href="http://dl.sipeed.com/MAIX/MaixPy/release/maixpy_v0.3.2/maixpy_v0.3.2_full.bin">Firmware</a></li><li><a href="http://dl.sipeed.com/MAIX/MaixPy/release/maixpy_v0.3.2/face_model_at_0x300000.kfpkg">Face Detection model</a></li><li><a href="https://github.com/sipeed/MaixPy_scripts">Example Code</a></li></ol><h3><strong>เริ่มต้นอัพเดทโปรแกรม</strong></h3><p>1) เปิดโปรแกรม kFlash GUI ทำการเลือก Board และ Port ที่เชื่อมต่อให้เรียบร้อย จากนั้น เลือกไฟล์ Firmware (บทความนี้จะใช้ maixpy_v0.3.2_full.bin) และไฟล์ Face Detection model (face.kmodel) โดยเลือกที่ตำแหน่งของ Flash 0x300000</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*YXyG5nKf4nlrYRkxIYxWLQ.png" /></figure><p>2) หน้าแรกของบอร์ด จะขึ้นประมาณนี้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iJRizbSwShQanlG6G5sQnA.jpeg" /></figure><p>3) เปิดโปรแกรม MaixPy IDE (แนะนำเวอร์ชั่น 0.2.3)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JXEBrS_aFQyMyCANtuKmVQ.png" /></figure><p>4) ดาวน์โหลด <a href="https://github.com/sipeed/MaixPy_scripts">Example Code</a> จากนั้นนำไปวางใน Folder MaixPyIDE ใน Documents</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/354/1*zPczEotc6m8e4MKj-yBM1A.png" /></figure><p>5) ในแถบเครื่องมือ IDE จะปรากฏโปรแกรมตัวอย่าง ให้เลือก machine_vision → demo_find_face.py</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_6lwg6EHaYzWoqXr_N7dDQ.png" /></figure><p>6) แสดงหน้าตาโปรแกรม ทำการเชื่อมต่อกับบอร์ด โดยกดที่รูปโซ่มุมล่างซ้าย</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AzVxBLt4nV12p3SB7JiwmA.png" /></figure><p>7) เมื่อเชื่อมต่อได้แล้ว สีของรูปโซ่จะเปลี่ยนเป็นสีแดง และจะปรากฏปุ่มเล่น สีเขียว เพื่อกดอัพโหลดโปรแกรมไปยังบอร์ด</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/66/1*0L4jffQvEaIEuM9yjkrxyw.png" /></figure><p>8) เมื่อกดปุ่มเล่น โปรแกรมจะทำการรันบนบอร์ด M1 dock ผลลัพท์ที่ได้ก็คือ Face Detection นั้นเอง</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rOO38ehc06kMqg3yBuzBqw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WjcnDS7iPUe8djrxbUliyA.png" /></figure><p>9) เมื่อเปิด Serial Terminal จะปรากฏตำแหน่งที่ return มาจากไลบรารี่</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d5tslRELgHcl5FYGjBJ-og.png" /></figure><p>10) จากข้อมูลที่ return ออกมา เราจะได้ตำแหน่งของใบหน้าที่ตรวจจับเจอ ดังนั้น เราสามารถเขียนโปรแกรมเพื่อบอร์ดสามารถทำงานเมื่อเจอใบหน้า หรือใบหน้าอยู่ในตำแหน่งใด ๆ ให้หมุนหุ่นยนต์ติดตามใบหน้าได้นั่นเอง</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Ftam1MX4iahA%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dtam1MX4iahA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Ftam1MX4iahA%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ea35c39d12020997f52a4659f55d0023/href">https://medium.com/media/ea35c39d12020997f52a4659f55d0023/href</a></iframe><h3>สรุป</h3><p>หลังจากลองเล่นเจ้า Sipeed M1w dock มาได้ซักระยะ จะเห็นได้ว่าบอร์ดมีขนาดเล็ก และสามารถนำไปใช้ทำงานในส่วนของ AI หรือ AIoT ซึ่งด้วยความจุของ Flash ภายในอาจจะไม่สามารถเขียน AI ที่ใช้ Hidden node เยอะ ๆ ก็ตาม แต่เดี๋ยวก่อน ตัวบอร์ดเองยังสามารถเสียบ SD card Class 10 เพิ่มเข้าไปได้อีกด้วย นั่นหมายความว่า เราสามารถนำ model ที่ Train จาก IDE เรียบร้อยแล้ว เอาไปใส่ใน SD card ได้ด้วยนั่นเอง</p><p>ส่วนตัวผมยังไม่ค่อยเก่งเรื่อง AI มากนั้น อาจจะอธิบายได้ไม่กระจ่าง ต้องขออภัยมา ณ ที่นี้ด้วยครับ หรือผิดพลาดประการใด สามารถติดต่อ ชี้แนะ เพื่อทำการแก้ไขได้เลยครับ หลังจากนั้น จะลองไปเล่นพวก Example และการ Train model ต่าง ๆ มาให้เพื่อน ๆ ได้ลองเล่นกันอีกในภายภาคหน้า ส่วนวันนี้ ขอตัวก่อน Happy Coding ครับ</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a135f5a57af9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/chiang-mai-maker-club/%E0%B8%97%E0%B8%B3-face-detection-%E0%B8%87%E0%B9%88%E0%B8%B2%E0%B8%A2-%E0%B9%86-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-sipeed-maix-board-a135f5a57af9">ทำ Face Detection ง่าย ๆ ด้วย Sipeed Maix board</a> was originally published in <a href="https://medium.com/chiang-mai-maker-club">Chiang Mai Maker Club</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[KB-IDE [EP12]: มาสร้างรถบังคับ ด้วย KidBright กันเถอะ]]></title>
            <link>https://medium.com/chiang-mai-maker-club/kb-ide-ep12-%E0%B8%A1%E0%B8%B2%E0%B8%AA%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%87%E0%B8%A3%E0%B8%96%E0%B8%9A%E0%B8%B1%E0%B8%87%E0%B8%84%E0%B8%B1%E0%B8%9A-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-kidbright-%E0%B8%81%E0%B8%B1%E0%B8%99%E0%B9%80%E0%B8%96%E0%B8%AD%E0%B8%B0-16941a83cb8f?source=rss-494f81229938------2</link>
            <guid isPermaLink="false">https://medium.com/p/16941a83cb8f</guid>
            <category><![CDATA[robots]]></category>
            <category><![CDATA[espnow]]></category>
            <category><![CDATA[kbide]]></category>
            <category><![CDATA[esp32]]></category>
            <category><![CDATA[ide]]></category>
            <dc:creator><![CDATA[Apirak Sang-ngenchai]]></dc:creator>
            <pubDate>Wed, 02 Oct 2019 03:08:43 GMT</pubDate>
            <atom:updated>2019-10-02T03:08:43.302Z</atom:updated>
            <content:encoded><![CDATA[<p>How to make a robot car using kidbright board (esp32 board)</p><h3>Content</h3><p><a href="https://medium.com/chiang-mai-maker-club/%E0%B9%80%E0%B8%A3%E0%B8%B4%E0%B9%88%E0%B8%A1%E0%B8%95%E0%B9%89%E0%B8%99%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B8%87%E0%B8%B2%E0%B8%99-kb-ide-%E0%B8%9A%E0%B8%99-windows-ae950d6cdcf1">KB-IDE [EP1]: เริ่มต้นใช้งาน KB-IDE บน Windows</a><br><a href="https://medium.com/chiang-mai-maker-club/kb-ide-ep2-kb-ide-%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B8%81%E0%B8%B1%E0%B8%9A%E0%B8%9A%E0%B8%AD%E0%B8%A3%E0%B9%8C%E0%B8%94%E0%B9%84%E0%B8%AB%E0%B8%99%E0%B9%84%E0%B8%94%E0%B9%89%E0%B8%9A%E0%B9%89%E0%B8%B2%E0%B8%87-42ed078002e6">KB-IDE [EP2]: KB-IDE ใช้กับบอร์ดไหนได้บ้าง ?</a><br><a href="https://medium.com/chiang-mai-maker-club/kb-ide-ep3-%E0%B8%9E%E0%B8%B2%E0%B8%97%E0%B8%B1%E0%B8%A7%E0%B8%A3%E0%B9%8C-kb-ide-%E0%B8%A1%E0%B8%B5%E0%B8%AD%E0%B8%B0%E0%B9%84%E0%B8%A3%E0%B8%8B%E0%B9%88%E0%B8%AD%E0%B8%99%E0%B8%AD%E0%B8%A2%E0%B8%B9%E0%B9%88%E0%B8%99%E0%B8%AD%E0%B8%81%E0%B8%88%E0%B8%B2%E0%B8%81%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%A5%E0%B8%B2%E0%B8%81-block-fc89eff024a1">KB-IDE [EP3]: พาทัวร์ KB-IDE มีอะไรซ่อนอยู่นอกจากการลาก Block</a><br><a href="https://medium.com/chiang-mai-maker-club/kb-ide-ep4-%E0%B8%97%E0%B8%94%E0%B8%A5%E0%B8%AD%E0%B8%87%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B8%87%E0%B8%B2%E0%B8%99-gpio-%E0%B8%82%E0%B8%AD%E0%B8%87%E0%B8%9A%E0%B8%AD%E0%B8%A3%E0%B9%8C%E0%B8%94-esp32-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-kb-ide-78996a4e9cc8">KB-IDE [EP4]: ทดลองใช้งาน GPIO ของบอร์ด ESP32 ด้วย KB-IDE</a><br><a href="https://medium.com/chiang-mai-maker-club/kb-ide-ep5-%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%AD%E0%B9%88%E0%B8%B2%E0%B8%99%E0%B8%84%E0%B9%88%E0%B8%B2%E0%B8%84%E0%B8%A7%E0%B8%B2%E0%B8%A1%E0%B8%AA%E0%B8%A7%E0%B9%88%E0%B8%B2%E0%B8%87%E0%B9%82%E0%B8%94%E0%B8%A2-kb-ide-%E0%B8%9C%E0%B9%88%E0%B8%B2%E0%B8%99-serial-monitor-6c1329b50383">KB-IDE [EP5]: การอ่านค่าความสว่างแสดงผลผ่าน Serial Monitor</a><br><a href="https://medium.com/chiang-mai-maker-club/kb-ide-ep7-%E0%B8%A7%E0%B8%B1%E0%B8%94%E0%B8%A3%E0%B8%B0%E0%B8%A2%E0%B8%B0%E0%B8%97%E0%B8%B2%E0%B8%87%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2%E0%B9%80%E0%B8%8B%E0%B9%87%E0%B8%99%E0%B9%80%E0%B8%8B%E0%B8%AD%E0%B8%A3%E0%B9%8C%E0%B9%80%E0%B8%AA%E0%B8%B5%E0%B8%A2%E0%B8%87%E0%B8%AA%E0%B8%B0%E0%B8%97%E0%B9%89%E0%B8%AD%E0%B8%99-ultrasonic-e151debaea2f">KB-IDE [EP6]: วัดระยะทางด้วยเซ็นเซอร์เสียงสะท้อน Ultrasonic</a><br><a href="https://medium.com/chiang-mai-maker-club/kb-ide-ep7-%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B9%81%E0%B8%AA%E0%B8%94%E0%B8%87%E0%B8%9C%E0%B8%A5%E0%B8%82%E0%B9%89%E0%B8%AD%E0%B8%A1%E0%B8%B9%E0%B8%A5%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2%E0%B8%88%E0%B8%AD-lcd-4d0d0a01198b">KB-IDE [EP7]: การแสดงผลข้อมูลด้วยจอ LCD</a><br><a href="https://medium.com/chiang-mai-maker-club/kb-ide-ep8-%E0%B9%80%E0%B8%8B%E0%B9%87%E0%B8%99%E0%B9%80%E0%B8%8B%E0%B8%AD%E0%B8%A3%E0%B9%8C%E0%B8%A7%E0%B8%B1%E0%B8%94%E0%B8%AD%E0%B8%B8%E0%B8%93%E0%B8%AB%E0%B8%A0%E0%B8%B9%E0%B8%A1%E0%B8%B4-%E0%B9%81%E0%B8%A5%E0%B8%B0%E0%B8%84%E0%B8%A7%E0%B8%B2%E0%B8%A1%E0%B8%8A%E0%B8%B7%E0%B9%89%E0%B8%99-6b7dbb312114">KB-IDE [EP8]: เซ็นเซอร์วัดอุณหภูมิ และความชื้น</a><br><a href="https://medium.com/chiang-mai-maker-club/kb-ide-ep9-%E0%B8%88%E0%B8%AD%E0%B9%81%E0%B8%AA%E0%B8%94%E0%B8%87%E0%B8%9C%E0%B8%A5-oled-9599b0d65d8a">KB-IDE [EP9]: จอแสดงผล OLED</a><br><a href="https://medium.com/chiang-mai-maker-club/kb-ide-ep10-%E0%B8%97%E0%B8%B3%E0%B8%AD%E0%B8%B8%E0%B8%9B%E0%B8%81%E0%B8%A3%E0%B8%93%E0%B9%8C-iot-%E0%B8%87%E0%B9%88%E0%B8%B2%E0%B8%A2-%E0%B9%86-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-blynk-application-a2ca655073af">KB-IDE [EP10]: ทำอุปกรณ์ IoT ง่าย ๆ ด้วย Blynk application</a><br><a href="https://medium.com/chiang-mai-maker-club/kb-ide-ep11-%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%AA%E0%B9%88%E0%B8%87%E0%B8%82%E0%B9%89%E0%B8%AD%E0%B8%A1%E0%B8%B9%E0%B8%A5%E0%B9%84%E0%B8%9B%E0%B8%A2%E0%B8%B1%E0%B8%87-cloudmqtt-65ff75da09">KB-IDE [EP11]: การส่งข้อมูลไปยัง CloudMQTT</a></p><p><strong>รถบังคับ </strong>หรือ Car RC toy (Radio controlled toys) หมายความว่ารถของเล่นที่ถูกบังคับด้วยวิทยุ RC ในที่นี้ ไม่ได้หมายถึงของเล่นสำหรับเด็กเล็ก คำว่า RC ในบทความนี้ จะหมายถึง RC Hobby คือผู้เล่นสามารถใช้ความคิดสร้างสรรค์ประดิษฐ์ ดัดแปลง ปรับแต่งให้กับอุปกรณ์ที่ตนเองควบคุม สามารถทำได้โดยไร้ขีดจำกัด</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MX5JsHwKWWRCGKj9S4rWKw.jpeg" /></figure><p><strong>ไดร์มอเตอร์</strong> หรือวงจรขับมอเตอร์ ในที่นี้จะกล่าวถึงไดร์มอเตอร์กระแสตรงเบอร์ L298 ซึ่งวางขายตามท้องตลาด โดยจะใช้การทำงานแบบ H-Bridge คือสามารถควบคุมความเร็ว และทิศทางการหมุนของมอเตอร์ (ในบทความนี้จะไม่อธิบายวงจรการทำงานของ H-Bridge)โดยโมดูล L298 สามารถควบคุมความเร็วของมอเตอร์ด้วย PWM (Pulse Width Modulation) ที่ขา ENA สำหรับ Motor A และขา ENB สำหรับ Motor B โดยการควบคุมทิศทาง สามารถควบคุมที่ขา IN1-IN4</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/483/1*UkCC4pahKD2nnUEsApkbUw.png" /></figure><p><strong>มอเตอร์ไฟฟ้ากระแสตรง</strong> หรือที่รู้จักกันในชื่อ ดีซีมอเตอร์ หลักการทำงานอาศัยการเปลี่ยนแปลงไฟฟ้า เป็นพลังงานกล โดยการเหนี่ยวนำแม่เหล็กไฟฟ้าระหว่างขดลวดตัวนำ และแม่เหล็กถาวร โดยในบทความนี้จะใช้มอเตอร์ดีซีที่มีอัตราทดที่ 1:48 หมายความว่า มอเตอร์หมุน 48 รอบ แกนมอเตอร์ถึงจะหมุน 1 รอบ ดังนั้นมอเตอร์ 1:48 จึงหมุนได้เร็วกว่ามอเตอร์ 1:120 แต่ในขณะเดียวกันมอเตอร์ 1:120 ก็มีแรงบิดกว่ามอเตอร์ 1:48</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/1*kQDu5tFfT0z05lbLIfoM6w.png" /></figure><p><strong>การสร้างรถบังคับด้วยตนเอง (D.I.Y. Robot car) ด้วยบอร์ด ESP32</strong> ในบทความนี้จะใช้บอร์ด KidBright 2 บอร์ดในการติดต่อสื่อสารกัน โดยบอร์ด Master จะให้เป็น remote สำหรับควบคุมบอร์ด Slave ที่จะเป็นตัวรถ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fV2rcyF8xlkbuHXMq4YzeQ.png" /></figure><p>การเชื่อมต่อวงจรบอร์ด KidBright กับโมดูลไดร์มอเตอร์ L298 จะใช้สายไฟ 4 เส้น เนื่องจากไม่ใช้ขา ENA และ ENB ในการควบคุมความเร็ว เพื่อให้ใช้ขาใช้งานน้อยที่สุด โดยขาใช้งานที่เลือกใช้มีดังต่อไปนี้</p><p><strong>KidBright — — — — — — — — L298<br> — — — — — — — — — — — — — — </strong><br>6–12V(Battery) ____________+12V<br>5V________________________+5V<br>GND______________________ GND<br>18________________________IN1<br>19________________________IN2<br>26(OUTPUT1) _____________IN3<br>27(OUTPUT2) _____________IN4</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eSoooOm_Nk063c1d6bZszA.png" /></figure><p><strong>#หมายเหตุ ต้องต่อตัวต้านทาน Pull up ที่ขา OUTPUT 1 และ OUTPUT 2<br></strong><a href="https://netpie.gitbooks.io/nodemcu-esp8266-on-netpie/content/lab-3.html"><strong>อ่านเพิ่มเติมเกี่ยวกับการต่อ Resistor Pull up</strong></a></p><p>การเขียนโปรแกรมควบคุมหุ่นยนต์รถบังคับด้วยบอร์ด KidBright จะแบ่งออกเป็น 2 ส่วนคือตัวส่ง (Master) และตัวรับ (Slave) โดยมีขั้นตอนดังต่อไปนี้</p><p>1) ดาวน์โหลดปลั๊กอิน Motor Drive Module L298 และ ESP-NOW</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*oI3W-tUppvzoJIJXK0c6cg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aFnXIUF3wzIJFB8asyA40w.png" /></figure><p>2) วาดบล็อกโปรแกรมของตัวรับ (Slave)</p><p>#จากโปรแกรมเมื่ออัพโหลดลงบอร์ด จะแสดง Mac address ให้จดบันทึกไว้เพื่อนำไปกรอกในบล็อก ESP-NOW send ของโปรแกรมตัวส่ง (Master)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*WkUJ_Ayvr1OtbCA-agoS9w.png" /></figure><p>3) วาดบล็อกโปรแกรมของตัวรับ (Master)</p><p>#ในส่วนบล็อก ESP-NOW send จะต้องนำเลข Mac Address ของตัวรับมาใส่</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qs4MCozaebdIrjJaNwVK9A.png" /></figure><p>4) ประกอบตัวรถ ตามแต่จินตนาการ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*TPs9yspP6L1GkIpP6d2gxg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*_quUVB8bpi5Ml5mkIot8qw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*_14DriGufs0eEtb47qRXGw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*24ZOYU_hKUMFt97BdnNEdA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jfETLTIv5kTYw3BYW80vqA.jpeg" /></figure><p>5) อัพโหลดโปรแกรมให้บอร์ดตัวส่ง (Master) และบอร์ดตัวรับ (Slave)</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FDRqpI_h8JIE%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DDRqpI_h8JIE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FDRqpI_h8JIE%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c9de27be9e1a7474c228ab95a23db8cf/href">https://medium.com/media/c9de27be9e1a7474c228ab95a23db8cf/href</a></iframe><h3>สรุป</h3><p>จากบทความเป็นการควบคุมหุ่นยนต์ด้วยโมดูล L298 โดยใช้การติดต่อสื่อสารผ่านโปรโตคอล ESP-NOW ซึ่งบทความเป็นเพียงตัวอย่างการใช้งานเบื้องต้นเท่านั้น ผู้ใช้งาน หรือผู้ศึกษาจะต้องศึกษาต่อในเรื่องการควบคุมมอเตอร์ด้วย L298 หลักการควบคุม และการส่งข้อมูลระหว่างบอร์ดผ่านโปรโตคอล ESP-NOW เพื่อให้เกิดประโยชน์ต่อผู้ศึกษาได้มากที่สุด</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*qtWo-1w5vo4wfqt1nz0Zmg.png" /></figure><p><strong>ติดตามข่าวสารอื่น ๆ</strong><br><a href="https://www.facebook.com/kbide.org/?ref=br_rs">FB page: KBIDE</a><br><a href="http://www.kbide.org/">Website: www.kbide.org</a><br><a href="https://thai-maker.com/">สั่งซื้อบอร์ด ESP32 : https://thai-maker.com</a><br><a href="https://www.facebook.com/ChiangMaiMakerClub/">ติดตามบทความใหม่ ๆ : FB page Chiang Mai Maker Club</a><br><a href="https://www.facebook.com/groups/ChiangMaiMakerClub/">กลุ่มพูดคุย และปรึกษา : FB Group Chiang Mai Maker Club</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16941a83cb8f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/chiang-mai-maker-club/kb-ide-ep12-%E0%B8%A1%E0%B8%B2%E0%B8%AA%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%87%E0%B8%A3%E0%B8%96%E0%B8%9A%E0%B8%B1%E0%B8%87%E0%B8%84%E0%B8%B1%E0%B8%9A-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-kidbright-%E0%B8%81%E0%B8%B1%E0%B8%99%E0%B9%80%E0%B8%96%E0%B8%AD%E0%B8%B0-16941a83cb8f">KB-IDE [EP12]: มาสร้างรถบังคับ ด้วย KidBright กันเถอะ</a> was originally published in <a href="https://medium.com/chiang-mai-maker-club">Chiang Mai Maker Club</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>