Difference between revisions of "Sensor-Hall"

From Microduino Wiki
Jump to: navigation, search
(Created page with "{{Language|Microduino-Hall }} {| style="width: 800px;" |- | 400px|thumb|right| Microduino-Hall Microduino-Hall is the Hall sensor module, which ...")
 
(Description of Sensor Pins)
 
(13 intermediate revisions by 2 users not shown)
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 linear hall sensor, which can detect the strength and polarity of the magnetic field.
  
Microduino-Hall is the Hall sensor module, which can detect magnetic filed.
+
Sensor hall is a magnetic field sensor based on Hall effect.  
  
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.  
+
Hall effect is a kind of magnetoelectric effect, which is found by Hall(A.H.Hall)on 1879 when he was studying the conduction mechanism of the metal.  
  
  
Line 13: Line 16:
  
  
 +
==Description of Sensor Pins==
 +
{{ST_Pinout
 +
|st_name=Hall Sensor
 +
|pin3=Analog Input
 +
}}
  
 
==Features==
 
==Features==
*High detection flexibility and stability.  
+
*With high detection sensitivity, and stability.
 +
*A linear hall sensor with a polarity.
 +
*With small size which is easy to install.  
  
 
==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
+
*Size of the sensor
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.
+
**Size of the board: 23.5mm*13mm;
 +
**1.27mm-spacing 4Pin interface connected with sensorhub;
 +
**Sensor CAD drawings: '''[[File:Sensor_CAD.zip]]'''.
  
[[file:mCookie-sensorhub_rule.JPG|thumb|800px|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;
 +
***If 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"/>
  
[[File: Microduino-Hall_rule1.jpg|600px|thumb|center]]
+
*Connection
 +
**This sensor can be connected with the following interfaces of the core: '''A0~A7'''.
  
==Document==
+
==Documents==
 
 
*Schematic:'''[[File: Microduino_Hall.Zip]]'''
 
  
 +
*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 the program '''[[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]] asthe program download module.
 
 
 
===Program===
 
 
 
*Open Arduino IDE, select File→Examples→Basics→DigitalReadSerial program examples, choosethe right board, compile and download.
 
[[file:mCookie-crashCodeExample.JPG|thumb|800px|center]]
 
  
*int pushButton = 6;  Define the input pin as D6, which can be changed by users according to personal needs.
+
===Programming===
*pinMode(pushButton, INPUT);    Define pushButton as the input pin.
+
{{Upload
*int buttonState = digitalRead(pushButton);    Read pushButton as the value of the input pin./
+
|nameA=[[Microduino-Core]], [[Microduino-USBTTL]]
 +
|nameB=[[Microduino-USBTTL]]
 +
|boardName=Microduino/mCookie-Core(328p), Atmega328P@16M,5V
 +
|fileName=Microduino_Hall_Test.ino
 +
}}
  
===Hardware Buildup===
+
===Hardware Setup===
*Connect the Hall sensor and Sensorhub to the D6 digital port, which is also the pin of “pushButton”mentioned above.
+
*Referring to the following picture, connect the Sensor-Hall to the analog interface A0 of '''[[Microduino-Sensorhub]]'''.
*For reference: [[Microduino-Sensorhub]]
+
<br>
[[file:Microduino-sensorhub_6.JPG|thumb|400px|center]]
+
[[file:Microduino-sensorhub_hall.JPG|thumb|400px|left]]
*For reference: [[mCookie-Hub]]
+
<br style="clear: left"/>
[[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.
 
  
 +
===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 86:
 
==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]]
 +
|}
 
|}
 
|}

Latest revision as of 22:45, 30 March 2017

Language: English  • 中文
mCookie-Hall

Product number of mCookie Sensor—Hall:MSDS41

mCookie Sensor-Hall is a linear hall sensor, which can detect the strength and polarity 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)on 1879 when he was studying the conduction mechanism of the metal.



Description of Sensor Pins

Sensor backpin.png

Hall Sensor
General Pin Out Sensor / Trinket's Pin Out
PIN1 (GND) GND
PIN2 (VCC) VCC
PIN3 (SIGNAL-A) Analog Input
PIN4 (SIGNAL-B) Not Connected
  • General Pin Out is the standard pin out of a Sensor / Trinket connector.
  • Sensor / Trinket's Pin Out is this specific Sensor / Trinket's wiring in relation to the General Pin Out.
  • SIGNAL-A / SIGNAL-B are signals that could be digital input, digital output, analog input or analog output. Or special signals such as serial communication (SoftwareSerial, IIC (I2C), etc) or other special signals.
  • Not Connected refers to the Pin not being used for this particular Sensor / Trinket.
  • Read more about the hub module.

Features

  • With high detection sensitivity, and stability.
  • A linear hall sensor with a polarity.
  • With small size which is easy to install.

Specification

  • Sensor voltage
    • 3.3V~5V working voltage
  • Size of the 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;
      • If 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
Retrieved from "https://wiki.microduinoinc.com/index.php?title=Sensor-Hall&oldid=12595"