Using the Compass TinyShield

by TinyCircuits Staff February 18, 2016

Using the Compass TinyShield

The TinyShield Compass lets you perform low-field magnetic sensing, to allow for low cost compassing and magnetometry. This TinyShield is based around the advanced Honeywell HMC5883L Digital 3-axis compass.

 

Powering the System

The Honeywell HMC5883L is a very low power compass IC, drawing only 100uA during full operation. Due to the low power, a coin cell battery is sufficient to run this board.

The Compass TinyShield includes a local voltage regulator and level shifters, so your TinyDuino system can operate from 3 – 5 Volts safely.

 

Using the CompassTinyShield

The Compass TinyShield uses the I2C bus to communicate between the TinyDuino processor and the Honeywell HMC5883L compass. Below is a sample sketch to get the data for the three axises and display them on the USB serial port:

 

Plug in your TinyDuino to your comptuer with the USB TinyShield and the Compass TinyShield attached

Upload the code using Codebender directly from this webpage.  Alternatively, open the Arduino IDE and copy the source code above into it, and upload to the TinyDuino.  

Open up the Serial Monitor, you should see the data being read from the Compass 10 times per second:



TinyCircuits Staff
TinyCircuits Staff

Author



Also in Learn

Tiny Arcade Assembly Instructions
Tiny Arcade Assembly Instructions

by TinyCircuits Staff September 18, 2016

Learn how to assemble your Tiny Arcade. You can read the step by step guide, or there's a video tutorial...

View full article →

Tiny Arcade Menu Update
Tiny Arcade Menu Update

by TinyCircuits Staff May 18, 2016

Update your Tiny Arcade software to the latest version from your computer.

View full article →

TinyScreen+ Windows 7/8 Driver Installation
TinyScreen+ Windows 7/8 Driver Installation

by TinyCircuits Staff May 18, 2016

Install the required drivers to use TinyScreen+ with Windows 7 and Windows 8.

View full article →