กรณีต้องการติดต่อทาง LINE@ กรุณาเพิ่มเพื่อนด้วย LINE ID : @warf
Advertsement
Arduino Raspberry Pi Zigbee/802.15.4 Sensors Robotics LCDs

Adjustable Infrared Sensor Switch

550.00 THB

ราคาดังกล่าวรวมภาษีมูค่าเพิ่ม 7% เรียบร้อยแล้ว

Facebook Share << คลิ๊ก Share
Part No. : ELE-WA160637044
Manufacture No. : SEN0019
จำนวนในสต็อก : 1
ต้องการสั่งซื้อจำนวน
OR
ชำระเงิน PayPal แบบใหม่
ช่วยให้คุณซื้อสินค้าได้รวดเร็วและง่ายยิ่งกว่าเดิม
เพิ่มเพื่อน

รายละเอียดสินค้า: Adjustable Infrared Sensor Switch

This is an infrared distance switch. It has an adjustable detection range, 3cm - 80cm.  It is small, easy to use/assemble, and inexpensive. Useful for robotics, interactive media, industrial assembly line, etc.


 
Specification
  - Power supply: 5V
  - Current:100mA
  - Range:3-80cm adjustable
  - Red: +5V; Yellow:Signal;Green:GND


he DFRobot Adjustable Infrared Sensor Switch is a set of transmitter and receiver in one of the photoelectric switch sensor. The detection distance can be adjusted according to the demand. The sensor has a detection range of 3-80cm. The DFRobot Adjustable Infrared Sensor Switch is small, easy to use, inexpensive, easy to assemble and can be widely used in robot to avoid obstacles, interactive media, industrial assembly line, and many other occasions. The switching signal output differs in accordance to the obstacles. It remains high when no obstacles and remains low when there are obstacles. There is a bright light behind the probe to detect the scope of 3cm - 80cm.


Specification

  - Adjustable detection range, 3cm - 80cm

  - Small, easy to use/assemble, inexpensive

  - Useful for robot, interactive media, industrial assembly line, etc

  - Power supply: 5V


Pinout

  - Red - V+

  - Yellow - Signal

  - Green - GND


Infrared Sensor Switch


Connection Diagram

Analog sensor connection diagram


Sample Code

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

const int InfraredSensorPin = 4;//Connect the signal pin to the digital pin 4

const int LedDisp = 13;


void setup()

{

  Serial.begin(57600);

  Serial.println("Start!"); 

  pinMode(InfraredSensorPin,INPUT);

  pinMode(LedDisp,OUTPUT);

  digitalWrite(LedDisp,LOW);

}


void loop()

{

  if(digitalRead(InfraredSensorPin) == LOW)  digitalWrite(LedDisp,HIGH);

  else  digitalWrite(LedDisp,LOW);

  Serial.print("Infrared Switch Status:");

  Serial.println(digitalRead(InfraredSensorPin),BIN);

  delay(50);

}

ความคิดเห็นผู้ใช้งาน: Adjustable Infrared Sensor Switch

แสดงความคิดเห็น:

เข้าสู่ระบบสมาชิก ก่อนแสดงความคิดเห็น.
ได้รับการรับรองธุรกิจพาณิชย์อิเล็กทรอนิคส์
mce-lab
How to pay
Cards We Accept เลขทะเบียนพาณิชย์อิเล็กทรอนิกส์