The CNY70 reflective photoelectric switch is a simple yet powerful component that’s a staple in countless automation and sensing projects. This compact sensor integrates both an infrared (IR) light-emitting diode (LED) and a phototransistor into a single, small package. It works by shining a beam of IR light and then detecting how much of that light reflects back from a nearby surface. The amount of reflected light determines the output of the phototransistor, allowing you to easily detect objects, differentiate between light and dark surfaces, and even follow lines. Its straightforward operation and robust design make it an ideal choice for robotic line-following, object counting, and other simple detection tasks.
Key Features:
- Integrated Design: The module combines an IR emitter and a phototransistor in a single package, simplifying assembly and alignment.
- Non-Contact Sensing: Detect objects without any physical contact, which is ideal for fragile or moving parts.
- Dependable Performance: The plastic housing protects the sensor from dust and light, ensuring reliable operation in a variety of environments.
- Easy to Use: Its simple four-pin configuration makes it easy to interface with microcontrollers like Arduino and Raspberry Pi.
- Versatile Detection: You can use it to sense objects or distinguish between different colors and materials based on their reflectivity.
Technical Specifications:
- Emitter Type: Infrared Emitting Diode
- Detector Type: Phototransistor
- Output Type: NPN Phototransistor
- Operating Voltage: Typically 5V DC (requires current-limiting resistor for the LED)
- Peak Wavelength: 950 nm (infrared)
- Sensing Distance: Optimal sensing range is typically 0.1mm to 5mm, depending on the surface.
Mechanical Specifications:
- Package Type: Plastic housing with a rectangular shape.
- Mounting: Can be mounted using adhesives or a custom holder.
- Pins: Four through-hole pins for easy soldering or breadboard use.
- Material: Opaque black plastic to prevent interference from ambient light.
Dimensions:
- Body Length: 7 mm
- Body Width: 7 mm
- Body Thickness: 6 mm
Pinout and Wiring:
- Anode (A): Positive (+) terminal of the IR LED.
- Cathode (K): Negative (-) terminal of the IR LED.
- Collector (C): Collector of the phototransistor.
- Emitter (E): Emitter of the phototransistor (typically connected to ground).
- Wiring Note: Connect a current-limiting resistor (e.g., 220 Ohms for 5V) in series with the LED’s Anode. Connect a pull-up or pull-down resistor to the Collector pin to read the output voltage change.
Datasheet Reference:
Commonly Used in:
- Educational Projects: A foundational component for teaching basic electronics and robotics.
- Robotics: The most common sensor for building a line-following robot.
- Industrial Automation: Used in simple counting mechanisms or position sensing.
Applications:
- Line Following Robots: Create a robot that follows a black line on a white surface.
- Object Detection: Build a simple gate counter or a proximity alarm.
- Motor Speed Detection: Attach a reflective disc to a motor shaft and count the pulses to measure RPM.
Equivalent Models:
- QRD1114: A similar reflective sensor, often found on breakout boards for simpler use.
- TCRT5000: Another popular reflective sensor with a slightly different package and sensing characteristics.
Package Includes:
- 1 x CNY70 Reflective Photoelectric Switch
Additional information
| Weight | 5 g |
|---|








Reviews
There are no reviews yet.