.............. 1 3 Pinout ............. 2 4 Code example Arduino ...........
f the optical barrier is beeing interrupted. Export: 16.06.2017 Copyright by Joy-IT - Published under CC BY-NC-SA 3.0 Page 43 of 214 KY-010 Light barrier-module Pinout Code example Arduino In this program, a LED will flash up, if a signal was detected at the sensor. You can also use the modules KY011, KY-016 or KY-029 as LEDs. 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) ; // Initialization output pin pinMode (Sensor, INPUT) ; // Initialization sensorpin } v.
No. | Partie # | Fabricant | Description | Fiche Technique |
---|---|---|---|---|
1 | KY-011 |
Joy-IT |
2-Color (Red+Green) 5mm LED module | |
2 | KY-012 |
Joy-IT |
Active Piezo-Buzzer module | |
3 | KY-013 |
Joy-IT |
Temperature-Sensor module | |
4 | KY-015 |
Joy-IT |
Combi-Sensor Temperature + Humidity | |
5 | KY-016 |
Joy-IT |
RGB 5mm LED module | |
6 | KY-017 |
Joy-IT |
Tilt switch module | |
7 | KY-018 |
Joy-IT |
Photoresistor module | |
8 | KY-019 |
Joy-IT |
5V Relais module | |
9 | KY-001 |
Joy-IT |
Temperature sensor module | |
10 | KY-002 |
Joy-IT |
Vibration-switch module | |
11 | KY-003 |
Joy-IT |
Hall Magnetic Field Sensor | |
12 | KY-004 |
Joy-IT |
Button-module |