Line Tracing Sensor Module

  • Line Tracing Sensor Module

Below you can see the corresponding code:

An example project for Line Tracing Module

/*
Author: Danny van den Brande, Arduinosensors.nl. Bluecore Tech
in this example i show you how to use the KY-033 as a white line tracer.
 */
int WhiteLed = 2; 
int Sensor = A5; 
int sensorValue = 0; 

void setup () {
  pinMode (WhiteLed, OUTPUT);
  Serial.begin (9600);
}
void loop () {
  sensorValue = analogRead (Sensor);
  if (sensorValue < 50&& sensorValue < 500) 
  {
  digitalWrite (WhiteLed, HIGH);
  Serial.println (sensorValue, DEC);
  }
  else (sensorValue > 500&& sensorValue > 1023);
  { 
  digitalWrite (WhiteLed, LOW);
  Serial.println (sensorValue, DEC);
  }
}
Specifications
Working current: ≥ 20mA
Working voltage: 3.3V-5V
Operating temperature: -10℃~+50℃
Effective angle: 35°

Write a review

Please login or register to review

Line Tracing Sensor Module

  • Webwinkel Keurmerk en klantebeoordelingen

  • 14 dagen bedenktijd 
  • Verzendkosten voor eigen rekening
  • Product Code: KY-033
  • Availability: 6
  • 2.49€

  • Ex Tax: 2.06€

Similar Products

Temperature Sensor Module

Temperature Sensor Module

Download the required libraries below:DallasTemperature-Library.zipLCD5110_Graph-Library.zipBelow yo..

2.99€ Ex Tax: 2.47€

Sound Sensor Module

Sound Sensor Module

Below the corresponding code:Example code: Digital output.int Led = 13 ;// define LED Interfaceint b..

2.29€ Ex Tax: 1.89€

2 Color LED Module RG Small

2 Color LED Module RG Small

Below the corresponding code:// Arduino test code for KY011 int redpin = 11; // select the pin for ..

2.29€ Ex Tax: 1.89€

Photoresistor Sensor Module

Photoresistor Sensor Module

Below you can see the corresponding code: An example of a project for the KY-018/* Author: Danny v..

1.95€ Ex Tax: 1.61€