Electrifying ideas, grounded in the field

Painless handling of dates, times, events and calendars on embedded systems

I do not enjoy dealing with the vagaries of calendar dates and times… Actually, I pretty much hate it. It’s mostly because I have little patience for arbitrary rules and convoluted systems, and anything as old as the notion of date-times is always filled with historical cruft: half-baked rules, a bunch of incompatible, random-looking, bases…

Read more

Rick and Morty Portal Gun: Design, Implementation and Assembly
Rick & Morty Portal Gun

I love Adult Swim’s Rick and Morty so, for Halloween this year, I created my own version of Rick Sanchez’ Portal Gun–including a 3d-printed enclosure, printed circuit board, negative energy density tube/crystal thingy, wave file player and laser. Here, I’ll go over the design and construction, as well as a few lessons learned along the…

Read more

BLE Nano: Review, Tips and Workarounds
BLE Nano Review and Tips

I’ve recently had to develop an application using the BLE Nano platform. The BLE Nano is a little module built around the Nordic nRF51822 SoC, along with a minimalist set of support components  including an on-board antenna for the bluetooth wireless connection.  The Nordic itself provides all the Bluetooth low energy functionality and hosts your…

Read more

Squeezing the most out of Raphaël JS for SVG generation

A few hints about squeezing maximum performance out of Raphaël. When you want to generate dynamic SVG images using Javascript, either on a website or within a Cordova-type project on mobile devices, the Raphaël library is pretty sweet.  Raphaël has a nice, clean, API and lets you do pretty much anything graphics-related and it sticks…

Read more

BLE112 In-system Programmer

I do a lot of work with bluetooth low energy (BLE or bluetooth v4.0) and have a few different BLE modules I’ll turn to, but often end up using the Bluegiga BLE112 (as evidenced by my DIY BLE112 breakout).  It’s a great chip but one thing that can get annoying is programming the thing. Whether…

Read more

The Handicraft Router

This is a quick post to share a technique I recently invented (or, more likely, re-invented) that can be of great help when you’re trying to layout a circuit but are overloaded by possibilities: the handicraft router. In this specific case, I was trying to get the outputs from a bunch of digital potentiometers to…

Read more

The easiest way to make objects out of thin air (and a touch of PLA)

Today, I finally took the plunge and started exploring how to make 3D printing work for me. I’ve always stumbled when it came time to deal with enclosure and the mechanical aspects of my work, preferring to leave it to some other player in the process or, at best, cutting holes in a standard project…

Read more

Rectifier/Voltage Regulator module: post-mortem

Needing a modular power supply that could handle a few amps and both AC and DC input, I recently designed a circuit to perform the task.  Here I’ll go over the main points and a few lessons learned.

Using the on-board Real-Time Clock

So you’re programming for a platform with a built-in RTC… cool.  Now what? Most (all?) XMEGA‘s have an on-board real-time clock, some can even be backed-up by a distinct battery (like the xmega256a3bu, shown below) which can be a real time saver (oh, the pun-anity!). The question then becomes how to best use it. I’ve…

Read more

Reliable 3G connections with Huawei E182E/E173s on Raspberry Pi

I just finished a project for which I we needed to connect a raspberry pi to a distant server, over a 3G connection.  The module was to be autonomous–it would be powered on demand and needed to reboot into a consistently usable state to perform its duties. Creating a shield (or “HAT” in Pi terminology)…

Read more