SOLVED! I can’t upload Arduino sketch to Wemos D1 Mini ESP8266

ESP8266 Wemos D1 Mini pinout

ESP8266 Wemos D1 Mini pinout

My Wemos D1 Mini WiFi boards had arrived from China1 on Friday and I’ve been fiending to build… something with them.

Unfortunately, I couldn’t get the very basic “blink” sketch to upload.  Here were my symptoms:

  • When uploading, I got the “error: failed to open” message
  • My Windows computer flashed a message when I connected the board, saying it was an unrecognized device
  • The Device Manager showed a little “alert triangle” suggesting the proper drivers were not installed
  • All of the ports in the Arduino IDE were disabled and greyed out

I tried several different upload speeds and several different USB micro cables to no success.  It was not until I found this post explaining that I needed to update the Wemos drivers along with a handy link to said drivers.

Now that I got this board blinking, I can’t wait to get it to do MOAR…

Default Series Title

Update:  My buddy Chris pointed out that I’ve been mixing up ESP32 and ESP8266.  I’ve corrected the title now.

  1. $13 for four boards plus headers?! []

Bamboo Illuminated Dome

Pieces for a Bamboo Illuminated Dome

Pieces for a Bamboo Illuminated Dome

I’ve always liked the idea of geodesic domes, but haven’t had the space, time, or ability to actually assemble one.  On top of all that, I was having trouble coming up with an idea for struts that would be both sturdy and cheap enough to build a dome at a reasonable cost.

Until I went to the grocery store recently.  The local supermarket had a clearance table with long bamboo skewers.  I realized these could probably work really well as struts and they were extremely cheap to boot.  I bought a few a the store to try out, but ultimately turned to Amazon for my bulk bamboo purchase.

I’ve already designed the connectors to work with these bamboo skewers.  You can try them out here on Thingiverse.

Once I’ve got the skewers cut to size and the remaining connectors printed, I’ll be wrapping the entire structure in that stretchy plastic wrap used for protecting furniture when you are moving. 1  Then I’ll be putting some LED’s and possibly a laser inside to make it more interesting.  :)

Lasers.

Default Series Title
  1. We have two rolls left over from the last two times we moved… []

Practical 3D Printing for Everyone

3D printing can sometimes get a bad rap.  At first people are excited by the possibilities, then after printing a few trinkets the novelty can really start to wear off.  However, our 3D printers have become an absolutely critical part of our home repairs.

We have printed literally dozens and dozens of things in and around our home.  As of the time I’m editing this post, we’re up to 82 things so far!  The vast majority of these are completely bespoke custom creations, with a few things that are printed from Thingiverse or mashups with things from Thingiverse.

My proposed Maker Faire Bay Area 2018 Presentation submission is for a presentation that discusses:

  1. Practical things everyone can 3D print for their own home
    1. Repairs
    2. Improvements
    3. Other useful things
  2. 3D Printing with Family and Friends
    1. Specifying a purpose (“Honey, can you make me something that…”)
    2. Specifying dimensions and purpose (“I need something that will…”)
    3. Simple techniques for creating replacement parts (using good reference photos, GIMP, Inkscape, and OpenSCAD)
  3. 3D Design with Family and Friends
    1. Photographs
    2. Sketches
    3. TinkerCAD and Sketchup
Default Series Title

ESP WiFi Board Experiments

