Sale!

CNY70 Reflective Optical Sensor Kit

Original price was: 3,12 €.Current price is: 2,71 €. Excluding VAT

3 Pieces CNY70 Reflective Optical Phototransistor IC Integrated Circuits

Available on back-order

Domande su questo prodotto? Scrivi a Lana su WhatsApp

🎬 The product on video

Description

3 Pieces CNY70 Reflective Optical Phototransistor IC Integrated Circuits

Reflective optical sensor, CNY70

The CNY70 is a reflective sensor that contains an infrared emitter and a phototransistor. The protective daylight filter coating is applied to suppress interference.

Specifications
Attribute Value
Peak distance sensors 0.5mm
Output Phototransistor
Number of channels 1
Number of pins 4
Mounting type Through-hole mounting
Dimensions 7 x 7 x 6mm
Height 6mm
Length 7mm
Maximum Operating Temperature
Minimum Operating Temperature
Width 7mm
Operating Temperature Range -40

We have datasheets available for all components, if not present in the product download card, send us a message through the contact us form and we will publish it as soon as possible on our website.

Tutorial: How to Use Reflective Sensor CNY70

The reflective sensor CNY70 is an optical component used for non-contact object detection. It is ideal for home automation and robotics projects.

What you need

  • Arduino Uno
  • Jumper Connectors
  • USB Power Supply

Steps

  1. Connect the VCC pin of the sensor to the +5V of the Arduino
  2. Connect the GND pin of the sensor to the ground (GND) of the Arduino
  3. Connect the sensor output to a digital input pin of the Arduino
  4. Write and upload the Arduino sketch to read data from the sensor
  5. Check the values read on the serial monitor
  6. Adapt the code to control actions based on the presence or absence of objects

Example code

const int sensorPin = 2; // pin digitale collegato al sensore
void setup() {
  Serial.begin(9600);
  pinMode(sensorPin, INPUT);
}
void loop() {
  int sensorValue = digitalRead(sensorPin);
  Serial.println(sensorValue);
}

Mini project

Create an automatic alarm system that sends a notification when an object is detected.

Common mistakes

  • Connect the sensor to the wrong pin of the Arduino
  • Do not check the data readings on the serial monitor
  • Expose the sensor to too much direct light, altering its readings

Recommended accessories

  • Arduino Uno R3
  • M/F Jumper Connections
  • 3D Printer to create the project support
  • Buzzer or LED to display the alarm

Frequently asked questions

What is the maximum detection distance?
Check the datasheet.

Can the sensor detect different colors?
No, the CNY70 is a black and white sensor that detects the presence or absence of objects.

Reviews

There are no reviews yet.

Be the first to review “CNY70 Reflective Optical Sensor Kit”

Your email address will not be published. Required fields are marked *