DatasheetsPDF.com

KY-021

Joy-IT

Mini magnetic Reed module

KY-021 Mini magnetic Reed module KY-021 Mini magnetic Reed module Contents 1 Picture ......................................


Joy-IT

KY-021

File Download Download KY-021 Datasheet


Description
KY-021 Mini magnetic Reed module KY-021 Mini magnetic Reed module Contents 1 Picture ................................................................................................................................................................. 1 2 Technical data / Short description ....................................................................................................................... 1 3 Pinout ................................................................................................................................................................... 2 4 Code example Arduino ......................................................................................................................................... 2 5 Code example Raspberry Pi ................................................................................................................................. 3 Picture Technical data / Short description If the sensor is close to a magnetic field, the input pins are connected. Export: 16.06.2017 Copyright by Joy-IT - Published under CC BY-NC-SA 3.0 Page 86 of 214 KY-021 Mini magnetic Reed module Pinout Code example Arduino This example will activate a LED if the sensorĀ is close to a magnetic field. The modules KY-011, KY-016 or KY-029 can be used as a LED. int Led = 13 ;// Declaration of the LED output pin. int Sensor = 10; //Declaration of the sensor input pin int val; // Temporary variable void setup () { pinMode (Led, OUTPUT) ; // Initi...




Similar Datasheet




@ 2014 :: Datasheetspdf.com :: Semiconductors datasheet search & download site. (Privacy Policy & Contact)