Home
Grove - Magnetic Switch User Manual
Contents
1. laws in the use of this product y seeed Grow the Difference 1 Introduction This is a Grove interface compatible Magnetic switch module It is based on encapsulated dry reed switch CT10 CT10 is single pole single throw SPST type having normally open ruthenium contacts The sensor is a double ended type and may be actuated with an electromagnet a permanent magnet or a combination of both The magnetic switch is a wonderful tool for designers who would like to turn a circuit on and off based on proximity y seeed Grow the Difference 2 Features e Grove compatible interface 2 0cm x 2 0cm Grove module e Minimum external parts 10W rating e Rugged encapsulation y seeed Grow the Difference 3 Application Ideas Proximity Sensor Security Alarm Sensor e Level Sensor e Flow Sensor e Pulse Counter jy seeed Grow the Difference 4 Specification nere TT mete A NE ET y seeed Grow the Difference 5 Usage 5 1 With Arduino The SIG pin of the module output LOW normally When a magnet approaches the switch the magnetic switch close and the SIG pin output HIGH The following sketch demonstrates a simple application of using the Magnetic switch to control the led When you put a magnet that has enough magnetic power close to the module the switch is closed Then the SIG pin out put a high voltage You can use this to control the led As the picture on the below indic
2. 2 With Raspberry PI 1 You should have got a raspberry pi and a grovepi or grovepi 2 You should have completed configuring the development enviroment otherwise follow here 3 Connection Plug the Magnet Switch to grovepi socket D3 by using a grove cable 4 Navigate to the demos directory cd yourpath GrovePi Software Python e To see the code this demo has the same usage with tilt switch ANO arvet wlll suren oy OCR vo Soca E import time import grovepi Connect the Grove Tilt Switch to digital port D3 SIG NC VCC GND tilt switch 3 grovepi pinMode tilt switch INPUT while True try print grovepi digitalRead tilt switch time sleep 5 except IOError print Error 5 Run the demo sudo python grove tilt switch py 6 Result Put a magnet upon the sensor the SIG pin will output HIGH y seged y seeed Grow the Difference 6 Resources Grove Magnetic Switch v1 9 Eagle File CT10 datasheet Grove Magnetic Switch v1 3 Eagle File Grove Magnetic Switch v1 3 PDF File 10
3. ates the Magnetic switch is connected to digital port 9 of the Grove Basic Shieldand the LED is connected to digital port 13 When there is Magnetic approaches the switch the SIG pin output a High voltage Then the LED light The hardware installation is as follows amp Copy and paste code below to a new Arduino sketch sk skak sk sk akak akak RR KR AAA se ok ake oke ake ake ake ake KR KR ake ak ake KR KR KR RK macro definitions of magnetic pin and LED pin define MAGNECTIC SWITCH 9 define LED 13 the on board LED of the Arduino or Seeeduino void setup pinsinit O y seeed Grow the Difference void loop if isNearMagnet if the magnetic switch is near the magnet turnOnLED turnOffLED void pinsInit pinMode MAGNECTIC SWITCH INPUT pinMode LED OUTPUT If the magnetic switch is near the magnet it will return ture otherwise it will return false boolean isNearMagnet int sensorValue digitalRead MAGNECTIC SWITCH if sensorValue HIGH if the sensor value is HIGH reiurn true yes vein Ure return false no return false void turnOnLED digitalWrite LED HIGH void turnOffLED digitalWrite LED LOW e Upload the code Please click here if you do not know how to upload e Then the LED light when there is Magnetic approaches the switch Have a try y seeed Grow the Difference 5
4. seeed Grow the Difference OY Grove Magnetic Switch User Manual Release date 2015 9 22 Version 1 0 Wiki http www seeedstudio com wiki index php title Tvvig Magnetic Switch Bazaar htip www seeedstudio com depot Grove Magnetic Switch p 744 html y seeed Grow the Difference Document Revision History y seeed Grow the Difference Contents Document Revision History 0 2 i Tror aa aa Aa AN a a aa PHRA Pa 2 EE GT EEE ss cai enceses pa 3 3 Application Ideas 0000 4 4 Specification iii 5 5 Usage REESE SOOO SO SOOOOOOOSOOOSOSOSOSOOOOOOOOOOSOSOSOSOSOSOOOOOOOOOOOOSOSOSOSOOSOSSS 6 5 1 Wil UG S95 eps ee og ee ees EEE EE E E EEE EE 6 52 With Raspberry Pi 0 g o TCO EE EE EEE EE den 10 y seeed Grow the Difference Disclaimer For physical injuries and possessions loss caused by those reasons which are not related to product quality such as operating without following manual guide natural disasters or force majeure we take no responsibility for that Under the supervision of Seeed Technology Inc this manual has been compiled and published which covered the latest product description and specification The content of this manual is subject to change without notice Copyright The design of this product including software and its accessories is under tutelage of laws Any action to violate relevant right of our product will be penalized through law Please consciously observe relevant local
Download Pdf Manuals
Related Search
Related Contents
2 inch faux wood blind stores plantation similibois tertem Fritierfett - Justus-Liebig 大分空港航空灯火施設維持工事(平成26年度~ 平成29年度)における ministère de l`écologie, du développement durable et de l`énergie The Influence of Multi-Touch Interaction on Procedural Training 取り扱い説明書はこちら 7703_Manual Web Copyright © All rights reserved.
Failed to retrieve file