Difference between revisions of "Magnetic Switch"

From LinkSprite Playgound
Jump to: navigation, search
(Schematics)
(Features)
Line 6: Line 6:
 
== Features ==
 
== Features ==
  
Dimensions: 25.5×24.5×10.0mm
+
Dimensions: 20.0×24.2×10.6mm
  
 
Net weight: 1.8g
 
Net weight: 1.8g
 +
 +
== Dimension ==
 +
 +
[[File:magnetic switch dimension.jpg]]
  
 
==Schematics==
 
==Schematics==

Revision as of 08:26, 16 June 2014

Introduction

This is a magnetic switch module with Linker kit standard connection.

Magnetic switch.jpg

Features

Dimensions: 20.0×24.2×10.6mm

Net weight: 1.8g

Dimension

Magnetic switch dimension.jpg

Schematics

Application Ideas

test <syntaxhighlight lang="c">

const int MagneticPin=9; const int ledPin=13; void setup() {

 pinMode(MagneticPin, INPUT);
 pinMode(ledPin,OUTPUT);

}

void loop() {

 int sensorValue = digitalRead(MagneticPin);
 if(sensorValue==1)
 {
   digitalWrite(ledPin,HIGH);
 }
 else
 {
   digitalWrite(ledPin,LOW);
 }
}

</syntaxhighlight>

Magnetic link.jpg

How to buy

Here to buy Magnetic Switch on store