LINE TRACKER SEN-KY033LT 1. GENERAL INFORMATION Dear costumer, thank you very much for choosing our product. In following, we will introduce you to what to observe while starting up and using this product. Should you encounter any unexpected problems during use, please do not hesitate to contact us www.joy-it.net Pascalstr.
. PIN ASSIGNMENT 3. USAGE WITH A RASPBERRY PI 1. Connection KY033 Raspberry Pi GND Ground (Pin 6) V+ 3,3 V (Pin 1) Signal GPIO24 (Pin 18) www.joy-it.net Pascalstr.
2. Code example This sample code shows in the console whether the sensor is above a line or not. This is done by infrared, because if the sensor is on the line, the transmitted infrared signal does not reach the receiver. # Required modules are imported and set up import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) # The input pin to which the sensor is connected, is declared here. GPIO_PIN = 24 GPIO.setup(GPIO_PIN, GPIO.IN, pull_up_down = GPIO.
Or you can create a new file with the following command and copy the example code described into it: sudo nano KY-033_RPi_Trackingsensor.py Now, you have to save the file with CTRL + O and press Enter to confirm. Press CTRL + X to exit the editor again. With both variants, the program will be performed as follows: sudo python3 KY-033_RPi_Trackingsensor.py 4. USGAE WITH AN ARDUINO 1. Connection KY033 Arduino GND GND V+ 5V Signal Pin 10 www.joy-it.net Pascalstr.
2.Code example This sample code shows in the serial monitor whether the sensor is above a line or not. This is done by infrared, because if the sensor is on the line, the transmitted infrared signal does not reach the receiver. int Sensor = 10; // Declaration of the sensor input pin void setup (){ Serial.
5. AUTOMATIED LINE TRACKER FUNCTON These sensors can also be used with robots. But you must note that three of these sensors are necessary for the robot to hold the line. These sensors are used, for example, in the Joy-Car. This enables the robot to follow a line on its own without any human influence. The Joy-Car can be found under the article no. MB-Joy-Car and is a robot kit for self assembly. It works with the help of a Micro:Bit and offers many more functions. www.joy-it.net Pascalstr.
6. OTHER INFORMATION PR Our information and take-back obligations according to the Electrical and Electronic Equipment Act (ElektroG) Symbol on electrical and electronic equipment: This crossed-out dustbin means that electrical and electronic appliances do not belong in the household waste. You must return the old appliances to a collection point. Before handing over waste batteries and accumulators that are not enclosed by waste equipment must be separated from it.