Categorías

Ref. AKC-108.MD0025

Modulo sensor digital tilt para arduino/funduino

Stock: 21  
Ref. AKC-108.MD0025
Precio (IVA inc.) 1,08 €
Unidades ≥ 2 ≥ 4 ≥ 6 ≥ 10
DescuentoDescuentoprecio-3%-0,6420,67-5%-1,0720,24-7%-1,4919,82-10%-2,1319,18
whatsappSi tienes dudas envíanos un WhatsApp
Pago Seguro

Envío Rápido
en 14h o 24/48h

Pago Seguro
Tarjeta, Bizum...

Garantía
Calidad asegurada

Especialistas
Consulta tus dudas

Especificaciones

El detector de inclinación es equivalente a un interruiptor y se utiliza como una entrada digital.
Cuando esta a nivel el contacto esta abierto. Cuando se inclina se cierra.

Especificaciones:
Supply Voltage: 3.3V to 5V
Interface: Digital



Sample Code
int ledPin = 13; // Connect LED to pin 13
int switcher = 3; // Connect Tilt sensor to Pin3
void setup()
{
pinMode(ledPin, OUTPUT); // Set digital pin 13 to output mode
pinMode(switcher, INPUT); // Set digital pin 3 to input mode
}
void loop()
{

if(digitalRead(switcher)==HIGH) //Read sensor value
{
digitalWrite(ledPin, HIGH); // Turn on LED when the sensor is tilted
}
else
{
digitalWrite(ledPin, LOW); // Turn off LED when the sensor is not triggered
}
}
OTROS PRODUCTOS RELACIONADOS