| Electronic Components Datasheet Search |
|
KY-034 Datasheet(PDF) 39 Page - AG Electronica |
|
|
|||||||||||||||||||||||||||||
KY-034 Datasheet(HTML) 39 Page - AG Electronica |
|
39 / 50 page ![]() Descripción: Modulo con sensor magnético, deberá construirse un circuito simple que contara con un LED que debe conectarse al PIN 13 del Arduino, cuando el sensor detecta un destello magnético el LED encenderá, si el sensor no detecta nada el LED permanecerá apagado. Código: int sensorPin = A5; / / select the input pin int ledPin = 13; / / select the pin for the LED int sensorValue = 0; / / variable to store the value coming from the sensor void setup () { pinMode (ledPin, OUTPUT); Serial.begin (9600); } void loop () { sensorValue = analogRead (sensorPin); digitalWrite (ledPin, HIGH); delay (sensorValue); digitalWrite (ledPin, LOW); delay (sensorValue); Serial.println (sensorValue, DEC); } Arduino KY-033: Modulo Sensor de Rastreo |
|
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 |