A friend of mine pointed me in the direction of some ESP32 board tutorials over at MsRaynsford.co.uk.1 You know it’s a fast moving area when a post that’s less than a month old already has a dead link.  :)  Rather than re-creating all the tutorials that are already out there, I’m going to just jot down my notes and links as a short of “quick start guide to quick start guides.”

  1. ESP Boards
    1. There’s several different “flavors” of ESP WiFi tech, however it seems as if they all break down into one of three different categories.
      1. Bare ESP WiFi module.  These require a bit of effort to make work since the bare module requires the pins to be broken out to be made useful.
      2. ESP WiFi breakout boards.  This type of board, which has 8 pins broken out, requires a programmer.  Since these 8 pins are arranged in a 2×4 pattern, they can’t be used directly in a breadboard.
      3. ESP WiFi development boards.  These board seem to have lots of pins broken out and typically a USB connector.  Since these boards have more features (voltage regulators, compatibility with other boards’ form factors, USB communication built-in), they’re going to be more expensive.  There’s the Adafruit Huzzah, the Sparkfun ESP Thing, and then something called the ESP Wemos D1.
    2. There are several different ESP modules and boards which have varying amounts of space from 512kb to 4MB and varying amounts of pins from 2 to 24 pins.  These modules all tend to have different names (ESP-01, ESP-07, etc, etc) but are all known as ESP8266.
    3. The ESP modules require 3.3v, so a 5.0v USB or other source will fry them.  Plan accordingly.  Some development boards have voltage regulators on them to adjust the power going to the module.
  2. Correct Board Manager URL for ESP boards
  3. An overwhelming amount of information for ESP boards
  4. Ordering Boards
    1. I’m ordering several boards off of Aliexpress.  I’m getting a few Wemos D1 boards, since they’ll be easy to prototype with2 , and a few ESP-01 breakout boards and a single programmer to toss into a project.  Then again, at <$3 a piece for the Wemos boards and <$2 a piece for the ESP breakouts, it doesn’t make a ton of sense to stretch to put the ESP-01’s into a project.  My thinking is that most any project I build will only use a pin or two and not be too terribly complicated anyhow, so that once it’s been prototyped I can just burn it into the ESP-01’s and permanently install it into a project.
    2. I’m not exactly sure which what WiFi enabled things I’d like to build yet. 3  Here are some ideas:
      1. A pair of tap lights that are connected over the internet.  I’d tap one before I left work, it would flash a color to let me know it sent a message, and the other one at home would light up to let my fam know I was on the way.  I guess it’s similar in theory to this.
      2. A button to call an Uber or Lyft.
      3. A button that will email or call my cell in 2-5 minutes from the time I press the button.  Useful when I know someone who stepped into my office isn’t good at taking a hint.  Or when I need to get off a conference call.
      4. A button that can be used to log simple events.  Might be useful at work in a variety of ways.
      5. A button that will automatically start a print job on my WiFi enabled 3D printer.
Default Series Title
  1. Another tutorial here and here []
  2. Solder in headers, connect via USB, drop in breadboard, prototype away []
  3. Sometimes I will buy a few parts I know will be useful, spend some time tinkering with them, and then later build something when inspiration strikes. []

Hacked Tap Light Enclosure

Just seeing a post and pile of code about a project isn’t always that interesting.  The nifty thing about this project is also one of the problems.  They’re cosmetically identical – so you can only tell which one you’ve got by activating it.  :)

I couldn’t be more pleased with the way this project came out.  I basically took my daughter’s setup based off an Adafruit Circuit Playground, built a more specialized (and louder!) version into a breadboard using an Adafruit Trinket, and then ported the entire design into an ATTiny85.  The only thing I would change about it would be to add a socket for the ATTiny to make it easier to modify down the line.

Default Series Title

Cheapest Easiest Easy Button Hack EVER

But... could it be even EASIER?!

But… could it be even EASIER?!

I’ve always liked the idea of the Staples Easy Button.  Not so much a button that says “That was easy,” but the idea of having an enormous button on my desktop that would do… anything at all.  Official “Staples Easy Buttons” used to sell for about $20 and are now only about $7.  But, this is still a lot to pay for a big button that I’d want to gut anyhow.  Recently I figured out a way to build a big useful button, very inexpensively.

The secret sauce is … a tap light!  You can buy a pack of 4 big (10cm diameter) tap lights for under $4 and they’ll ship free as a “Prime add-on.”  For less than $1 each, you get a three AA battery holder, toggle on/off switch, a bright LED, all neatly organized into a big plastic button.  This button also has another “feature” which is missing from many other pricier options.  The dome over the light is white – which means you can put any color LED or, as I did, an Adafruit Neopixel inside and the dome will change color accordingly!

