Difference between revisions of "Hall Sensor"
(Created page with "<syntaxhighlight lang="c"> /* Analog input, digital output, serial output Reads an analog input pin; T000070 Hall Sensor connected to I0 reacts to the magnet direction ...") |
(→Introduction) |
||
(10 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | + | ==Introduction== | |
+ | This hall module hosts an magnetic hall sensor that senses the presence of magnetic field. | ||
− | + | [[File:N12DH WHITOUT PACKAGED FRONT.jpg|640px]] | |
− | |||
− | + | [[File:N12DH WITHOUT PACKAGED BACK.jpg|640px]] | |
− | |||
− | |||
− | + | == Features == | |
− | |||
− | + | Dimensions: 20.0×24.2×10.6mm | |
− | + | Net weight: 1.6g | |
− | + | == Dimension == | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | [[File:hall sensor dimension1.jpg]] | |
− | |||
− | |||
− | |||
− | + | == Schematics == | |
+ | *[https://s3.amazonaws.com/linksprite/LinkerKit/Linker+Hall+Sensor.pdf Schematics] | ||
− | + | ==Application Ideas== | |
− | |||
− | |||
− | |||
− | |||
− | + | <syntaxhighlight lang="c"> | |
− | |||
− | + | int ledPin = 13; | |
− | + | int out = 12; | |
− | + | ||
− | + | void setup() | |
− | } | + | { |
− | digitalWrite( | + | pinMode(ledPin, OUTPUT); |
− | + | pinMode(out, INPUT); | |
− | + | } | |
− | + | ||
− | + | void loop() | |
+ | { | ||
+ | if ( digitalRead(out) ) | ||
+ | { | ||
+ | digitalWrite(ledPin,LOW ); | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | digitalWrite(ledPin,HIGH); | ||
+ | } | ||
+ | } | ||
+ | </syntaxhighlight> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | [[File:Hall link.jpg]] | ||
− | + | ==How to buy== | |
+ | Here to buy Hall Sensor on [http://store.linksprite.com/hall-module-of-linker-kit-for-pcduino-arduino/ store] |
Latest revision as of 03:33, 22 July 2016
Introduction
This hall module hosts an magnetic hall sensor that senses the presence of magnetic field.
Features
Dimensions: 20.0×24.2×10.6mm
Net weight: 1.6g
Dimension
Schematics
Application Ideas
<syntaxhighlight lang="c">
int ledPin = 13; int out = 12;
void setup() {
pinMode(ledPin, OUTPUT); pinMode(out, INPUT);
}
void loop() {
if ( digitalRead(out) )
{
digitalWrite(ledPin,LOW );
}
else
{
digitalWrite(ledPin,HIGH);
} } </syntaxhighlight>
How to buy
Here to buy Hall Sensor on store