Hunt Sensor Module KY-033 View larger

Hunt Sensor Module KY-033

Black / White Line Hunting Sensor Module For Arduino.

More details

New

4.00 JD

Infrared obstacle avoidance for Arduino !
 

Specifications:
  • Working Voltage : 3.3V - 5V DC
  • Working Current : ≥ 20 mA
  • Operating Temperature : -10°C~+50°C
  • Detection distance : 2-40 cm
  • IO Interface : 4-Wire Interfaces (-/+/S/EN)
  • Output Signal : TTL Level ( Low level when detecting objects/ high level when no objects/0 or 1 decides if objects exist)
  • Effective angle : 35°
  • Size : 28mm X 33mm  

Schematic


Example

 this example shows you how to use the KY-033 as a white line tracer.

/*
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);
  }
}

  • Comments ()