Accelerometer and Magnetometer PART 1: Arduino Programming

ArduinoMagAccel

I built a device that can verify if it is oriented and pointed in a pre-determined direction. It is based on the Arduino Uno, the MAG3110 magnetometer, and the ADXL345 Digital Accelerometer.

The Arduino code can be viewed here.

Here are three videos of the device in operation.

Advertisements

2 responses to “Accelerometer and Magnetometer PART 1: Arduino Programming

  1. I am responsible for part of a planned Halloween prop. I am getting an early start. We want to be able to orient parts based on the movement of the overall display. I need a way to know orientation and direction and then react accordingly.

    Thanks for your interest. If you have code suggestions, I would appreciate your input.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s