Client support
Email: info@electrofun.pt
(SEM IVA 1.60€)
The CNY70 has a compact construction where the emitter and receiver are arranged in the same direction to detect the presence of an object using the object's reflective IR beam.
The CNY70 has a compact construction where the emitter and receiver are arranged in the same direction to detect the presence of an object using the object's reflective IR beam.
Specifications:
• Sensor Type: Optical Coupler;
• Collector voltage - Emitter: 32V;
• CTR @ If: 5% @ 20mA;
• Type of Output: Transistor;
• Kind of Optical Coupler: Reflective.
Assembly and Connections
The CNY70 Sensor has four connecting pins, two of which are anode and cathode of the emitter and the other two are the collector and the emitter of the receiver. We can use the letters of the plastic housing as a reference to identify the pins.
The connections are very simple, the VCC pins of the sensor go to the Arduino's 5v output. The GND pin of the sensor saw the GND of the Arduino with a 100 Ohm resistance interspersed. The OUT pin of the sensor goes to analog pin 0 of the Arduino (A0). We put a resistance of 1K between the OUT pin of the sensor and the GND pin of the Arduino.
Arduino Code:
int pinReceptor = A0; //Estabelecemos o pino a ler int sensorVal; //Declaramos uma variável para armazenar o valor de la leitura void setup(){ Serial.begin(9600); // Abrimos comunicação Serial } void loop(){ sensorVal = analogRead(pinReceptor); //Guardamos a leitura do pino Analógico Serial.println(sensorVal); //Obtemos a leitura por serial delay(500); //Pequena pausa de médio segundo
}
Download:
Includes:
• 1x Reflective Optical Sensor (CNY70).
Anonymous customer published the 05/07/2022 following an order made on 17/06/2022
Muito bem, corresponde às minhas expectativas, recomendo!
This is the Infrared Proximity Sensor made by Sharp.