Here are some pictures of the disassembled tap light so you can see if it would work for you.  I had originally bought these so that I could put a light right next to my newest 3D printer.123

There’s actually quite a bit of room inside the tap light for a small project.  I was able to pack a Neopixel, a small buzzer, an ATTiny85, and a rat’s nest of wires.  I expect this project to take a lot of abuse at Maker Faire, so I applied a liberal amount of hot glue inside to hold the wires down and out of the path of the springs, switch, case, and the likely path of the button dome.

Once reassembled, there really isn’t any way to tell the button was hacked.  It looks identical to three other tap lights.  I just love that I was able to make use of the battery holder and existing switch inside the project.  The 4.5V supplied by the batteries is perfect for powering my ATTiny85 and lone Neopixel.  If you’ve got a junk drawer, you could probably build something very similar for about $2-3.4 As it is, I “splurged” by using $1 worth of Neopixel because I was being lazy and didn’t want to either wire up three sets of LED’s or track down three resistors to go with an RGB LED.  Even so, this is an incredibly cost-effective project enclosure.

15 Second Timer-Buzzer

15 Second Timer-Buzzer

In case it’s of interest to you, this project is the newest iteration of our 15 Second Timer-Buzzer from my daughter’s 15 Second Drawings project for Maker Faire Bay Area 2017.  The prior version used an Adafruit Circuit Playground, a 100mm Red Button, and a LiPo battery and probably cost around $40 or so. 5

All of the code is on Github. Basically, the buzzer flashes amber three times with a very short tone in between flashes, then turns green for 14 seconds, amber for one more second, and then turns red and buzzes angrily to let you know time is up.  I had written most of the code to work on an ATTiny45… until the code ballooned to a whopping 4560 bytes and I had to switch to an ATTiny85.6 If I had to build this over again, I’d solder in an 8-pin DIP socket for the ATTiny rather than mutilating the chip and hot gluing it directly to the inside.  ;)

Default Series Title
  1. I have a power strip next to it, but it’s fully utilized, I only need a little bit of light sometimes, and I was getting tired of holding a flashlight on it at night []
  2. In my tradition of naming my 3D printers after characters from Futurama, my Monoprice Mini Delta is named “Roberto.” []
  3. My prior 3D printers are Bender the MakerBot Cupcake CNC, Flexo the MakerBot Thing-O-Matic, and HedonismBot the Replicator 1 Dual []
  4. I figure about $1 for an ATTiny85 and $1 for the button.  Most people can find a way to scrounge an RGB LED or a few different LED’s, an old buzzer or piezoelectric disc, and some bits of wire []
  5. Not counting the gelato we ate, of course []
  6. What a waste!!! []

Maker Faire 2018: The Wandering Artists – 15 Second Drawings

My daughter and I are super excited about our Maker Faire project this year.  Last year she brought her “15 Second Drawing Challenge” project to Benicia Mini Maker Faire and Maker Faire Bay Area.

Her project was so much fun that when she invited me to team up and take the show on the road, I jumped at the chance.  This year we’re bringing a new and improved timer/buzzer hacked together from a cheap tap-light and a pop-up table/booth.

We’re taking photos of the build process and will post them along with tutorials, parts lists, and source code for everything.  Here’s everything you need to know to build a cheap timer-buzzer out of a tap light.

Default Series Title

Organizing

Everyone utilizes their own method of organization, notetaking, and motivation.  Some use “Getting Things Done,” others go with “Inbox Zero,” or the “43 folders,” there’s Jerry Seinfeld’s “Don’t Break the Chain,” and a new one called the “Bullet Journal.”

