KY-033
KY-033 is Tracking sensor module manufactured by Joy-IT.
- Part of the KY-033-Joy comparator family.
- Part of the KY-033-Joy comparator family.
description
1 3 Pinout 3 4 Code example Arduino 3 5 Code example Raspberry Pi 4
Picture
Technical data / Short description
The sensor detects if a light reflecting or absorbing area is in front of it. It shows which of the 2 areas it is via digital output, as you can see in the picture below. The Sensitivity (minimum range) of the sensor can be adjusted by the controller. This behavior can be used to automatically follow a line with a robot.
Condition 1: Line Tracker is on a line (not reflecting area) [LED on the module: Off] [Sensor signal= Digital On]
Export: 16.06.2017
Copyright by Joy-IT
- Published under CC BY-NC-SA 3.0
Page 147 of 214
KY-033 Tracking sensor module
Condition 2: Line Tracker not on a line (reflecting area) [LED on the module: ON] [Sensor signal= Digital Off]
Export: 16.06.2017
Copyright by Joy-IT
- Published under CC BY-NC-SA 3.0
Page 148 of 214
KY-033 Tracking sensor module
Pinout
Code example Arduino int Sensor = 10; // Declaration of the sensor input pin void setup () {
Serial.begin(9600); // Initialization serial output pin Mode (Sensor, INPUT) ; // Initialization sensor pin } // The program reads the status of the sensor pins // shows via serial terminal if the linetracker is on the line or not void loop () { bool val = digital Read (Sensor) ; // The current signal of the sensor will be read if (val == HIGH) // If a signal is detected the LED will light up. {
Serial.println("Line Tracker...