- Send to a friend
-
- Remove this product from my favorite's list.
- Add this product to my list of favorites.
No specials at this time
No products added yet
Detailed Description:
Electric characteristics:
Size:
Application:
Arduino code - example:
/*
photoelectric arduino
red----------------5V
black--------------GND
yellow-------------9
*/
typedef unsigned char uchar;
uchar signal=9;
void setup()
{
pinMode(signal,INPUT);
Serial.begin(9600);
// put your setup code here, to run once:
}
void loop()
{
if(!digitalRead(signal))
{
Serial.println("The chip receives the sensor signal");
}
while(!digitalRead(signal));
// put your main code here, to run repeatedly:
}