Atur jumlah dan catatan
Stok Total: Sisa 6
Subtotal
Rp36.000
KY-032 4pin IR Infrared Obstacle Avoidance Sensor Module
Rp36.000
- Kondisi: Baru
- Min. Pemesanan: 1 Buah
- Etalase: Arduino
Harga untuk 1Pcs Spesifikasi: -Working voltage: DC 3.3V-5V -Working current: 20mA -Working temperature: -10degree+50degree -Detection distance : 2-40cm -IO interface: 4 line (-/+/S/EN) -Output signal: TTL Level -Adjusting mode: Multi resistance regulation -Effective angle: 35° -Size: 4.5x1.1cm(approx) Here we use the obstacle avoidance module and digital 13 interface with LED to build a simple circuit, making the obstacle avoidance warning light, accessing the avoidance sensor to digital 3 interface, when the obstacle avoidance sensor senses the signal, LED light, otherwise off. Program code: int Led=13;//define LED interface int buttonpin=3; //define obstacle avoidance interface int val;//define Digital variable val void setup() pinMode(Led,OUTPUT);//define LED is output interface pinMode(buttonpin,INPUT);//define obstacle avoidance is output interface void loop() val=digitalRead(buttonpin);//reading the value from 3 digital interface to val if(val==HIGH)//when the obstacle avoidance sensor senses the signal, LED flash digitalWrite(Led,HIGH); else digitalWrite(Led,LOW);
Ada masalah dengan produk ini?
ULASAN PEMBELI

Belum ada ulasan untuk produk ini
Beli produk ini dan jadilah yang pertama memberikan ulasan