Post Offer Free
KUONGSHUN ELECTRONIC LIMITED  

Gold Index: 5100

You are here: home  > Broken Light Module Product Product Product

Broken Light Module Product Product Product 

Place of Origin: , China (Mainland) 
inquire
Add to My Favorites
HiSupplier Escrow
Share |

Product Detail


Broken Light Module,Arduino Sensor

Product DescriptionPhoto interrupter module and a digital interface, built-in 13 LED build a simple circuit to produce.photo-interrupter warning lampIt comes with digital interfaces of the LED, the light blocking access number 3 sensor interfaces,sensing when the light interrupterDevice senses a key signal, LED lights, otherwise off.Routines source code:int Led = 13 ;// define LED Interfaceint buttonpin = 3; // define the photo interrupter sensor interfaceint val ;// define numeric variables valvoid setup(){pinMode (Led, OUTPUT) ;// define LED as output interfacepinMode (buttonpin, INPUT) ;// define the photo interrupter sensor output interface}void loop (){val = digitalRead (buttonpin) ;// digital interface will be assigned a value of 3 to read valif (val == HIGH) // When the light sensor detects a signal is interrupted, LED flashes{digitalWrite (Led, HIGH);}else{digitalWrite (Led, LOW);}}
bigPhoto
 Ms. RingHwang

Tel: 86-755-23956813
Contact to this supplier

Related Search

Find more related products in following catalogs on Hisupplier.com

Company Info

KUONGSHUN ELECTRONIC LIMITED [China (Mainland)]


Business Type:Manufacturer
City: shenzhen
Province/State: guangdong
Country/Region: China (Mainland)

You May Like:

Product (202)