1 / 13

HCM 5843 Magnetometer DIYdrones Board I2C Interface Behavior of the Data Signal

HCM 5843 Magnetometer DIYdrones Board I2C Interface Behavior of the Data Signal. I´m experiencing a strange behavior of the signal of the HCM magnetometer. As you´ll see in the next pages, as soon as the board is power-up, the signal is very good and remains good for a period of time.

lucita
Download Presentation

HCM 5843 Magnetometer DIYdrones Board I2C Interface Behavior of the Data Signal

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. HCM 5843 Magnetometer DIYdrones Board I2C Interface Behavior of the Data Signal

  2. I´m experiencing a strange behavior of the signal of the HCM magnetometer. As you´ll see in the next pages, as soon as the board is power-up, the signal is very good and remains good for a period of time. After 8 minutes approximately , the signal begin to deteriorate and became useless ...

  3. The Hardware Serial Comm with LabView Arduino Duelmilanove 13.8V Batt to 7809 Regulator To keep attached to a leveled surface, and static 9V from 7809 I2C Interface SDA=A4 (Yellow) SCL=A5 (Orange) 7809 Volt Regulator to Arduino Vin

  4. The Hardware 4k7 pull-up resistors for SDA and SCL Yellow wire = SDA Orange wire = SCL 5V from Arduino GND from Arduino (black wire) 5V from Arduino (red wire)

  5. Code for Arduino I got measurements with two diferent codes for Arduino with the same results: - A code from ArduIMU that uses the Wire library - A code that uses the HMC library

  6. Results • - The Arduino board sends, through serial port, the data to the computer (approx. sampling rate 8.33Hz); • - On the computer there is a LabView program that deal with data and show it in the way that you´ll see in the next pages; • The data that Arduino sends: • Mag X = raw data from magnetometer • Mag Y = raw data from magnetometer • Mag Z = raw data from magnetometer • Heading = calculated from the data above

  7. After 2 minutes: Good data, no spread (see Histograms) and very low standart deviations (click to see) 0 min 2 min

  8. After 5 minutes: Data remain good, no spread (see Histograms) and very low standart deviations 3 min 5 min

  9. After 8 minutes: ( * ) start of the problem, increase in the spread (see Histograms) and in the standart deviations ( * ) 6’ 20” 8’ 20”

  10. After 10 minutes: High spread (see Histograms) and high standart deviations, make the data useless 8 min 10 min

  11. After 14 minutes and 30 seconds 12.5 min 14.5 min

  12. After 25 minutes 23 min 25 min

  13. Questions • What am I doing wrong? • Why as soon as the board is powered-up the data is good and reliable? • Arduino and the HCM5843 board are not compatible? • Could my HCM5843 board be defective?

More Related