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: 14
  • 2.49€

  • Ex Tax: 2.06€

Similar Products

7 Color LED Module

7 Color LED Module

Below the corresponding code:/ * BlinkTurns on an LED on for two second, then off for two second, r..

2.36€ Ex Tax: 1.95€

Passive Buzzer Module

Passive Buzzer Module

Below the corresponding code://Example Code for KY-006  int buzzer = 8 ;// setting controls th..

1.95€ Ex Tax: 1.61€

2 Color led module RG

2 Color led module RG

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

2.29€ Ex Tax: 1.89€

Laser Transmitter Module

Laser Transmitter Module

Below the corresponding code:an example project for the Laser Transmitter.//Author Danny van den Bra..

3.50€ Ex Tax: 2.89€