TinyCompass Tutorial

by Tony Batey February 12, 2016

TinyCompass Tutorial


Overview

In this demo, we will be building a compass using the TinyShield Compass in addition to the Circle Edge LED Shield and TinyDuino Processor Board.


Step One: Materials

 

 

 

 

 

 

 

 

 


Step 2: Programming the TinyDuino

Before starting, the proper drivers must be installed to detect the COM ports. These drivers must be installed before downloading any code from the Codebender plugin. These drivers can be found here.  

The code below was used for the TinyCompass and has comments throughout to help explain what is going on. The magnetometer used for our compass board is the Honeywell HMC5883L 3-axis compass. This code can be downloaded to your computer or directly uploaded to your TinyDuino processor board.


Step 3: Calibration

    

After your TinyDuino has been programmed, you can remove the USB Shield. Each time you turn on or restart the processor, you will need to calibrate it. to calibrate, simply rotate the stack of boards 360 degrees on each axis(the gifs above show exactly what to do). We now have a fully functional TinyCompass! Because of how sensitive the HCM5883L chip is to ferromagnetic materials, certain metals (magnetized or not) within a two inch radius of the chip will cause disturbances.


Downloads:



        
      
        
        

Tony Batey
Tony Batey

Author



Also in Learn

TinyDuino GPS Tracker + Data Logger Tutorial
TinyDuino GPS Tracker + Data Logger Tutorial

by Lilith Freed February 08, 2017

Follow this simple tutorial to build your own portable GPS device!

View full article →

Wifi TinyShield Tutorial (with Cayenne IoT)
Wifi TinyShield Tutorial (with Cayenne IoT)

by TinyCircuits Staff February 01, 2017

Our newest version of the Wifi TinyShield provides users with the ability to easily connect their TinyDuino stack to the...

View full article →

Flash Memory TinyShield Tutorial
Flash Memory TinyShield Tutorial

by TinyCircuits Staff January 23, 2017

Learn how to utilize storage on the Flash Memory TinyShield with your TinyDuino or TinyScreen+!

View full article →