| Electronic Components Datasheet Search |
|
KY-034 Datasheet(PDF) 15 Page - AG Electronica |
|
|
|||||||||||||||||||||||||||||
KY-034 Datasheet(HTML) 15 Page - AG Electronica |
|
15 / 50 page ![]() Descripción: Módulo foto-interruptor que funciona con Arduino. Si el sensor es accionado entonces el LED se enciende. Especificaciones: El módulo debe conectarse de la siguiente manera con el Arduino: Pin izquierdo: GND Pin medio: +5V Pin derecho: Señal Pin GND del Arduino con GND del modulo Pin 3 del Arduino con Pin de señal del modulo Pin 5V del Arduino con el Pin 5V del modulo Código: int Led = 13 ;// define LED Interface int buttonpin = 3; // define the photo interrupter sensor interface void setup (){ pinMode (Led, OUTPUT) ;// define LED as output interface pinMode (buttonpin, INPUT) ;// define the photo interrupter sensor output interface } void loop () { val = digitalRead (buttonpin) ;// digital interface a value of 3 to read val if (val == HIGH) // When the light sensor detects a signal is interrupted, LED flashes { digitalWrite (Led, HIGH); } else { digitalWrite (Led, LOW); } } Arduino KY-010: Modulo Sensor Fotoeléctrico Tipo U |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |