QB050 Photoelectric Sensor

1.Product Introduction

../../_images/Photoelectric-1.jpeg

Photoelectric sensor are commonly used to detect the presence, position, or motion of an object.

It consists of a transmitter, which generates an infrared beam, and a receiver, which receives the infrared beam. When the middle is blocked, the receiver cannot receive the light signal, so as to detect the presence or movement of the object.

2.Parameter Specification

Parameter Value//Description
Operating voltage 3.3V~5V
Operating temperature -10°C~+50°C
Output signal Digital signal
Size 3.16cm*2.38cm
../../_images/Photoelectric-5.jpg

3.Wiring Diagram

../../_images/Photoelectric-2.png
PIR Motion Sensor UNO
VCC 5V
GND GND
S Digital Pin 7

4.Sample Code

1//www.acebott.com
2void setup() {
3pinMode(7,INPUT);//Set pin 7 to input mode
4Serial.begin(9600);//Set baud rate to 9600
5}
6void loop() {
7Serial.println(digitalRead(7));//Read the state of pin 7and print it to the serial monitor
8delay(1000); 
9}

5.Test Result

After uploading the code to the controller board, open the serial port monitor of the Arduino IDE and set the baud rate to 9600.

When there is no object blocking the sensor, the sensor returns data 0. When there is an object blocking, the sensor returns data 1.

../../_images/Photoelectric-3.jpeg
../../_images/Photoelectric-4.png

6.Related Resources

PDF and Code

7.Get One Now

B2B Business: info@acebott.com

Related posts

Leave the first comment

Apply for a Free Trial

This product trial is prioritized for educators and academic institutions.

By filling out and submitting this form, you agree to the
Acebott Product Trial Terms and Conditions.

Unlock Your Exclusive Education Discount Today

Fill out this form to apply for special discounts tailored for educators and institutions. Enjoy at least 5% off on our STEM kits—because education deserves a reward!

Please fill out the form above, and our team will get in touch with you promptly!
😊🚀

Get A Free Quote! 🎉

Can’t find the perfect STEM kit ? Want the best wholesale prices ?
Interested in becoming a distributor ?

Just fill out the form above, and we’ll get back to you ASAP with all the info you need! 😊🚀

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.