I’ve tried some of these methods, combinations of these methods, and here’s what I’ve come up with for my own life.

  1. E-Mail
    1. Reply quickly.
      1. As Tony Soprano once said, “more important than the particular decision is that it happen in a timely fashion.”  My number one rule of email management is simply this – reply immediately to anything that deserves a reply.  Any timely response, even a non-optimal one, is better than a polished late response.
      2. If you can’t get a quick response out because some action is required…
    2. Act or Delegate, even to yourself.  If there’s something to be done, do it already.  From now on, you live in a world of “to done’s” not “to do’s.”  If you can’t do it, then figure out what needs to happen first and work on that.  If someone else needs to do it, ask them to take care of it and let you know when they’re done.  If you need to do something else, copy yourself on the email and ask yourself to do it.  Your own email will arrive in your inbox and you’ll need to…
    3. Start a draft.  If the matter really requires more information than you have at your fingertips or isn’t urgent, start a draft.
    4. Turn drafts into emails.  Every day turn drafts into emails and send them out. Since my job has become roughly 80-90% email, this is how I manage it all.
    5. Ignore unimportant emails.  Most of your emails are unimportant.  Ignore them, mark read, move on.
  2. Web Surfing
    1. Tabs.  Tabs are the enemy.  They will rob you of your productivity.  If you open a tab, read it, enjoy it, and close it or decide it is information you want to retain.  If it is truly important and something you’ll need to refer to all the time, bookmark it.  But, remember…
    2. Bookmarks.  Bookmarks are the enemy.  These are kept to an absolute minimum and only for sites you really visit all the time.  Otherwise, that information you wanted to keep will be lost in difficult to search bookmarks forever.
    3. Everything else.  If you find a web page, tweet, or some other information that you want to keep or reference in the future, share it or make a note.
  3. Sharing
    1. If you share information you help a friend and preserve the information in your sent folder, twitter stream, etc.  Otherwise, make a note.  The thing with notes is…
  4. Notes
    1. There are only two kinds of notes in the world.  Information that is of temporary use and information that is of permanent use.
    2. Temporary notes.  Write these on whatever you have lying around.  Discard when done.
    3. Permanent notes.  A permanent note really comes down to how you want to treat information.  I like information either in an electronic searchable format or I want it written down so I can reflect on it or refer to it later.  A permanent electronic note goes into Google Keep or an email to myself, in outine format, listing things in no particular order, with a few keywords in the subject line and body of the email near the link.  When I need to find it again, I just search in Google Keep or for emails from me and specific keywords.  A permanent written note goes in my…
  5. Notebook
    1. The problem with the Bullet Journal method is that it requires setup, discipline, and maintenance.  If you screw those up, the notebook and all the lovely page numbers and organization systems become a burden, a hassle or, worse, useless.1
    2. There are so many great things about keeping a notebook.  It’s a quick and easy way to record interesting and useful information.  While my handwriting is horrible, but I’m pretty decent at drawing and sketching.  A notebook for me is something where I can brainstorm, start drafting an idea I can return to later, or where I can record information for posterity.  I tend to work out ideas on scraps of paper before recording that data in a more permanent format by committing it to my notebook.  Sometimes this means copying information by hand or, my personal favorite, literally cutting and pasting information into the notebook.  The worst thing is probably that it isn’t particularly searchable.
    3. Title and Date.  Every entry in the notebook starts on a fresh page with the date at the top right corner and a helpful title at the top of the page.  The date does more than provide you with context.
    4. Cross Referencing.  The dates at the top of the page function as your page numbers.  When you need to refer to a page in the past, rather than referencing a page number, just reference the date of the prior page.  When you write a cross reference down to a prior page, note the future date on the prior page.
    5. DIY Flags.  I placed several pieces of duct tape inside the front cover of the notebook.  On top of that, I put several small 1/2″ x 1″ pieces of duct tape.  These can be peeled off easily and folded over a page for a sturdy bookmark.  More on this later.
Default Series Title
  1. Well, this is my theory.  I don’t actually know since I haven’t actually tried the Bullet Journal method… []