All posts by kirsch

iPhone extreme sports

True story from this morning:

I got in the car in order to leave for work. I had my laptop in its bag and my giant coffee mug. I opened the driver side door to throw them in, then went around, got in the car and drove to the office.

As I was driving, I noticed my phone wasn’t in my pocket and I couldn’t see it. However, thanks to the magic of Apple Watch I could see that it was in range. So I dropped it and it’s under the seat or something.

On the first stoplight I used the nifty “make iPhone ping” feature from the watch. I could hear it, but faintly. So maybe it’s under the rug or something? I couldn’t find it. Second and third stoplights were the same. So I decided to wait until I park at work.

When I parked, I opened the door so I can better crawl under the seats. Ping – and now I could hear it loud and clear. What the hell?

And there it was:IMG_0003

IMG_0004

I bought the case with the following criteria in mind:

  • good looking
  • thin
  • inexpensive
  • transparent
  • rubbery (not hard)
  • protects the front of the phone

I never added “good car paint grip” to the list. Got lucky.

In case you care or plan on letting your phone air out while you drive down the highway, this is the case (Amazon) that saved me from re-purchasing a $750+tax brand new phone.

Year One

It’s been one year since the posting frequency on The MKX® dropped dramatically even though an extra staff writer was added at the same time. What’s the reason?

It’s the best and the most fun reason in the world. It’s also the same reason why I sleep less, my back constantly hurts, and the Plaza Sésamo theme song is stuck in my head.

Below are some photos of the reason. See Ilán in his birthday suit (not naked) right before his first sugar rush:

IMG_2307
IMG_2353
IMG_2510
P1013420

Mega-Party photos may or may not follow.

ESP8266, NodeMCU, and my garage

The remote on one of my garage doors stopped working. Coincidentally, right around that time Trung mentioned the ESP8266, a very cheap (around $3) Chinese chip with built-in WiFi and a bunch of GPIO. Also, there’s a project called NodeMCU around this chip, which puts a Lua interpreter on it.

What does this all mean? That with very little investment and some time, I can create a small circuit that connects to the motor of my garage door so I can control it from my iPhone.

Long story short, I went through several different versions of boards with the chip. I started with the super cheap but barebones ESP-01 but using that required too many extra things (USB-Serial adapter, 3.3 V power supply, more wiring). I finally settled on the official NodeMCU devkit, which is extremely nice. I hadn’t done any electronics in many years, but that went well.

Official-original-only-V2-not-V3-Esp8266-NodeMCU-v2-Lua-WIFI-network-development-kit-board-based
NodeMCU devkit. It’s very nice because the built-in USB port provides power and to-serial conversion. Just pop it on a breadboard.

I ended up writing a general purpose web server for NodeMCU: the Open Source and creatively named nodemcu-httpserver. The garage door opener software is just a small web application running off the chip itself. It’s one of the demos I packaged with the server.

FullSizeRender 5
My garage door opening circuit. Almost as elegant and dense as the insides of an Apple Watch. I used zip ties to attach everything to the lid of an H-E-B tupperware. A couple of relays act as the push-buttons that control the garage door motors.
IMG_4123
This is what the “app” looks like. It’s a simple web page served from the chip. When you push a button, it opens the corresponding garage door.

Without further ado, the video:

The nodemcu-httpserver project I started has gotten some traction. The server, while limited (the chip has very little memory), works relatively well. It’s pretty cool to see that other people are using the software and starting to contribute. And it’s making rounds:

  • It was mentioned in this tutorial online, screenshots and all!
  • On this Russian website, people are probably mocking my coding.
  • On Slide 7 of this presentation there’s a screenshot of an early version of the Garage Door application.
  • Artem Pastukhov, who has been one of the most knowledgeable contributors to nodemcu-httpserver and the NodeMCU firmware itself, posts about a little app he did for nodemcu-httpserver here.

 

 LabVIEW API for Nest

A while ago, after we installed our Nest thermostats in our respective homes, Jaramillo and I got together and created a LabVIEW API for controlling the Nest – meaning it makes it super easy to control the Nest from your LabVIEW (NI‘s graphical programming language) program.

My guess is that the number of 1) LabVIEW programmers with a 2) Nest thermostat who want to 3) write their own programs to control it is quite small. But it was a nice little learning project.

It has since been posted in LabVIEW MakerHub and improved upon. They even made a video:

I expect zero The MKX® readers to use it, but at least it’s now been recorded here for posterity.