Difference between revisions of "Microduino Hall sensor usage"

From Microduino Wiki
Jump to: navigation, search
(Created page with "{{Language | Microduino 霍尔传感器使用}} {| style="width: 800px;" |- | ==Objective== This tutorial will teach you how to use the hall sensor. ==Equipment== *'''Micro...")
 
 
Line 30: Line 30:
 
[[File:霍尔传感器使用连接图.jpg|600px|center|thumb]]
 
[[File:霍尔传感器使用连接图.jpg|600px|center|thumb]]
  
Step 2:Compile the program and download.
+
Step 2: Compile the program and download.
  
Step 3:Use a magnet to shake in the surrounding, observe the OLED's output.
+
Step 3: Use a magnet to shake in the surrounding, observe the OLED's output.
  
 
==Result==
 
==Result==

Latest revision as of 10:28, 28 September 2016

Language: English  • 中文

Objective

This tutorial will teach you how to use the hall sensor.

Equipment

  • Other equipment
    • USB cable one
    • Jumper cable several

Schematic

霍尔传感器使用原理图.jpg

Connect the digital I/O port to pin13

Program

Refer to hallSensorOLED

Debug

Step 1: Stack the Microduino module and connect the hall sensor, as follows:

霍尔传感器使用连接图.jpg

Step 2: Compile the program and download.

Step 3: Use a magnet to shake in the surrounding, observe the OLED's output.

Result

OLED will display south and north.

Video

http://v.youku.com/v_show/id_XNzAxMTAxNDk2.html