{"id":1432,"date":"2021-02-08T12:03:37","date_gmt":"2021-02-08T17:03:37","guid":{"rendered":"https:\/\/www.tigoe.com\/pcomp\/code\/?p=1432"},"modified":"2021-02-08T12:03:38","modified_gmt":"2021-02-08T17:03:38","slug":"what-i-did-in-january","status":"publish","type":"post","link":"https:\/\/www.tigoe.com\/pcomp\/code\/arduinowiring\/1432\/","title":{"rendered":"What I Did in January"},"content":{"rendered":"\n<p>January turned out to be a good time for tidying up my gitHub repos, because it was cold and there was no incentive to travel, and I had to quarantine for a few days in the midst of it (no symptoms, thankfully). As a result, I updated a few things. All of this is going into my connected devices class this semester.<\/p>\n\n\n\n<p><a href=\"https:\/\/tigoe.github.io\/html-for-conndev\/\">Just enough HTML for Connected Devices<\/a> &#8211; If a device connects to your phone or laptop, you&#8217;re going to need to build an interface for it at some point, and the Document Object Model (HTML\/CSS\/JavaScript) is a quick way to do it. I put together some examples for various ways to do that. Most of this is a thin wrapper around the Mozilla Developer Network pages, with a focus on connecting. A couple of highlights:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/tigoe.github.io\/html-for-conndev\/\">Generate a QR Code<\/a><\/li><li><a href=\"https:\/\/tigoe.github.io\/html-for-conndev\/serialport\/\">Serialport<\/a> example with p5.serialport (not using p5.js itself though) and Arduino_JSON library<\/li><li>Finally got the hang of <a href=\"https:\/\/tigoe.github.io\/html-for-conndev\/fetch\/\">fetch()<\/a><\/li><\/ul>\n\n\n\n<p><a href=\"https:\/\/tigoe.github.io\/mqtt-examples\/\">MQTT Examples<\/a> &#8211; I&#8217;ve been working on this one since last summer in bits and pieces, but now there&#8217;s enough there to be useful. All microcontroller examples were written with the Arduino Nano 33 IoT, though any of the WiFi-enabled Arduinos should do the trick. The browser-based stuff is all in p5.js, but I&#8217;ll add some plain vanilla JS examples soon. There are some nice GUI tools available now too, like <a href=\"http:\/\/mqtt-explorer.com\/\">MQTT Explorer<\/a> and <a href=\"https:\/\/www.shiftr.io\/desktop\/\">shiftr.io&#8217;s desktop broker<\/a>. My favorite example in this repo is the <a href=\"https:\/\/tigoe.github.io\/mqtt-examples\/#web-midi-client\">WebMIDI to MQTT examples<\/a>. <\/p>\n\n\n\n<p><a href=\"https:\/\/tigoe.github.io\/websocket-examples\/\">Websocket Examples<\/a> &#8211; nothing special here, but the topic comes up enough that having a set of examples on hand was something I needed. Easy to compare and contrast Websockets and MQTT now too.  A lot of folks don&#8217;t know the ArduinoHTTPClient library can also do websockets, so I threw that in. <\/p>\n\n\n\n<p><a href=\"https:\/\/tigoe.github.io\/PiRecipes\/\">Pi Recipes<\/a> &#8211; this is an older repo, but I updated it to make it a bit easier to find things. Quite pleased with the <a href=\"https:\/\/tigoe.github.io\/PiRecipes\/timelapse-cam\/\">timelapse webcam example<\/a> that Nun Tansrisakul inspired me to write. <\/p>\n\n\n\n<p><a href=\"https:\/\/tigoe.github.io\/Wifi101_examples\/\">WiFi101\/WiFiNINA Examples<\/a> &#8211; another older repo, but a bit better organized now, I hope. Moved some things to their own repos when it was merited. <\/p>\n\n\n\n<p><a href=\"https:\/\/tigoe.github.io\/display-examples\/\">Display Examples<\/a> &#8211; still working on this one, but I got obsessed with making QR code examples from an Arduino, so I wrote something using Richard Moore&#8217;s <a href=\"https:\/\/github.com\/ricmoo\/QRCode\">arduino qrcode <\/a>library, then duplicated it for <a href=\"https:\/\/tigoe.github.io\/display-examples\/qrcodes\">ePaper, TFT, and OLED screens<\/a>. Figured it was as good a time as any to put together what experience I have working with screens and microcontrollers. <\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/tigoe\/hid-examples\">HID Examples<\/a> &#8211; not prettied up yet, but put together a few more notes on using the HID examples for Arduino. <\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/tigoe\/NodeExamples\">Node Examples<\/a> &#8211; also not prettied up yet, but added notes for using these on Glitch or on a CLI. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>January turned out to be a good time for tidying up my gitHub repos, because it was cold and there was no incentive to travel, and I had to quarantine for a few days in the midst of it (no symptoms, thankfully). As a result, I updated a few things. All of this is going &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.tigoe.com\/pcomp\/code\/arduinowiring\/1432\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;What I Did in January&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,24,100,103,104],"tags":[],"class_list":["post-1432","post","type-post","status-publish","format-standard","hentry","category-arduinowiring","category-circuits","category-code","category-javascript","category-node-js"],"_links":{"self":[{"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/posts\/1432","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/comments?post=1432"}],"version-history":[{"count":1,"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/posts\/1432\/revisions"}],"predecessor-version":[{"id":1433,"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/posts\/1432\/revisions\/1433"}],"wp:attachment":[{"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/media?parent=1432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/categories?post=1432"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/tags?post=1432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}