Get Your Microcontroller Online At The Speed Of Light

When developing a network-enabled project with the ESP8266 or ESP32, the easiest way to handle WiFi credentials is to just hardcode the access point and encryption key into the program. But that means recompiling the firmware if you ever want to use it on a different network, which isn’t really an option if you’re trying to make something that other people can easily use. If you’re expecting grandma to bust out the UART cable, we’ve got bad news for you.

There are various ways around this problem, but we think the one developed by [Pekka Lehtikoski] is particularly clever. With a simple application, network credentials can be literally “flashed” to the waiting microcontroller by rapidly blinking the flash LED on an Android device. This allows the information to be transferred quickly and easily regardless of the user’s technical proficiency. One could even make the argument that it’s more secure than some of the other methods of doing initial setup, since an eavesdropper would literally need to see you do it if they wanted to steal your encryption key.

[Pekka] has made the source code for the Android application and the “Gazerbeam” library open for anyone who wants to include the capability in their own projects. To pick up the blinking light you just need to add a phototransistor, an opamp, and a handful of passives to your circuit; making this solution cheap enough that you could even use it in a small-scale production run. The concept isn’t limited to network credentials either. Whenever we can hold conferences again, it could be an interesting way to let attendees customize their badge.

Of course, [Pekka] isn’t the first person to use this trick. Hackers well versed in the history of WiFi MCUs may recall that the Electric Imp used a very similar method of configuration called BlinkUp. If you ever come across a device that asks you to put your phone’s screen down on a little window to perform the initial setup, there’s a good chance it has an Imp inside.

Glowing Eyes Project Keeps It Simple This Halloween

Halloween’s on its way and we want to remind you to get started early so you can show us what you’ve got in store for the little ones this year. [Pete] already finished a simple project to spice up the bushes in front of his house. His trio of glowing and blinking eyes will make a nice addition to the bushes in front of his house. Each is made from a pair of over-sized LEDs mounted on popsicle sticks. After passing the leads through holes in the wood, they are soldered to some resistors and cat-5 cable. The conductors are covered in hot glue to help protect from moisture, and then they’re ready to be driven by the ATtiny2313 which uses random numbers to help ensure the blinking doesn’t look timed. Check out the video after the break to see how he did.

This is a great example that you don’t have to take on the most complicated project in the world to be appreciated. But if you’re looking to be remembered for years to come you might want to aim high by building something like the trash-can jack-in-the-box, or a puking pirate.

Continue reading “Glowing Eyes Project Keeps It Simple This Halloween”