Módulo Reed Switch (Ligação Easy) para Arduino Keyestudio
Interface: Easy plug
Working voltage: DC 3.3V-5V
Working current: ≥20mA
Working temperature: -10℃ to+50℃
Detection distance: ≤10mm
Size: 39*20mm
Weight: 5g
REF: KS0118
O Reed Switch é um interruptor especial e um componente importante ara reed relay e switch de proximidade. Geralmente, é composto por dois materiais magnéticos macios e ligações de metal reed, que se desconectam automaticamente quando não há magnetismo. Pode ser utilizado com um sensor para contagem, limite, entre outros. Para funcionar, este módulo tem de ser utilizado em conjunto com a placa de controlo de Ligação Easy.
2,33€ IVA INCL.
Interface: Easy plug
Working voltage: DC 3.3V-5V
Working current: ≥20mA
Working temperature: -10℃ to+50℃
Detection distance: ≤10mm
Size: 39*20mm
Weight: 5g
Marca |
---|
int Led=13;//define LED interface int buttonpin=8; //define reed switch sensor interface int val;//define digital variable val void setup() { pinMode(Led,OUTPUT);//define LED as output interface pinMode(buttonpin,INPUT);//define reed switch sensor as output interface } void loop() { val=digitalRead(buttonpin);// read and assign the value of digital interface 3 to val if(val==HIGH)//When a signal is detected by reed switch sensor, LED will flash { digitalWrite(Led,HIGH); } else { digitalWrite(Led,LOW); } }