Sensor – CNY70 – Infrarood reflectie sensor
Hardware
Informatie (ENG)
The CNY70 is a reflective sensor that includes an infrared emitter and phototransistor in a leaded package which blocks visible light.
• Package type: leaded
• Detector type: phototransistor
• Dimensions (L x W x H in mm): 7 x 7 x 6
• Peak operating distance: < 0.5 mm
• Operating range within > 20 % relative collector current: 0 mm to 5 mm
• Typical output current under test: I C = 1 mA
• Emitter wavelength: 950 nm
• Daylight blocking filter
• Lead (Pb)-free soldering released
Werking van een infrarood reflectie sensor:
Pinout
Arduino
Er zijn verschillende schema’s te vinden op het internet, de enige die ik goed vond werken is de 100 ohm + 10K ohm versie:
Sluit de module aan volgens onderstaand overzicht:
Script
Standaard arduino script voor het uitlezen van analoge pins
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
/* AnalogReadSerial Reads an analog input on pin 0, prints the result to the Serial Monitor. Graphical representation is available using Serial Plotter (Tools > Serial Plotter menu). Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground. This example code is in the public domain. http://www.arduino.cc/en/Tutorial/AnalogReadSerial */ // the setup routine runs once when you press reset: void setup() { // initialize serial communication at 9600 bits per second: Serial.begin(9600); } // the loop routine runs over and over again forever: void loop() { // read the input on analog pin 0: int sensorValue = analogRead(A0); // print out the value you read: Serial.println(sensorValue); delay(100); // delay in between reads for stability } |
Afmetingen
Schema
GEEN GEGEVENS
Teardown
GEEN GEGEVENS
Datasheet
Fritzing
Downloads
GEEN GEGEVENS