Sensor-Hall

From Microduino Wiki
Revision as of 09:57, 26 October 2015 by 1304410487@qq.com (talk) (Created page with "{{Language|Microduino-Hall }} {| style="width: 800px;" |- | 400px|thumb|right| Microduino-Hall Microduino-Hall is the Hall sensor module, which ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Language: English  • 中文
Microduino-Hall

Microduino-Hall is the Hall sensor module, which can detect magnetic filed.

Microduino-Hall sensor is based on Hall Effect, as one of the magnetoelectric effect, which was found by A.H.Hall in 1879 when he was studing metal’s conductive mechcanism.




Features

  • High detection flexibility and stability.

Specification

  • Electrical specification
    • Output: Digital signal
    • 3.3V~5V operation voltage;
  • Tech parameter
    • Pin description: GND, VCC, signal output and NC(Empty).
    • Digital output
    • Size of the sensor: 5mm*5mm,
    • Size of the board: 20mm*10mm
  • 1.27mm-pitch 4Pin interface connects with Sensorhub.
  • Connection method

Note: Here we adopt digital signal output and need to use digital interfac to detect (D0~D13), which can connect to the number 3~9 pin of the Sensorhub, that is, D0,D2,D4,D6,D8,D10 and D12.

MCookie-sensorhub rule.JPG

Document

Development

Preparation

Program

  • Open Arduino IDE, select File→Examples→Basics→DigitalReadSerial program examples, choosethe right board, compile and download.
MCookie-crashCodeExample.JPG
  • int pushButton = 6; Define the input pin as D6, which can be changed by users according to personal needs.
  • pinMode(pushButton, INPUT); Define pushButton as the input pin.
  • int buttonState = digitalRead(pushButton); Read pushButton as the value of the input pin./

Hardware Buildup

  • Connect the Hall sensor and Sensorhub to the D6 digital port, which is also the pin of “pushButton”mentioned above.
  • For reference: Microduino-Sensorhub
Microduino-sensorhub 6.JPG
MCookie-sensorhub 6.JPG
  • Connect the core, Sensorhub and Hall together to a computer with a USB cable.
  • Select the right board and COM port, compile and download. You can refer to: [AVR Core:Getting started]]
Upload.JPG
  • Open the serial monitor after download. The return value is “1” when it detects no magnetic field. By getting close to the Hall sensor with a magnet, you can get the return value “0” when detecting the magnetic field.


Application

Microduino-Hall Front

If Hall’s starting voltage is high level(V+), its surrounding magnetic field strength becomes intensified. When the intensity is bigger than Bnp, the output voltage between the two sides of the Hall sensor is the low level (V-). It keeps the same for the reverse.

  • Suitable for detecting magnetic field and replacable switch function.

Project

Purchase

History

Pictures

  • Front
Microduino-Hall Front
  • Back
Microduino-Hall Back