Difference between revisions of "Sensor-Hall"

From Microduino Wiki
Jump to: navigation, search
m (Fengfeng moved page Microduino-Hall to Sensor-Hall)
Line 1: Line 1:
{{Language|Microduino-Hall }}
+
{{Language|mCookieHall }}
{| style="width: 800px;"
+
{| style="width: 1000px;"
|-
+
|
 
|
 
|
[[File: Microduino-Hall.jpg|400px|thumb|right| Microduino-Hall]]
+
[[File: Microduino-Hall.jpg|400px|thumb|right|mCookie-Hall]]
 +
Product number of mCookie Sensor—Hall:'''MSDS41'''
 +
 
 +
mCookie Sensor-Hall is a HAL49E linear hall sensor, which can detect the strength of the magnetic field.
 +
 
 +
Sensor hall is a magnetic field sensor based on Hall effect. 
  
Microduino-Hall is the Hall sensor module, which can detect magnetic filed.
+
Hall effect is a kind of magnetoelectric effect, which is found by Hall(A.H.Hall,1855—1938)on 1879 when he was studying the conduction mechanism of the metal.  
  
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.
 
  
  
  
  
 +
==Description of Sensor Pins==
 +
{{Sensor_explain
 +
|nameA=[[Sensor-Hall]]
 +
|modeA=Analog signal input
 +
|modeB=NC
 +
}}
  
  
 
==Features==
 
==Features==
*High detection flexibility and stability.  
+
*With high detection sensitivity, and stability.
 +
*A linear hall sensor with a polarity.
 +
 
  
 
==Specification==
 
==Specification==
*Electrical specification
+
*Sensor voltage
**Output: Digital signal
+
**3.3V~5V working voltage
**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 interface 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. 
 
  
[[file:mCookie-sensorhub_rule.JPG|thumb|800px|center]]
+
*Size of then sensor
 +
**Size of the board:23.5mm*13mm
 +
**1.27mm-spacing 4Pin interface connected with sensorhub
 +
**Sensor CAD drawings:'''[[File:Sensor_CAD.zip]]'''
  
[[File: Microduino-Hall_rule1.jpg|600px|thumb|center]]
+
*Function description
 +
**This sensor is 10-bit ADC(0~1023), and the static value that the pin IO1 gets is 512.
 +
**The strength of the magnetism changes according to south and north poles.
 +
***If get close to the hall circuit from the back with the N pole, the output voltage will reduce, and the analog value will reduce(512~0), too.
 +
***If get close with S pole from the back, the output voltage will increase and the analog input value will increase(512~1023), too.
 +
***It from the front, the output state is opposite to from the back.
 +
<br>
 +
*[[File:Microduino-Hall_xianxingtu.JPG|600px|thumb|left]]
 +
<br style="clear: left"/>
  
==Document==
+
*Connection
 +
**This sensor can be connected with the following interfaces of the core:'''A0~A7'''
  
*Schematic:'''[[File: Microduino_Hall.Zip]]'''
+
==Documents==
  
 +
*Schematic diagram:'''[[File: Microduino_Hall.Zip.pdf]]'''
 +
*HAL49E datasheet:'''[[File: Microduino_Hall_datasheet.pdf]]'''
 
==Development==
 
==Development==
===Preparation===
+
===Program Download===
*Make sure you’ve built Microduino IDE or you can refer to: [Microduino Getting started]]
+
*Download and unzip'''[[File:Microduino_Hall_Test.zip]]'''
*Core board selection
 
**1.Adopt [[Microduino-CoreUSB]] or [[mCookie-CoreUSB]] as the core.  
 
**2.Adopt [[Microduino-Core]] or [[Microduino-Core+]] as the core and [[Microduino-USBTTL]] as the program download module.
 
  
===Program===
+
===Programming===
 
+
{{Upload
*Open Arduino IDE, select File→Examples→Basics→DigitalReadSerial program examples, choose the right board, compile and download.
+
|nameA=[[Microduino-Core]], [[Microduino-USBTTL]]
[[file:mCookie-crashCodeExample.JPG|thumb|800px|center]]
+
|nameB=[[Microduino-USBTTL]]
 
+
|boardName=Microduino/mCookie-Core(328p), Atmega328P@16M,5V
*int pushButton = 6;  Define the input pin as D6, which can be changed by users according to personal needs.
+
|fileName=Microduino_Hall_Test.ino
*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]]
 
[[file:Microduino-sensorhub_6.JPG|thumb|400px|center]]
 
*For reference: [[mCookie-Hub]]
 
[[file:mCookie-sensorhub_6.JPG|thumb|400px|center]]
 
*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]]
 
[[file:upload.JPG|thumb|800px|center]]
 
 
 
*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.
 
  
 +
===Hardware Setup===
 +
*Referring to the following picture, connect the Sensor-Hall to the analog interface A0 of '''[[Microduino-Sensorhub]]'''.
 +
<br>
 +
[[file:Microduino-sensorhub_hall.JPG|thumb|400px|left]]
 +
<br style="clear: left"/>
  
 +
===Effect Observation===
 +
