Magnetometer IV: Code Size

Last time, I presented a working proof-of-concept of a digital compass based on a three-axis magnetometer. That version was running in userland on a Raspberry Pi running Raspbian, which is a whole lot more computer than the Atmel ATtiny85 I eventually want to target. It was also coded for clarity rather than for speed or size.

In this post, I'll look at some quick-and-dirty ways to estimate program size for an AVR version (as well as some simple things we can do to save space). Read on for more.

Read the rest of this entry »

Tags: , , ,

Magnetometer III: Working Prototype

In previous posts, I talked about a method of transforming magnetometer readings to compass headings, then experimented with using those transformations on real (but static) data. In this post, I'll present a working prototype of a vehicle compass using the methods I discussed earlier.
Read on for more details.
Read the rest of this entry »

Tags: , , ,

Silverware Dragon

dragon-silverwareCheck out this dragon made of silverware, from Ohio artist Gary Hovey. (Long-time readers -- both of them! -- will noddingly remember the previous appearance of utensil-based dragon sculpture in these pages.)

Tags:

Magnetometer II: Real Data

In a previous post, I speculated about a method of converting magnetometer readings to compass headings using affine transformations (specifically, three elemental rotations). In this followup, I'll gather some real data, then see how those transformations actually work in the real world. Read on for details.

Read the rest of this entry »

Tags: , , ,

Magnetometer Reading to Compass Heading

I'm working on building a digital vehicle compass, using the Honeywell HMC5883L three-axis magnetometer as a sensor. Answering the question "Which compass direction am I facing?" from the raw sensor output data is somewhat more complicated that you might expect. This is especially true when using a microcontroller like the ATTiny85 with extremely limited memory. Read on for a discussion of the problems involved and my solutions. Read the rest of this entry »

Tags: , , , ,

I2C with ATTiny85 on Adafruit Trinket

SONY DSCThe Trinket microcontroller from Adafruit Industries is a tiny and inexpensive (US$8 for a single unit) way to control your electronics projects. One of the coolest things about it is that you can do I²C (and communicate to lots of inexpensive sensors and displays using only two pins) and still have plenty of room left over for your code in the ~5.5KB of flash on board.

Read on to see an example of how to do I²C communication on the Trinket (or anything with an Atmel ATTiny85)  while shaving every possible byte. Also included: driving the Adafruit Mini 8x8 LED Matrix with I2C Backpack. Read the rest of this entry »

Tags: , , ,

BeagleBone Black PRU: Hello World

This article presents what is meant to be the simplest possible example of using the PRU (programmable realtime unit) on the BeagleBone Black single-board computer. The example program has no inputs and no outputs; it does nothing other than delay for a fixed duration then exit. Read on after the jump...

Read the rest of this entry »

Tags: , , , , ,

Дракон

d3aa59c54ad861119104cdd14f27f6a3Moscow-based artist Cuarto has created Darkhorn: a brilliant posable dragon figure with ball joints. See his blog post talking about it (in the original Russian) or the same page machine-translated to English. (The image to the right and all images after the break are from that site.)

As you can imagine, they're not cheap and there's (at the time of this writing) a long waiting list. Nonetheless, there is an English-language order page where you can join the queue.

More images after the break. Read the rest of this entry »

Tags: , ,

Cake Time

amazing-wonderful-cakes-22Another lovely dragon cake, this time via theCHIVE. Original source unknown; please comment if you know who made this or took the picture.

Tags: , , ,

Ice Dragon

ice-art-dragonThis ice dragon is from a work entitled "Hunting Dragons", by Steve Brice, Heather Brice, Steve Cox and Justin Cox. (I presume and hope that the title refers to the dragons in question hunting their prey.)

The sculpture won first place in the Realistic / Artists' Choice category in the 2013 World Ice Art Championship in Fairbanks, Alaska.  The photo is via The Chive, and is unfortunately uncredited. (If you have information about the photographer, please let me know and I'll add appropriate attribution.)

Another image available after the break.

Read the rest of this entry »