<?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 Antonio Mancuso on Medium]]></title>
        <description><![CDATA[Stories by Antonio Mancuso on Medium]]></description>
        <link>https://medium.com/@mancusoa74?source=rss-96f8ff28e430------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*8JqokLSy8Q4k6IlX.jpg</url>
            <title>Stories by Antonio Mancuso on Medium</title>
            <link>https://medium.com/@mancusoa74?source=rss-96f8ff28e430------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 09:12:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mancusoa74/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[Christmas Lights with WS2811 strip and RemoteXY app]]></title>
            <link>https://medium.com/@mancusoa74/christmas-lights-with-ws2811-strip-and-remotexy-app-995b926f79ba?source=rss-96f8ff28e430------2</link>
            <guid isPermaLink="false">https://medium.com/p/995b926f79ba</guid>
            <category><![CDATA[remote-control]]></category>
            <category><![CDATA[arduino]]></category>
            <category><![CDATA[nodemcu]]></category>
            <category><![CDATA[iot]]></category>
            <dc:creator><![CDATA[Antonio Mancuso]]></dc:creator>
            <pubDate>Mon, 20 Nov 2017 08:29:33 GMT</pubDate>
            <atom:updated>2017-11-20T08:35:57.252Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mlKjUQ1X2Kp5m7lbi6zfVA.jpeg" /></figure><p>Few days ago a friend of mine described me a project he was doing with his son and a led strip and Arduino. As always small projects with lights or sounds are very interesting for young kids as they stimulate their fantasy and capture their attention.</p><p>Based on that I have decided to buy the same RGB Led Strip WS2811 12mm 5V from Amazon.</p><h3>Led Strip</h3><p>The led strip is made of 50 led RGB WS2811 which are individually addressable. The strip is solid and built with good quality and made for external use.</p><p>As Christmas Holidays period is approaching I think this is the perfect project to develop with my daughter: Lights for a Christmas tree which is programmable from a mobile app. The mobile app is based on <a href="http://remotexy.com/">RemoteXY </a>service and it is quite simple. It provides a vertical switch with 10 different button options. Each button is associated to a different light effect implemented on the strip.</p><p>The full RemoteXY project is available <a href="http://remotexy.com/en/editor/79814f4846981a808e1b82bef9c29d8b/">here</a></p><p>In addition I have shared the entire source code on my <a href="https://github.com/mancusoa74/xmas_light">GitHub</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/361/0*wSGJoz8dVmNm-3-a.JPG" /></figure><h3>Circuit</h3><p>The figure below shows the connection of the different components</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*NTvnDR2Xp8Rf0KlK.jpg" /></figure><p>As you can see the led strip has been represented by a single WS2811 led.</p><p>In place of the battery pack I have used a mobile phone charge (5V 1 A)</p><p><em>Note:</em></p><p><em>if you have a more powerful charger (like 2A) please use it as it will get to lower temperature of operations</em></p><p>It is very important to note that the negative (-) wire from the charger is connected to the GND pin of nodeMCU in order to allow the proper behavior of the led strip.</p><p>The data line of the strip is connected on pin D4 by a 470 Ohm resistor.</p><p>I have also added a 1000 uF capacitor between the power wires of the strip.</p><p>The capacitor is not strictly mandatory but highly suggested in order to avoid possible tension spike at the input of the strip.</p><h3>Implementation</h3><p>Below some picture of my implementation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*rjd_tVQLbACdSSyK.JPG" /></figure><p>For the sake of simplicity I have mounted the nodeMCU on a breadboard. A strip board would be good as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*mh8MdtSvgUw0i0vD.JPG" /></figure><p>Above the detail of the connection of the data line pin of the strip.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*v3MJPHlS7DwdGNvy.JPG" /></figure><p>Here some details of the connection between the charger (black wires on the left) and the strip wires (white and red on right). As you can see the cap is plug and the blue wire is connected between the nodeMCU GND pin and the negative (-) power wire.</p><h3>Test</h3><p>Below you can see the led strip on the wall of my studio ready for testing. According to Italian tradition I cannot have the xmas tree before December 8th :) so I need to wait few more weeks to install the led strip on the tree :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*8Mw1gNgEJZX_AITz.JPG" /></figure><p>Here the video showing all the 10 different lighting effect implemented in this project.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fy0t3iN_irhM%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dy0t3iN_irhM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fy0t3iN_irhM%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/6c562baeeb976dd49502d135a1d093ad/href">https://medium.com/media/6c562baeeb976dd49502d135a1d093ad/href</a></iframe><p>Obviously you can implement your own lighting effects and the limit is only your fantasy. If you want share your effects so it can help other people.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=995b926f79ba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Remote Control a 2 Channel Relay board with RemoteXY]]></title>
            <link>https://medium.com/@mancusoa74/remote-control-a-2-channel-relay-board-with-remotexy-9737c25c8863?source=rss-96f8ff28e430------2</link>
            <guid isPermaLink="false">https://medium.com/p/9737c25c8863</guid>
            <category><![CDATA[relay]]></category>
            <category><![CDATA[remote-control]]></category>
            <category><![CDATA[esp8266]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[nodemcu]]></category>
            <dc:creator><![CDATA[Antonio Mancuso]]></dc:creator>
            <pubDate>Thu, 16 Nov 2017 18:17:44 GMT</pubDate>
            <atom:updated>2017-11-16T18:23:15.307Z</atom:updated>
            <content:encoded><![CDATA[<p>A recurring question on some Arduino and ESP groups on Facebook goes like: “how to remotely control a relay?”</p><p>In this post I show a simple and quick way to remotely control a 2 Relay module through a mobile app using the RemoteXY service.</p><p>Pre-requisite to this post is a previous I have written : “<a href="http://mancusoa74.blogspot.it/2017/10/remote-control-nodemcu-with-remotexy.html">Remote Control NodeMCU with RemoteXY</a>” in which I introduce the development of mobile apps to control nodeMCU projects.</p><h3>The Circuit</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*xFoGdIGvvtQctOkk.JPG" /></figure><p>As shown in the above figure, the 2 Channel Relay module has 4 pins:</p><ul><li>GND</li><li>IN1</li><li>IN2</li><li>Vcc</li></ul><p>Those pins need to be wired in the following way:</p><ul><li>Module: GND → nodeMCU:GND</li><li>Module: IN1 → nodeMCU:D4</li><li>Module: IN2 → nodeMCU:D5</li><li>Module: Vcc → nodeMCU:Vin</li></ul><p><strong><em>Note:</em></strong></p><p><strong><em>Those wire connections assume that the nodeMCU is powered with 5V.<br> In such situation on the module Vin pin there will be 5V which is the right voltage to provide to the Relay module.<br> <br> If you power you nodeMCU with a different voltage, please make sure you adapt the voltage available on Vin to be exactly 5V.</em></strong></p><h3>Graphic Interface</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/0*QLkDOxrkqEB6RgTg.JPG" /></figure><p>Build this simple graphic interface by using 3 labels and 2 switch in the RemoteXY editor.</p><p>The switch si should be named:</p><ul><li>switch_1</li><li>switch_2</li></ul><p>Now in the configuration panel, bottom right, let’s configure each switch in a way that they connect to pin D4 and D5 on the nodeMCU</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/205/0*Fm6x6QRxaE52KOfB.JPG" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/199/0*WotvmEbE6HBMKM3Z.JPG" /></figure><h3>Configuration</h3><p>Let’s configure RemoteXy in this way</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/0*_27ahLXoEACiSKu_.JPG" /></figure><p>Don’t forget to specify your WiFi name and password</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/223/0*BX-0N8Mjy3Y6gawn.JPG" /></figure><h3>Source Code</h3><p>Here the <a href="http://remotexy.com/en/editor/37e4efd030f80bb02b062e37896c75de/">link </a>of the shared RemoteXY project. Once on RemoteXY you can download the source code to upload on your nodeMCU</p><h3>Testing</h3><p>Below a short video showing the behavior of the application</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F3OUpfKhdv3I%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D3OUpfKhdv3I&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F3OUpfKhdv3I%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/272cf62cd420ddc8d94bec5a49d82136/href">https://medium.com/media/272cf62cd420ddc8d94bec5a49d82136/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1/0*HBUQhgdkMFuYLFhE." /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9737c25c8863" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The EggPainter]]></title>
            <link>https://medium.com/@mancusoa74/the-eggpainter-ddaf88d01ec?source=rss-96f8ff28e430------2</link>
            <guid isPermaLink="false">https://medium.com/p/ddaf88d01ec</guid>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[eggbot]]></category>
            <category><![CDATA[drawing]]></category>
            <category><![CDATA[arduino]]></category>
            <category><![CDATA[eggpainter]]></category>
            <dc:creator><![CDATA[Antonio Mancuso]]></dc:creator>
            <pubDate>Sun, 29 Oct 2017 20:42:00 GMT</pubDate>
            <atom:updated>2017-10-30T21:13:02.864Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XMohf0LjbQaTqJ1E7BAV0A.jpeg" /></figure><p>In this post I describe how I have realized the EggPainter and I show all the steps in a video</p><p>Then I show how to test the EggPainter and how to print on some eggs and some table tennis ball</p><h3>Building Steps</h3><p>In the below video all the necessary steps to build the EggPainter from scratch. In the remaining part of the post some additional details and useful information</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F8jn_yQSdJQM%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D8jn_yQSdJQM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F8jn_yQSdJQM%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/d4012c7fc75b5e3e1e1bcb5a580d8a48/href">https://medium.com/media/d4012c7fc75b5e3e1e1bcb5a580d8a48/href</a></iframe><h3>Egg Painter</h3><p>The EggPainter is a full project available on <a href="https://github.com/ProbotXYZ/EggBot">githiub</a>. Its creator has shared all the necessary elements to build the EggPainter project</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*A8WILMkyFJM35Okd.JPG" /></figure><p>In order to realize the EggPainter project the following components are mandatory:</p><ul><li>Arduino Uno</li><li>Stepper motors</li><li>Case</li><li>Supporting components</li></ul><p>A key characteristic of this project is that all the STL file for 3d printing have been provided by the author. In other words a user can print with a normal 3d printer all the necessary elements to build the project. Obviously the Arudino and other electronic or mechanical components should be procured elsewhere.</p><h3>Kit</h3><p>The Kit I have used (I didn’t print it myself) is coming from Russia and when I have open it looked like that:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*aD0haNTeiZ3z2hTU.JPG" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*MK8WFofeLO21knI2.JPG" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*6crM-4so-t7Jed02.JPG" /></figure><p>As it is possible to see all the necessary components to build the EggPainter are available in this kit</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*lO_dMjYzJ3iLPxWv.JPG" /></figure><h3>Disclaimer:</h3><p>During the building of the EggPainter I have faced a major problem with this kit. Once I have closed the case with the bolt and nuts the remaining space for wiring it was absolutely not enough. In other words I was not able to properly close the case with the original kit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*7_R7E0yFZMa26XKo.JPG" /></figure><p>For this reason I have thrown away all the provide cabling and rebuild it from scratch. In any case for a maker with some basic capabilities it should not be a complex task.</p><p>Below the EggPainter fully assembled after my modifications</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*tptNMI2vyHoQ1FMF.JPG" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*EGznTiG3NWJT4Xm8.JPG" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*fEfSf2zFB54Q6BWL.JPG" /></figure><h3>Firmware</h3><p>The EggBot firmware is available <a href="https://github.com/ProbotXYZ/EggBot/blob/master/Firmware/Firmware.zip">here</a></p><p>Let’s now follow the below steps:</p><ol><li>Download the .zip file and unzip it in a preferred directory</li><li>Open the EggDuino.ino file in the Arduino IDE</li><li>Compile the code and upload it to your Arduino Uno</li><li>Quit from the Arduino IDE</li></ol><p>At this stage the controlling software of the EggPainter is fully loaded on Arduino control board.</p><h3>Printing Software</h3><p>In order to print some vector art drawing it is necessary to instruct the Arduino board with the proper commands. This can be achieved through the use of a software called InkSpace.</p><p>Perform the following steps:</p><ol><li>Download Inkspace from <a href="https://inkscape.org/it/release/0.92.2/">here </a>(Note:windows user should download 32 bit version)</li><li>Install Inkspace and run it</li><li>Download the EggBot extension from <a href="https://github.com/ProbotXYZ/EggBot/blob/master/Software/Inkscape_extension_only.zip">here</a></li><li>Unzip the file and copy its content in the directory shown here <em>Edit &gt; Preferences &gt; System: User</em></li><li>Restart InkSpace</li></ol><p>If the above steps have been successfully completed you should see EggBot in the Extension menu</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*q08FYHlT6mfzadeu.jpg" /></figure><h3>Testing</h3><p>Now we can move into testing phase as we have all the necessary elements to operate the EggPainter</p><p>In the below video I show how to test the EggPainter and check that all the motors are properly working.</p><p>The test is executing from the Manual tab in the EggBot menu</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FgG7aQ55hziE%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DgG7aQ55hziE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FgG7aQ55hziE%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/179d3213075c001765a0cdef9cbda47e/href">https://medium.com/media/179d3213075c001765a0cdef9cbda47e/href</a></iframe><p>If everything works fine and the pen is goin up and down, the horizontal and pen motors spin in two directions then the EggPainter is ready for printing</p><h3>Stampa</h3><p>In order to print let’s import a SVG file in Inkspace (File menu -&gt; Import) and let’s adapt the drawing area to:</p><ul><li>3200 x 800 px for eggs</li><li>4150 x 600 for table tennis balls</li></ul><p>I really suggest you to experiment with those values and to find the right one for your print.</p><p>Below some pictures and video of printing done by me</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FOvazssdDeAo%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DOvazssdDeAo&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FOvazssdDeAo%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/d8cbefa3d0f15d6bf61947c34eba96af/href">https://medium.com/media/d8cbefa3d0f15d6bf61947c34eba96af/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*UxZWJabZgGQvkpC7.JPG" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/0*FQPtwPuFUSmBGfU-.JPG" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*CVTOGAkn9baosizN.JPG" /></figure><p><strong>Happy Egg Printing everyone!!! :)</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ddaf88d01ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Remote Control a nodeMCU with RemoteXY — Led Control]]></title>
            <link>https://medium.com/@mancusoa74/remote-control-a-nodemcu-with-remotexy-led-control-1089a481ec52?source=rss-96f8ff28e430------2</link>
            <guid isPermaLink="false">https://medium.com/p/1089a481ec52</guid>
            <category><![CDATA[arduino]]></category>
            <dc:creator><![CDATA[Antonio Mancuso]]></dc:creator>
            <pubDate>Wed, 25 Oct 2017 19:27:33 GMT</pubDate>
            <atom:updated>2017-10-25T19:33:10.400Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZMJnSZCICd8kVTgolDqw3Q.png" /></figure><p>In this post I describe a simple and intuitive way to remotely control a nodeMCU through a mobile application from iOS and Android devices.</p><p>More in detail I will show how to remotely pilot a led through the <a href="http://remotexy.com/">RemoteXY</a> application</p><h3>RemoteXY</h3><p><a href="http://remotexy.com/">RemoteXY</a> includes:</p><ul><li><strong>a Web application </strong>to easily design and build a graphical interface and to generate the necessary source code for the controlling board (ESP8266, Arduino, …)</li><li><strong>a Mobile app for iOS and Android</strong> to remotely control over Bluetooth or WiFi the remote board</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/0*Ed9xGtifAJx5X1Bh.JPG" /></figure><p>In order to create a complete application with RemoteXY it is necessary to follow 4 simple steps:</p><h3>Step #1 : Graphical Interface</h3><p>Building a graphical interface with a simple drag&amp;drop editor available <a href="http://remotexy.com/en/editor/">here</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*bz0qGpknEZBZ9Xvc.JPG" /></figure><h3>Step #2: Source Code Configuration</h3><p>Configure and generate the sketch source code to be uploaded on the control board (ESP8266, Arduino)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/453/0*3CpjEdAMjE1k7FGh.JPG" /></figure><h3>Step #3: Upload Sketch</h3><p>Compile and upload of the generated sketch on the control board (ESP8266,Arduino) through the Arduino IDE (or other supported IDE)</p><h3>Step #4: Download Mobile App</h3><p>Download the mobile app and install it on your client device (iOS, Android)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/0*xH_ve5DReiKQEsNh.JPG" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/0*OiiH0IzZoFJIeOOP.JPG" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/0*pdruuOJi0S1q0MM7.png" /></figure><h3>Configuration</h3><p>After the design of the graphical interface it is necessary to configure the tool in order to generate the proper source code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/0*VCKNgaESuKMDlAAI.JPG" /></figure><p>There are 4 different aspects to configure:</p><ul><li><strong>Connection</strong></li></ul><p>Four (4) type of connections are supported</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*89FajFQ6MDQmJYio.JPG" /></figure><p><strong>Note</strong>: the iOS app only supports <em>Bluetooth Low Energy aka BLE</em></p><ul><li><strong>Device </strong>(the control board)</li></ul><p>The following platforms are supported</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*ZBNqf5LVfCjriO7e.JPG" /></figure><ul><li><strong>Communication Module</strong></li></ul><p>The following communication modules, to be paired with the control board, are supported:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*vVunAebF89shGxwr.JPG" /></figure><p>Here some example of supported scenarios: Arduino Uno with Bluetooth HC-05 module, Arduino with ESP8266 or nodeMCU with ESP8266</p><ul><li><strong>IDE environment</strong></li></ul><p>Three (3) different development environment are supported:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/0*Z7sqenw3QY2dLi2E.JPG" /></figure><h3>LED control with nodeMCU</h3><p>Let’s now implement a simple use case: remotely control a LED through a mobile app and nodeMCU</p><h3>GUI</h3><p>Use the online editor to design a simple user interface by adding a label and a switch as depicted below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/0*hhjOIWmiqa8GKKr1.JPG" /></figure><p>Now selecting the switch (ON/OFF) it is possible to configure some simple parameters in the <em>Element</em> section</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/199/0*ga3wKC4DzwhZoZms.JPG" /></figure><p>For the sake of simplicity let’s stick to the default parameters</p><h3>Configuration</h3><p>Now let’s configure the code generator in the following way</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/0*hCrq_noowwNjhbp6.JPG" /></figure><p>This way we are telling to RemoteXY that we want to use a nodeMCU board as controller and the on-board ESP8266 as communication module and that our programming environment is Arduino.</p><p>The Connection is set to WiFi Access Point (AP) hence we are telling to RemoteXY that we want our nodeMCU to behave as a WiFi Access Point.</p><p>In such case it is necessary to configure the <em>Module Interface</em> section by specifying the SSID which will be broadcasted by the nodeMCU AP.</p><p>Let’s also specify the TCP port on which the nodeMCU server will be listening for incoming connections.</p><p>Again for sake of simplicity let’s check <em>Open point</em> meaning that we want an open WiFi network with no authentication.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/215/0*IwShMPK2GupzAIGX.JPG" /></figure><h3>Source Code</h3><p>Now press the following button</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/187/0*VcOHYErekC4y3lHe.JPG" /></figure><p>RemoteXY will redirect us to a new page in which the generated source code is available for the user. The source code and the RemoteXY library are available for download as zip files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*Vp55H-n0O_VDmBrY.JPG" /></figure><p>Let’s now download the RemoteXY library and install it on Arduino IDE through the proper menu.<br> The download the source code</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/546/0*x57Oe2FVahsBMgN-.JPG" /></figure><p>As we can see in the generated code some information from the previous config phase are present:</p><ul><li>SSID of AP WiFI</li><li>Listening port</li></ul><p>The RemoteXY_CONF[] section contains a description of the graphic interface. It will be transfer to the requesting mobile app once a connection with the nodeMCU is established.</p><h3>Circuits</h3><p>Now let’s build the simple circuit depicted below by connecting a LED on the D4 pin of nodeMCU. Let’s not forget the 100–220 Ohm limiting resistor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*Fe3yweq6pT89eGIf.jpg" /></figure><h3>Testing</h3><p>Now let’s compile the code and upload the binary to nodeMCU through the Arduino IDE.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/0*TFTFPxsoL8iRhAgp.JPG" /></figure><p>Now on your mobile device (smartphone o tablet) join the new WiFi network called <strong>LedWiFi</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*i3kBTDZU1lzXw5hz.png" /></figure><p>It is now time to run the RemoteXY app on mobile and then click on the top tight + sign</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/0*FeUgLnKzKmT75RwW.jpg" /></figure><p>Now select the WiFi point option</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*FfZ6gy3rInV8Sv-6.png" /></figure><p>Now press the Connect button and the app will connect to the nodeMCU and it will download the GUI description</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/0*9gTmRsBNMWnpzfd9.png" /></figure><p>Now you are all set to remotely control the LED wired to the nodeMCU control board</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/0*IPcU2rhTKurwUk6R.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1/0*PhbeClAj6kefEKnv." /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1089a481ec52" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Controllo Remoto di NodeMCU con RemoteXY — Accensione Led]]></title>
            <link>https://medium.com/@mancusoa74/controllo-remoto-di-nodemcu-con-remotexy-accensione-led-5874f8e28b79?source=rss-96f8ff28e430------2</link>
            <guid isPermaLink="false">https://medium.com/p/5874f8e28b79</guid>
            <category><![CDATA[esp8266]]></category>
            <category><![CDATA[remote-control]]></category>
            <category><![CDATA[arduino]]></category>
            <category><![CDATA[nodemcu]]></category>
            <category><![CDATA[iot]]></category>
            <dc:creator><![CDATA[Antonio Mancuso]]></dc:creator>
            <pubDate>Wed, 25 Oct 2017 12:00:34 GMT</pubDate>
            <atom:updated>2017-10-25T12:09:34.380Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZMJnSZCICd8kVTgolDqw3Q.png" /></figure><h3>Controllo Remoto di NodeMCU con RemoteXY — Accensione Led</h3><p>In questo post descrivo un modo semplice ed intuitivo per controllare un nodeMCU da un applicazione mobile per iOS ed Android.</p><p>In dettaglio faccio vedere come pilotare un led da remoto tramite l’applicazione <a href="http://remotexy.com/">RemoteXY</a></p><h3>RemoteXY</h3><p><a href="http://remotexy.com/">RemoteXY</a> e’ composto da</p><ul><li><strong>un applicazione Web </strong>che permette di disegnare un interfaccia grafica e di generare il codice da far girare sulla scheda di controllo (ESP8266, Arduino, …)</li><li><strong>un applicazione mobile per iOS e Android</strong> che permette di controllare da remoto tramite bluetooth, wifi la scheda di controllo</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/0*m2gOn3X__zlEi9Da.JPG" /></figure><p>Per creare un’applicazione completa con RemoteXY bisogna eseguire 4 semplici passi:</p><h3>Passo #1 : Interfaccia Grafica</h3><p>Disegnare l’interfaccia grafica con una comodo editor drag&amp;drop disponibile <a href="http://remotexy.com/en/editor/">qui</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*3meZnfvCyMqPjl2-.JPG" /></figure><h3>Passo #2: Configurazione Codice Sorgente</h3><p>Configurare e generare il codice sorgente da caricare sul modulo di controllo (ESP8266, Arduino)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/453/0*v13s0XHzXu8LHRhm.JPG" /></figure><h3>Passo #3: Upload Sketch</h3><p>Compilare e caricare il codice sulla scheda di controllo (ESP8266,Arduino) tramite l’IDE Arduino (o tramite gli altri IDE supportati)</p><h3>Passo #4: Download App mobile</h3><p>Scaricare l’applicazione mobile ed installarla sul dispositivo client (iOS, Android)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/0*gGg5NvosIm8EbIbP.JPG" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/0*oghsW0AOOKUpn3hV.JPG" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/0*pzn1zBlK3VCg9fCk.png" /></figure><h3>Configurazione</h3><p>Dopo aver disegnato l’interfaccia grafica della propria applicazione e’ necessario configurare il tool per generare il codice in maniera corretta</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/0*SmUGXhsgWnvenfEy.JPG" /></figure><p>Ci sono 4 aspetti da configurare:</p><ul><li><strong>La Connessione</strong> (Connection)</li></ul><p>Sono supportate 4 tipi diversi di connessioni</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*reJf7OHLOfmz7SsA.JPG" /></figure><p><strong>Nota</strong>: <em>l’applicazione per iOS supporta solo Bluetooth a bassa energia (BLE)</em></p><ul><li><strong>Il Device </strong>(la scheda di controllo)</li></ul><p>Sono supportate le seguenti piattaforme</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*fwUJig4z3zX1aSQ9.JPG" /></figure><ul><li><strong>Il Modulo di Comunicazione </strong>usato</li></ul><p>Sono supportati i seguenti moduli di comunicazione da accoppiare con le piattaforme supportate</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*wLLLZ6VnamwvH4SK.JPG" /></figure><p>Quindi per esempio e’ supportato Arduino Uno con Bluetooth HC-05, oppure Arduino con ESP8266, oppure nodeMCU con ESP8266</p><p>Sono supportati 3 diversi ambienti di sviluppo</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/0*YfsOMpK6R5R106su.JPG" /></figure><h3>Accensione LED con nodeMCU</h3><p>Vediamo ora un semplice esempio di come controllare lo stato di un LED tramite una semplice applicazione mobile e nodeMCU</p><h3>GUI</h3><p>Disegniamo tramite l’editor online una semplicissima interfaccia con una label e con uno switch</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/0*GsVV2nV72S2fDW2V.JPG" /></figure><p>Ora cliccando sullo switch (ON/OFF) e’ possibile configurare alcuni semplici parametri ad esso correlati nella sezione <em>Element</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/199/0*ln74y3mviBtRc3IE.JPG" /></figure><p>Per semplicita’ lasciamo i valori di default che vanno benissimo</p><h3>Configurazione</h3><p>Configuriamo il codice nel seguente modo</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/0*SlHFVIsFAUDUlm_-.JPG" /></figure><p>In questo modo stiamo dicendo a RemoteXY che vogliamo usare una scheda nodeMCU con ESP8266 per controllare il nostro led e che la vogliamo programmare con l’IDE Arduino.</p><p>La connessione e’ di tipi Wi-Fi access point e quindi stiamo dicendo a RemoteXY che vogliamo che il nostro nodeMCU si comporti come un WiFi Access Point</p><p>Quindi e’ necessario anche configurare la sezione <em>Module Interface</em> inserendo lo SSID della rete WiFi che verra’ implementata da nodeMCU</p><p>Specifichiamo anche la porta su cui il nostro server,1 che gira su nodeMCU, rimarra’ in ascolto.</p><p>Infine per semplicita’ impostiamo il tutto come un <em>Open point</em> cioe’ senza autenticazione e senza password</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/215/0*oqnULF-lQhKJfCgS.JPG" /></figure><h3>Codice</h3><p>Premendo ora il pulsante</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/187/0*cofOrrqKYSCM5zJO.JPG" /></figure><p>siamo rediretti ad una pagina in cui e’ visualizzato il codice per nodeMCU e dove e’ possibile scaricare il codice come file zip e anche la libreria RemoteXY in formato zip</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*7R0WtpCbLaYTrX-i.JPG" /></figure><p>A questo punto scarichiamo la libreria ed installiamola nell’IDE Arduino tramite l’apposito menu’.</p><p>Poi scarichiamo il codice</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/546/0*Vp0eFuC5boyie663.JPG" /></figure><p>Come possiamo vedere nel codice generato ci sono le informazioni che abbiamo inserito in fase di configurazione:</p><ul><li>SSID del AP WiFI</li><li>Porta del server</li></ul><p>La sezione RemoteXY_CONF[] contiene una descrizione dell’interfaccia grafica che verra’ inviata all’applicazione mobile una volta stabilita la connessione tra device mobile ed il nodeMCU</p><h3>Circuito</h3><p>Ora creiamo il semplicissimo circuito andando ad connettere un LED sul pin D4 del nodeMCU tramite una resistenza da 100–220 Ohm</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*YkfN6zfxF5S6Y1m6.jpg" /></figure><h3>Test</h3><p>Ora compiliamo e carichiamo lo sketch sul nodeMCU tramite l’IDE Arduino</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/0*WA3VEqvG4DCjBNfV.JPG" /></figure><p>Ora tramite il vostro dispositivo mobile (smartphone o tablet) collegatevi alla nuova rete WiFi chiamata <strong>LedWiFi</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*p2i5D_nTpGw_w-l2.png" /></figure><p>A questo punto lanciate l’app RemoteXY e cliccate sul segno + in alto a destra.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/0*5d4-3XzslJKDbWlR.jpg" /></figure><p>Poi selezionate l’opzione WiFi point</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*IcRNo1KspkIXF8y-.png" /></figure><p>Ora premete su Connect e l’applicazione si connettera’ al vostro nodeMCU e scarichera’ la definizione dell’interfaccia</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/0*ROWBbeLekqw--wKJ.png" /></figure><p>Ora potete pilotare il led dal vostro telefono/tablet</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/0*gEkFhHz50R0WMMB5.png" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FQfWaE5d6SWM%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DQfWaE5d6SWM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FQfWaE5d6SWM%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/99aff95583e6e45635fb80187368b331/href">https://medium.com/media/99aff95583e6e45635fb80187368b331/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1/0*MThpeD-RdFh5jQD2." /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5874f8e28b79" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Keychainino — a modern keychain for maker — Assembling]]></title>
            <link>https://medium.com/@mancusoa74/keychainino-a-modern-keychain-for-maker-assembling-3b2a4c29125c?source=rss-96f8ff28e430------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b2a4c29125c</guid>
            <category><![CDATA[games]]></category>
            <category><![CDATA[video-game-programming]]></category>
            <category><![CDATA[electronics]]></category>
            <category><![CDATA[attiny]]></category>
            <category><![CDATA[arduino]]></category>
            <dc:creator><![CDATA[Antonio Mancuso]]></dc:creator>
            <pubDate>Fri, 20 Oct 2017 10:22:28 GMT</pubDate>
            <atom:updated>2017-10-20T11:08:03.428Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RneUWx2eaDOPeJwMEE1FwQ.jpeg" /></figure><h3>Keychainino — a modern keychain for maker</h3><h3>Introduction</h3><p>In this post I describe and show how to assemble the <a href="http://www.keychainino.com/">keychianino</a>: a keychain for maker and tech enthusiast</p><p>It is quite some time I am following the keychainino project on <a href="https://www.facebook.com/keychainino">facebook </a>, and I really love it. It is a small keychain full of technology and most of all is fully ptogrammable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*v5-auCxZi84CxJC7.jpg" /></figure><p>As described by its author: “keychainino is an arduino programmable keychain”, “is a vintage videogame to be used on the bus, on the metro or anytime one is bored and doesn’t know how to spend the time” :)</p><h3>Assembling</h3><p>Below the video of the assembling that I have done</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F9rTA9nS7rVs%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D9rTA9nS7rVs&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F9rTA9nS7rVs%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/bf202fa56ae18ccc358b9dad94ed27a1/href">https://medium.com/media/bf202fa56ae18ccc358b9dad94ed27a1/href</a></iframe><h3>Unboxing</h3><p>Few days ago I have ordered my keychainino from here [<a href="http://www.keychainino.com/product/tht/">http://www.keychainino.com/product/tht/</a>] and now I got it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*z4KuE9Aa9pSKokM7.JPG" /></figure><p>Once I have opened the envelop I found a CR2032 battery and a small antistatic bag containing all the necessary components for the assembly of keychainino (PCB, micro controller, led, resistor)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*9zosq0gj12VsUuah.JPG" /></figure><h3>Bill of Material</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*eChI6vXpbQ1xaHOa.JPG" /></figure><p>Below the full list of components part of the kit:</p><ul><li>Keychianino PCB</li><li>30 red Led</li><li>1 100nF Capacitor</li><li>1 10 KOhm Resistor</li><li>1 CR2032 battery holder</li><li>1 CR2032 battery</li><li>2 micro push buttons</li><li>1 ATTINY84A microcontroller</li><li>1 ISP pin header (6 pin)</li></ul><h3>Assembly tips</h3><p>Before starting the assembly of the PCB and components let me just share few tips:</p><ol><li>Led are polarized components so it is very important to mount them in the right manner (otherwise keychainino will not work properly). The longer led leg is the anode (positive +) while the shorter one is the cathode (negative -)</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*IZblArXL49xQ4jNo.JPG" /></figure><p>As shown in the above figure, for each led there are two holes in the PCB. The upper hole is for the cathode (negative -) of the led, while the lower hole is for the anode (positive +) of the led.</p><p>2. Base don the design of the PCB, the micro push button must be soldered in one specific position.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*j1C1LUeEXxQsmwXn.JPG" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*2a-DNUvHtv_4SF0O.JPG" /></figure><p>In the above picture, “piedini” stands for “pin”.</p><p>So if you look at the micro push button from the top, it must be positioned in a way that pins goes from left to right (not from top to bottom).</p><p>3. Also the micro controller ATTINY84A must be mounted in a specific position</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*J4paBAm2QFEpwk5_.JPG" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*vmGJW1QXb0hllF4G.JPG" /></figure><p>Looking at the PCB from the top, you can see a space named IC1 which is reserved for the micro controller. The bottom-left pad is marked with a tiny black dot.</p><p>In the same way if you look the micro controller from the top, you can see a white triangle</p><p>The right alignment of the micro controller on the PCB is when the white triangle is matching the tiny black dot as shown in the above picture</p><h3>Assembly</h3><p>Now that we know those important tips, we can move on with the assembly of keichainino. Suggest to follow this order:</p><h4>Led</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*Xhr-qe5s1LxnqnLe.JPG" /></figure><p>Insert 6 led in the first row of holes from the top. Important to respect the polarization as explained above</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*-N0BbQZLwl8_Iyz7.JPG" /></figure><p>A good way to avoid the led moving is to bend its legs as shown in figure</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*9stVL6pBiJGERXfK.JPG" /></figure><p>Now that the led are correctly positioned, we can solder each pin of each led</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*opkUXQ1JFw039TuH.JPG" /></figure><p>Let’s continue soldering all the led until the last row</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*qoLRhbVx3loVjKT4.JPG" /></figure><p>Now all the 60 solders of the led are done (I am sure you can solder much better than me) :) — in the end I am a software guy so I am excused :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*VFGAJRpbJJ9TOJ_O.JPG" /></figure><h4>Resistors</h4><p>Resistors don’t have polariti so it can be soldered in any direction</p><h4>Capacitor</h4><p>This is a ceramic capacitor and it doesn’t have any polarity, so feel free to solder it in any direction</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*U301AbQ7vGm3HD2u.JPG" /></figure><h4>Micro Controller</h4><p>In order to solder the micro controller I have used a more powerful solder (40W) compared to the one used for the LED (this might be or not your case)</p><p>Remember to respect the proper alignment of the micro controller chip as explained above</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*QkkfBqxdCiZOzfi9.JPG" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*YeLUZ8JtW2MdWNnU.JPG" /></figure><h4>Micro Push Buttons</h4><p>Remember to solder the push buttons in the right direction as explained above</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*eJE6Fiz7f_kvtqzu.JPG" /></figure><h4>Battery Holder and ISP connector</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*Ar7LseYsLFtjTGMi.JPG" /></figure><p><strong>In the end our keychainino is fully assembled and ready for gaming!! :)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*bLWQvPRM440pkKGb.JPG" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b2a4c29125c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ESP8266–01 Home Made Dev Board v1]]></title>
            <link>https://medium.com/@mancusoa74/esp8266-01-home-made-dev-board-v1-5119c880bfcd?source=rss-96f8ff28e430------2</link>
            <guid isPermaLink="false">https://medium.com/p/5119c880bfcd</guid>
            <category><![CDATA[outbreak]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[board]]></category>
            <category><![CDATA[esp8266]]></category>
            <category><![CDATA[dev]]></category>
            <dc:creator><![CDATA[Antonio Mancuso]]></dc:creator>
            <pubDate>Wed, 18 Oct 2017 16:15:43 GMT</pubDate>
            <atom:updated>2017-10-20T00:28:02.270Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a-nyLq_vFYOLmiKycRk4rQ.png" /></figure><p>In this post I describe the way I have designed and built a simple and useful development board for ESP8266–01</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*TyFkuwgdRjOC_if1.jpg" /></figure><p>The main goal of this board is to make the use of ESP8266–01 simple during development phase on breadboard.</p><h3>Schema</h3><p>The schema is quite simple.</p><p>A detailed explanation on how to correctly connect EPS8266–01 pins is available here [<a href="http://www.instructables.com/id/How-to-use-the-ESP8266-01-pins/?ALLSTEPS">http://www.instructables.com/id/How-to-use-the-ESP8266-01-pins/?ALLSTEPS</a>]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*wO3gA0AhCLaAoENT.JPG" /></figure><p>The pinheader J1 and J2, in the above electrical schema, are the 8 pin of the ESP8266–01 module (as seen from above view)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/189/0*VOW5fWEmD1JRZ7pe.png" /></figure><p>The 5 pin on the left, in the above electrical schema, are the pin of the dev board. More in detail:</p><ul><li>VCC: 3V3 (+) from a couple of AA batteries or any other power source (in the schema is writte 5V as I was not able to change it in Fritzing)</li><li>GND: the negative (-) wire from the two AA batteries or from any DC 3V3 power source</li><li>USB GND: the ground from the USB2TTL module</li><li>USB RX/TX: RX/TX from the USB2TTL module</li></ul><p>The two pin top-right are the GPIO0 and PIO2 available on the ESP8266–10 module</p><p>The pin header J3 and J4 are not electrically connected and wired and are only used to mount the dev board on the breadboard</p><p>Two micro-buttons are available to reset the ESP8266–01 module (SW RST) and to switch into flashing/programming mode (SW GPIO0)</p><h3>PCB</h3><p>The PCB has been made using Fritzing software and is a single side PCB for an easy development at home</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*4-JUVVw7FUCFyKtO.JPG" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/399/0*OTUg_v_qtpsi6kdO.JPG" /></figure><h3>Making the PCB</h3><p>I have use a home made development process to build the PCB which is called “toner transfer”. In short I have printed the circuit on glossy photo paper with a laser printer and later transferred the PCB tracks on the copper clad with a normal iron (borrowed from my wife :) )</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*QarVwg0ie08Z3N2K.JPG" /></figure><p>The result is not 100% perfect (doing that at home with basic tools) as half track and few pad have not been transferred correctly</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*1rp5_uJ3J7GjGTMB.JPG" /></figure><p>No worries, we are maker so we always find a solution. I have manually corrected the missing toner with a permanent maker (the pad which are missing are the one which are not electrically connected so no big issue)</p><p>Below the final result after the copper etching</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*2NyHivep76okdDsG.JPG" /></figure><p>Now I remove the toner with some simple acetone (borrowed from my wife)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*8CkGKO1Woc7SMXru.JPG" /></figure><p>now I drill the board with a 1mm drill bit</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*GNyAFDf8mWzv9DCt.JPG" /></figure><h3>Assembling the Board</h3><p>Now it is time to assemble the board with just few components</p><p>Here the list of components:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/445/1*ZgWXe5f-SLiLEqZ3aQbJow.jpeg" /></figure><p>I start by soldering the resistors, the pin header and then the push buttons</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*nRjwOhqSkQGHzprK.JPG" /></figure><p>Below the final result</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*RJkOuIMzD3vXKs-M.JPG" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*otgfpReB-KzJ9K20.JPG" /></figure><p>and also with ESP8266–01 module</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*0ArtdwpmoS6kQDdx.JPG" /></figure><p>and everything mounted on breadboard</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*z6ri0wIrGszWtkQf.JPG" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*WNsGk6QgLCXVxkkV.JPG" /></figure><h3>File</h3><p>The full fritzing project with electrical schema and PCB layout is available here <a href="https://github.com/mancusoa74/esp8266_dev_board">qui</a></p><h3>Suggestion</h3><p>The two pin header rows on the side of the dev board, are slightly larger than the breadboard. In order to overcame this small issue I have removed the 6th pin from the row.</p><p>In version 2 of this board I will fix this bug but until then I can use the dev board with the small trick explained above.</p><p>This allows me to work on my project base don ESP8266–01 in a clean and easy way avoiding flying wires.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5119c880bfcd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Control Arduino over Bluetooth]]></title>
            <link>https://medium.com/@mancusoa74/control-arduino-over-bluetooth-290eac27abd0?source=rss-96f8ff28e430------2</link>
            <guid isPermaLink="false">https://medium.com/p/290eac27abd0</guid>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[arduino]]></category>
            <category><![CDATA[bluetooth]]></category>
            <category><![CDATA[remote-control]]></category>
            <category><![CDATA[iot]]></category>
            <dc:creator><![CDATA[Antonio Mancuso]]></dc:creator>
            <pubDate>Fri, 13 Oct 2017 10:01:00 GMT</pubDate>
            <atom:updated>2017-10-13T11:18:04.583Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*29BelbWSXwOFpuph1BiVYA.jpeg" /></figure><p>In this post I describe how I connected <a href="https://store.arduino.cc/arduino-uno-rev3">Arduino Uno</a> (for other Arduino types the wiring are similar) with a JY-MCU HC-06 Bluetooth module I had bought some time ago.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*QMPY-g4hOSpgC1iz.jpg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*HU-HRX06a8sG6Ox6.jpg" /></figure><p>This module allows me to connect via my phone or tablet or PC Bluetooth. The module is seen by Arduino as a serial communication and is therefore easy to manage. I already have a small project in mind for my home with this module, but for the moment, let us concentrate on how to use the module. In order to do it we need to follow the below steps:</p><ol><li>Module configuration</li><li>Using the module</li></ol><p>Below a picture showing the wiring between the Bluetooth module and Arduino</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/0*LtQLzM_ENQ4p6wkH.png" /></figure><p>I have used 4 different wires of Black, Brown, Red and Orange color. The wires are connected in the following manner to the Bluetooth module:</p><ul><li>Black -&gt; VCC</li><li>Brown -&gt; GND</li><li>Red -&gt; TX</li><li>Orange -&gt; RX</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*UUdo8yLfi__FfV4m.jpg" /></figure><p>Now let’s connect the other side of the wires to Arduino as in the picture below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*5HqQdBSeVFqtVub_.jpg" /></figure><ul><li>Black -&gt; pin +5V</li><li>Brown-&gt; pin GND</li><li>Red-&gt; pin 10</li><li>Orange-&gt; pin 11</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*Z3EWkhBtteste5TK.jpg" /></figure><p>It is important to wire the Bluetooth module to Arduino as described as the configuration software is expecting to have the RX on pin 10 and the TX on pin 11.</p><p>So in other words it is a cross connection like this:</p><ul><li>Bluetooth TX → Arduino RX (pin 10)</li><li>Bluetooth RX -&gt; Arduino TX (pin 11)</li></ul><p>Once the wiring is completed, load the below sketch to your Arduino:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cdde582e1d3a5f0663dbd39773a8b596/href">https://medium.com/media/cdde582e1d3a5f0663dbd39773a8b596/href</a></iframe><p>If everything went well you should see in your serial monitor something like the below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*CzmrcGR5QV1EgzeT.jpg" /></figure><p>At this stage the Bluetooth module is properly configured and ready to be used for communication with other devices.</p><p>The Bluetooth module can be now disconnected from Arduino because we need to connect it slightly differently.</p><p>To make sure the module works, I have created a simplest example (see below).<br>I want to turn ON or turn OFF two LED from my cellphone by sending simple command to Arduino.</p><p>The commands have the below simple format</p><pre><em># PIN — COMANDO</em></pre><p>where</p><ul><li><strong>PIN</strong>: pin number on Arduino</li><li><strong>COMANDO</strong>: ON or OFF</li></ul><p>As an example the following command:</p><pre>10-ON</pre><p>sets the pin 10 of Arduino to HIGH</p><p>while the command</p><pre>10-OFF</pre><p>sets the pin 10 of Arduino to LOW</p><p>I have created a very simple circuit wiring on breadboard shown below</p><p>I have connected pin 8 and 10 of Arduino to two LED through a current limiting resistor (don’t forget to add a 220 Ohm or similar resistor to protect the LED and the Arduino’s GPIOs).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*97MHPplcn79YwKYD.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*WA7I0zqPPsfxLW0n.jpg" /></figure><p>How you can see the JY-MCU Bluetooth module is connected to Arduino in a different way compared to the configuration phase. More in detail now the wiring is:</p><ul><li>Black -&gt; pin +5V</li><li>Brown -&gt; pin GND</li><li>Red-&gt; pin 0 (RX)</li><li>Orange-&gt; pin 1 (TX)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*xnje2wQ_ozbkly13.jpg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*OmnLfFwz3XwICwVG.jpg" /></figure><p>This way the Bluetooth module is seen by Arduino as a serial communication. I have created a simple sketch that is awaiting and executes a command received via Bluetooth protocol.</p><p>Obviously, the sketch is quite basic and used just to verify the operation and is not solid enough for a more serious use but should help figure out better how use the module itself.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/571aaac1ec30574711d0e4b46c2858e9/href">https://medium.com/media/571aaac1ec30574711d0e4b46c2858e9/href</a></iframe><p>Now that we have completed the configuration of the bluetooth module and the wiring of the simple test circuit, we can just load the sketch on Arduino.</p><p>To make sure everything works correctly I installed a simple app on my Android phone (for iOS there are similar apps).</p><p>The App I have used is called <a href="https://play.google.com/store/apps/details?id=Qwerty.BluetoothTerminal&amp;hl=en">BluetoothTerminal</a>.</p><p>This app allows me to type characters (commands) and send them via Bluetooth to my Arduino.</p><p>In the video you see that the LEDs turn ON and OFF when I send the correct command to Arduino.</p><p><em>The module I used has a pin equal to 0000 for pairing Bluetooth with the cellphone.</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FdkutDi0PE3s%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdkutDi0PE3s&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FdkutDi0PE3s%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/a5481f12908e962eebff57a33b3f2b97/href">https://medium.com/media/a5481f12908e962eebff57a33b3f2b97/href</a></iframe><p>As always I am open to any improvement or suggestion.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=290eac27abd0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MQTT 101 for ESP8266]]></title>
            <link>https://medium.com/@mancusoa74/mqtt-101-for-esp8266-5e95ca44df0c?source=rss-96f8ff28e430------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e95ca44df0c</guid>
            <category><![CDATA[arduino]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[mqtt]]></category>
            <category><![CDATA[esp8266]]></category>
            <category><![CDATA[esp32]]></category>
            <dc:creator><![CDATA[Antonio Mancuso]]></dc:creator>
            <pubDate>Fri, 13 Oct 2017 09:21:27 GMT</pubDate>
            <atom:updated>2017-10-13T09:21:27.977Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r-tpa0wHpFirJwrpjY085A.jpeg" /></figure><h3>Introduction</h3><p>Recently many people asked my help in the implementation of ESP8266 sketches to let two or more modules communicate over the MQTT protocol.</p><p>This article provides and describes a basic MQTT source code working skeleton to interconnect ESP8266 modules over MQTT protocol.</p><p>The goal of this code is to provide a start point to beginner developers to develop their application by extending it.</p><h3>MQTT</h3><p>The main site for MQTT (Message Queuing Telemetry Transport) is [<a href="http://mqtt.org/">http://mqtt.org/</a>].</p><p>MQTT is define in this way: <em>“MQTT is a machine-to-machine (M2M)/”Internet of Things” connectivity protocol. It was designed as an extremely lightweight publish/subscribe messaging transport.”</em></p><p>The basic and key actors in a <a href="https://it.wikipedia.org/wiki/Publish/subscribe">Publish/Subscribe</a> architecture are:</p><ul><li>A communication <strong>Broker </strong>: a central communication component which orchestrates all the communication processes and that manages the entire life-cycle of topics and messages</li><li>An agent which take the role of <strong>Publisher</strong>: sending messages to a specific topic living within a given MQTT</li><li>An agent<em> which take the role of </em><strong>Subscriber: </strong>receiving messages from a specific topic on a broker</li><li>A <strong>Topic: </strong>a dedicated communication channels between devices</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/465/0*CVSD9ptM7mskXB43.png" /></figure><p>In this architecture a Publisher communicates with one or more Subscriber without knowing its/their identity (any type of addressing)</p><p>In other words when a Publisher wants to communicate, it just sends a message to a broker for a specific topic.</p><p>After the message has been delivered to the broker, it’s broker responsibility to propagate the message to all the Subscriber which are “listening” of a given topic (Publisher and Subscriber must publish and listen on the same topic).</p><p>Such architecture is present in many different IT domains and it is not limited to MQTT only.</p><p>As an example (over simplified), the Pub/Sub architecture is used by most of the GUI systems (Windows, Linux, …). For instance when I click on a button in a window, the windows manager send a message (Publisher). The handler of the button is listening (Subscriber) and when receiving a message from the manager it execute a specific piece of code (i.e. close the window)</p><h3>ESP and MQTT</h3><p>The MQTT protocol and its Pub/Sub architecture perfectly fits in the communication between ESP8266 devices and between ESP8266 and the external world (cloud). This provides a very easy, lightweight and fast communication mechanism to be used in ESP8266 projects.</p><p>A huge advantage, from a networking and security point of view, is that a given ESP can communicates with external devices with no necessity to open a TCP port in the router/firewall (if you implement a more traditional web model yo must open a port in your firewall to accept incoming web requests).</p><p>The MQTT protocol is supported by virtually any platform out there and for sure by Android, iOS, Javascript. This allow for an easy communication between a mobile/web application and an ESP module.</p><h3>CLOUDMQTT</h3><p>The MQTT broker I typically use for my projects and in this sketch is provided by <a href="https://www.cloudmqtt.com/">https://www.cloudmqtt.com/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*NF8vDm-xyJdL8Dpb.JPG" /></figure><p>The cloud service is available in different pricing tiers, included my preferred one: the free of charge :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*vp4wcwc1uDfR-cwA.JPG" /></figure><p>Once you have sign-up to the service you can access the cloud console</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/411/0*XU1YYGALClr8kUY1.JPG" /></figure><p>Here you can find all the detailed information about your MQTT broker that you can use to configure the ESP sketch</p><h3>MQTT Basic</h3><p>The sample code allows one or more ESP to communicate over MQTT protocol and is available here <a href="https://github.com/mancusoa74/MQTT_basic">github</a>.</p><p>Below some important #define which should be configured before compiling and uploading the sketch to ESP8266</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*urTumVNHjmGij-kc.JPG" /></figure><ul><li>WIFI_SSID: the SSID of your WiFi network</li><li>WIFI_PASSWD: WiFi password</li><li>MQTT_CLIENT_ID: just a unique (random) ID for your MQTT client</li><li>MQTT_SERVER: the FQDN of the MQTT broker</li><li>MQTT_UNAME: authentication user name at the broker</li><li>MQTT_PASSWD: authentication password at the broker</li><li>MQTT_BROKER_PORT: listening broker port</li><li>MQTT_TOPIC: the MQTT topic on which exchange messages</li><li>ESP_NAME: a name for your ESP module</li><li>ESP_PUB_ROLE: ESP is behaving as a Publisher</li><li>ESP_SUB_ROLE: ESP is behaving as a Subscriber</li></ul><h3>ESP Libraries</h3><p>This code uses the following libraries</p><p><em>MQTT.h</em> and <em>PubSubClient.h</em> — v 1.99.0 — <a href="https://github.com/Imroy/pubsubclient">https://github.com/Imroy/pubsubclient</a></p><h3>MQTT Basic Testing</h3><p>The demonstration code can be tested either with 2x ESP communication between each other or 1x ESP and 1x MQTT client (for instance I will show how to use a <a href="https://mosquitto.org/">mosquitto </a>client on Linux, but any other MQTT client will be ok)</p><h3>ESP as Publisher</h3><p>On the ESP sketch un-comment #define ESP_PUB_ROLE, then compile and upload the generated binary to ESP</p><p>Once the program starts you can see in the serial monitor something similar to the below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/313/0*ImWyG0_WOUb_kjKI.JPG" /></figure><p>On a Linux shell you need to subscribe to this topic: <em>esp8266/sensori</em></p><p>you can use the following command:</p><p><em>mosquitto_sub -h &lt;host name&gt; -p &lt;port&gt; -u &lt;user name&gt; -p &lt;password&gt; -i &lt;client id univoco&gt; t- esp8266/sensori</em></p><p>where the parameters between &lt;&gt; are the one visible in your CloudMQTT cloud console</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*9RaObCU9eoYlZkwC.JPG" /></figure><p>As you can see from the screenshot, my client running on Linux somewhere in the Internet receives commands (the string “Hello I m ESP-my_ESP_8266”) from my ESP8266 running on my desk in my office. Pretty cool ah!!</p><h3>ESP as Subscriber</h3><p>On the ESP sketch un-comment #define ESP_SUB_ROLE, then compile and upload the generated binary to ESP</p><p>Once the program starts you can see in the serial monitor something similar to the below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/0*JrceB6JMp3ge0GPv.JPG" /></figure><p>On the Linux client now I send commands to my ESP through the following command:</p><p><em>mosquitto_pub -h &lt;host name&gt; -p &lt;port&gt; -u &lt;user name&gt; -p &lt;password&gt; -i &lt;client id univoco&gt; t- esp8266/sensori -m “hi this is another ESP8266”</em></p><p>where the parameters between &lt;&gt; are the one visible in your CloudMQTT cloud console</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*NphBuzxDgoJYytwl.JPG" /></figure><p>As you can see from the screenshot, my ESP8266 running on my desk receives commands from my Linux client.</p><h3>Conclusion</h3><p>The MQTT protocol and the Pub/Sub architecture are used in different environments and especially in the IoT market. They provide and lightweight and flexible communication mechanism that we can leverage to give our Arduino/ESP projects connectivity to the cloud or local network.</p><p>Let me know if you find this short introduction to MQTT on ESP useful and if use it in your projects send me a picture :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e95ca44df0c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ArduPiano]]></title>
            <link>https://medium.com/@mancusoa74/ardupiano-687fbd504f8a?source=rss-96f8ff28e430------2</link>
            <guid isPermaLink="false">https://medium.com/p/687fbd504f8a</guid>
            <category><![CDATA[capacitive-button]]></category>
            <category><![CDATA[arduino]]></category>
            <category><![CDATA[aluminium-tapes]]></category>
            <category><![CDATA[capacitive-sensor]]></category>
            <category><![CDATA[capacitive-key]]></category>
            <dc:creator><![CDATA[Antonio Mancuso]]></dc:creator>
            <pubDate>Tue, 10 Oct 2017 18:55:26 GMT</pubDate>
            <atom:updated>2017-10-11T12:31:44.276Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GaRRzaMX9oHvaWjEgKCffw.jpeg" /></figure><p>In this article I describe how I have built a simple capacitive keyboard with 7 key (kind of a single octave piano keyboard) with no soldering. I have only used a widely available aluminium tape, a bunch of wires and a Arduino Uno (this can be implemented also with other versions of Arduino).</p><p>Below I also provide the source code to compile and to run on Arduino</p><p>This simple project can be executed by kids/teens and by anyone willing to experiment with fun.</p><h3>Capacitive Sensor</h3><p>The core concept of this article and project is the building and implementation of a <a href="https://en.wikipedia.org/wiki/Capacitive_sensing">capacitive sensor</a>. In short I have implemented a key/button which can be activated only with a finger touch and with no mechanical parts or elements.</p><p>The idea behind this capacitive sensor is simply amazing and it is fully described <a href="https://playground.arduino.cc/Main/CapacitiveSensor?from=Main.CapSense">here </a>.</p><p>In short this technique is based on the idea of changing a logical state of an Arduino’s GPIO pin and then measure the time needed for a second pin to get to the same logical level.</p><p>This time gap is proportional to the capacitance measured on the pin and it increase while the finger touch the key/button.</p><h3>ArduPiano</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*wNLifspJTi8D19vm.JPG" /></figure><p>The above picture show the completed project and it is possible to see that I have only used aluminium tape and no soldering.</p><h3>BoM</h3><p>Below the list of the components and material I have used:</p><ul><li>7x aluminium tape rectangle (size is about 2.5 cm x 4.5 cm or 1 inch x 1.8 inch)</li><li>4x aluminium tape rectangle (size is about 10 cm x 1 cm or 4 inch x 0.4 inch)</li><li>7x 1M ohm resistor</li><li>9x conductive wire (normally the one used for jumpers on breadboard)</li><li>1x Arduino</li><li>1x Buzzer</li><li>1x cardboard to give a more solid structure to the project</li></ul><h3>Wiring Schema</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*TOWLoOs9XPw3ltr7.png" /></figure><h3>Source Code</h3><p>The source code is simple and can be understood by anyone. I have leveraged the <a href="http://playground.arduino.cc/Main/CapacitiveSensor">CapacitiveSensor</a> library to che the status of each key and I play the associated tone in case the finger is touching the key.</p><p>The code is available on my <a href="https://github.com/mancusoa74/ardupiano/blob/master/piano.ino">github</a></p><h3>…..and now let’s play a classic</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FI9QPrZM6HOU%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DI9QPrZM6HOU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FI9QPrZM6HOU%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/b5db64702a3eb8aa6a6cb92f97f9680a/href">https://medium.com/media/b5db64702a3eb8aa6a6cb92f97f9680a/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=687fbd504f8a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>