Difference between revisions of "Microduino Read magnetic field intensity(Microduino 10dof)"

From Microduino Wiki
Jump to: navigation, search
(Created page with "{{Language | Microduino 磁场强度(Microduino 10dof)}} {| style="width: 800px;" |- | ==Objective== This tutorial will teath you to use the Microduino-10DOF's HMC5883L sensor...")
 
 
(2 intermediate revisions by the same user not shown)
Line 30: Line 30:
 
==Debug==
 
==Debug==
  
Step 1:Stack all the upper Micrduino module, as follows:
+
Step 1: Stack all the upper Micrduino module, as follows:
 
[[File:Microduino磁场强度(10dof).jpg|600px|center|thumb]]
 
[[File:Microduino磁场强度(10dof).jpg|600px|center|thumb]]
  
Step 2:Compile the program and download it.
+
Step 2: Compile the program and download it.
  
Step 3:Observe the OLED, use a magnet close to the sensor,the pointer will change on OLED.
+
Step 3: Observe the OLED, use a magnet close to the sensor,the pointer will change on OLED.
  
 
==Result==
 
==Result==
Line 43: Line 43:
 
==Video==
 
==Video==
  
http://v.youku.com/v_show/id_XNjk4NDE3MDQ4.html
+
 
  
  
 
|}
 
|}

Latest revision as of 10:22, 28 September 2016

Language: English  • 中文

Objective

This tutorial will teath you to use the Microduino-10DOF's HMC5883L sensor to calculate the magnetic field strength and direction, the result will be displayed in OLED.

Equipment

Schematic

MicroduinoMPU6050计算角度原理图.jpg
  • Microduino-OLED
  • Microduino-Core
  • Microduino-10DOF
  • Microduino-FT232R
  • Microduino-Cube-S1

Program

Refer to HMC5883L10DOFOLED

Debug

Step 1: Stack all the upper Micrduino module, as follows:

Microduino磁场强度(10dof).jpg

Step 2: Compile the program and download it.

Step 3: Observe the OLED, use a magnet close to the sensor,the pointer will change on OLED.

Result

OLED will display a compass.

Video