Find Jobs
Hire Freelancers

Arduino Sketch for HMC5832 Compass via I2C

$30-100 USD

Completed
Posted about 14 years ago

$30-100 USD

Paid on delivery
Write a sketch for the DFRobot Arduino Mega micro-controller which is capable of reading from a digital compass connected to the I2C. The following are the components we will be using to test the sketch <[login to view URL]> <[login to view URL]> The nav oard will be connected to the 3v power and to the i2c on the board. ## Deliverables The purpose of this project is to write a sketch which will use the DF Robot Arduino Mega Microcontroller and Honeywells 3axis digital compass. The sketch must communicate to the compass over the controllers I2C interface.? The sketch must contain the following methods 1. int* QueryCompass(int address) 2. Setup() 3. Loop() The sketch must only use what is available in the arduino libraries.? Here are the components this sketch needs to work for: <[login to view URL]> <[login to view URL]> Furthermore, you will need to download the following software in order to develop the sketch and test it. <[login to view URL]> The following is a code snippet of what would be an expected deliverable and how we would test to ensure it is working appropriately. int* QueryCompass(int address) { ? ? int readings[3]; ? ? ? ? // ? TODO: ? implement this function ? ? ? ? return readings; } void setup() { } void loop() { ? ? int address = 0x00; ? ? int * readings = QueryCompass( address ); ? ? ? ? [login to view URL]( readings[0] ); ? ? [login to view URL]( readings[1] ); ? ? [login to view URL]( readings[2] ); }
Project ID: 3248775

About the project

2 proposals
Remote project
Active 14 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$85 USD in 14 days
4.3 (18 reviews)
4.6
4.6
2 freelancers are bidding on average $64 USD for this job
User Avatar
See private message.
$42.50 USD in 14 days
4.6 (65 reviews)
5.2
5.2

About the client

Flag of UNITED STATES
United States
2.8
2
Member since Jul 14, 2007

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.