*After the download, open the serial port monitor.
 +
**Get close to the hall circuit from the back with S pole. The output voltage of both ends of the hall sensor is during 2.5V~5V, and the analog value it returns is during 512~1023.
 +
**Get close to the hall circuit from the back with the N pole. The output voltage of both ends of the hall sensor is during 2.5V~0V, and the analog value it returns is during 512~0.
 +
**If get close to the circuit from the front, the output state is opposite to from the back.
 
==Application==
 
==Application==
[[file: Microduino-Hall-1.JPG|thumb|180px|center|Microduino-Hall Front]]
+
*It is suitable for the detection of magnetic field strength.
 
 
If Hall’s starting voltage is high level(V<small>+</small>), its surrounding magnetic field strength becomes intensified. When the intensity is bigger than B<small>np</small>, the output voltage between the two sides of the Hall sensor is the low level (V<small>-</small>). It keeps the same for the reverse. 
 
*Suitable for detecting magnetic field and replacable switch function.  
 
 
 
===Project===
 
  
 +
===Projects===
  
 
==Purchase==
 
==Purchase==
Line 82: Line 87:
 
==History==
 
==History==
  
==Pictures==
+
==Gallery==
 
+
{| border="0" cellpadding="10" width="100%"
*Front
+
|-
[[file: Microduino-Hall-F.JPG|thumb|600px|center|Microduino-Hall Front]]
+
|width="50%" valign="top" align="left"|
*Back
+
[[file: Microduino-Hall-F.JPG|thumb|480px|center|Microduino-Hall Front]]
[[file: Microduino-Hall -b.JPG|thumb|600px|center|Microduino-Hall Back]]
+
|width="50%" valign="top" align="left"|
 +
[[file: Microduino-Hall -b.JPG|thumb|480px|center|Microduino-Hall Back]]
 +
|}
 
|}
 
|}

Revision as of 03:46, 9 August 2016

Language: English  • 中文
mCookie-Hall

Product number of mCookie Sensor—Hall:MSDS41

mCookie Sensor-Hall is a HAL49E linear hall sensor, which can detect the strength of the magnetic field.

Sensor hall is a magnetic field sensor based on Hall effect.

Hall effect is a kind of magnetoelectric effect, which is found by Hall(A.H.Hall,1855—1938)on 1879 when he was studying the conduction mechanism of the metal.



Description of Sensor Pins

Sensor backpin.png
  • Pins of the sensor:
    • PIN1: GND
    • PIN2: VCC
    • General signal pins:
      • PIN3(IO1): digital/analog signal
      • PIN4(IO2): NC(null)
    • Special signal pins:
      • If it is IIC: IO1/IO2 are respectively SDA/SCL.
      • If it is soft serial port: IO1/IO2 are respectively tx/rx.
  • Special to Sensor-Hall sensor pins
    • PIN1: GND
    • PIN2: VCC
    • PIN3(IO1): Analog signal input
    • PIN4(IO2): NC


Microduino sensor can communicate with core module through the connection with Microduino-Module Sensor Hub.


Features

  • With high detection sensitivity, and stability.
  • A linear hall sensor with a polarity.


Specification

  • Sensor voltage
    • 3.3V~5V working voltage
  • Size of then sensor
    • Size of the board:23.5mm*13mm
    • 1.27mm-spacing 4Pin interface connected with sensorhub
    • Sensor CAD drawings:File:Sensor CAD.zip
  • Function description
    • This sensor is 10-bit ADC(0~1023), and the static value that the pin IO1 gets is 512.
    • The strength of the magnetism changes according to south and north poles.
      • If get close to the hall circuit from the back with the N pole, the output voltage will reduce, and the analog value will reduce(512~0), too.
      • If get close with S pole from the back, the output voltage will increase and the analog input value will increase(512~1023), too.
      • It from the front, the output state is opposite to from the back.


  • Microduino-Hall xianxingtu.JPG


  • Connection
    • This sensor can be connected with the following interfaces of the core:A0~A7

Documents

Development

Program Download

Programming

  • Follow the Software Getting Started Guide.
  • Select the Board, Processor and Port.
  • Click [File]->[Open], browse to the project program address, and click "Microduino_Hall_Test.ino" to open the program.
  • After confirming all these items are correct, click "→" to download the program to the development board.

Hardware Setup

  • Referring to the following picture, connect the Sensor-Hall to the analog interface A0 of Microduino-Sensorhub.


Microduino-sensorhub hall.JPG


Effect Observation

  • After the download, open the serial port monitor.
    • Get close to the hall circuit from the back with S pole. The output voltage of both ends of the hall sensor is during 2.5V~5V, and the analog value it returns is during 512~1023.
    • Get close to the hall circuit from the back with the N pole. The output voltage of both ends of the hall sensor is during 2.5V~0V, and the analog value it returns is during 512~0.
    • If get close to the circuit from the front, the output state is opposite to from the back.

Application

  • It is suitable for the detection of magnetic field strength.

Projects

Purchase

History

Gallery

Microduino-Hall Front
Microduino-Hall Back