Page 4
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.
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.
4. Specification Items Norm Unit Working Voltage 4.75 5.25 Switched Power Switched Voltage AC,RMS value(max) < 140 Switched Current DC < 500 Carry Current DC < 0.5 Contact Resistance <200 mΩ Insulation Resistance >10 MΩ ℃ Operating Temperature Operate Range...
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. Grove As the picture on the below indicates, the Magnetic switch is connected to digital port 9 of the - Basic Shield and the LED is connected to digital port 13.
Page 10
void loop() if(isNearMagnet())//if the magnetic switch is near the magnet? turnOnLED(); else 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? return true;//yes,return ture else...
2. You should have completed configuring the development enviroment, otherwise follow 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/ To see the code (this demo has the same usage with tilt switch) nano grovepi_tilt_switch.py...
Page 14
X-ON Electronics Largest Supplier of Electrical and Electronic Components Click to view similar products for category: Seeed Studio Accessories Click to view products by manufacturer: Seeed Studio Other Similar products are found below : 101990565 101990564 110990984 114992111 114992067 114992283 114991948 106100003 103060000 101020004 101020006...
Need help?
Do you have a question about the Grove and is the answer not in the manual?
Questions and answers