Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use MKE-S10 CNY70 Line Follower Sensor: Examples, Pinouts, and Specs

Image of MKE-S10 CNY70 Line Follower SensorDesign with MKE-S10 CNY70 Line Follower Sensor in Cirkit Designer

Introduction

The MKE-S10 CNY70 is a compact line follower sensor designed for robotics and automation applications. It utilizes an infrared LED and a phototransistor to detect the contrast between a line (typically black) and the surrounding surface (typically white). This sensor is widely used in educational robots, maze solvers, and industrial line following vehicles.

Explore Projects Built with MKE-S10 CNY70 Line Follower Sensor

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of MakerEdu Creator with Bluetooth, IR Sensors, LCD Display, and Push Button Interaction: A project utilizing MKE-S10 CNY70 Line Follower Sensor in a practical application
MakerEdu Creator with Bluetooth, IR Sensors, LCD Display, and Push Button Interaction

This circuit features a MakerEdu Creator microcontroller board interfaced with two MKE-S11 IR Infrared Obstacle Avoidance Sensors, a MKE-M02 Push Button Tact Switch, a MKE-M15 Bluetooth module, and a MKE-M08 LCD2004 I2C display module. The push button is connected to a digital input for user interaction, while the IR sensors are likely used for detecting obstacles. The Bluetooth module enables wireless communication, and the LCD display provides a user interface for displaying information or statuses.

Open Project in Cirkit Designer
Image of Raspberry Pi Zero W Based Line Tracking and Obstacle Detection System: A project utilizing MKE-S10 CNY70 Line Follower Sensor in a practical application
Raspberry Pi Zero W Based Line Tracking and Obstacle Detection System

This circuit integrates a Raspberry Pi Zero W with two sensors: a KY-033 Line Tracking Sensor and an FC-51 IR Sensor. The Raspberry Pi is configured to receive digital input signals from the KY-033 sensor on GPIO 04 and from the FC-51 sensor on GPIO 24. The circuit is designed for object detection and line tracking applications, with the Raspberry Pi processing the sensor inputs for decision-making tasks.

Open Project in Cirkit Designer

Common Applications and Use Cases

Technical Specifications

Key Technical Details

Pin Configuration and Descriptions

Pin Number Name Description
1 VCC Power supply (4.5V to 5.5V)
2 GND Ground
3 VO Analog voltage output relative to surface reflectivity

Usage Instructions

How to Use the Component in a Circuit

  1. Power Supply: Connect the VCC pin to a 5V power supply and the GND pin to the ground.
  2. Output Signal: Connect the VO pin to an analog input on your microcontroller to read the sensor's output.
  3. Mounting: Position the sensor close to the surface to ensure accurate detection. The recommended distance is within the peak operating range of 0.5mm to 15mm.

Important Considerations and Best Practices

Example Code for Arduino UNO

// Define the pin connected to the sensor's output
const int sensorPin = A0;

void setup() {
  // Initialize serial communication at 9600 baud rate
  Serial.begin(9600);
}

void loop() {
  // Read the analog value from the sensor
  int sensorValue = analogRead(sensorPin);
  
  // Convert the analog value to a voltage (0-5V)
  float voltage = sensorValue * (5.0 / 1023.0);
  
  // Print the voltage to the Serial Monitor
  Serial.println(voltage);
  
  // Delay for a short period to avoid spamming the Serial Monitor
  delay(100);
}

Troubleshooting and FAQs

Common Issues Users Might Face

Solutions and Tips for Troubleshooting

FAQs

Q: Can the MKE-S10 CNY70 sensor detect colors other than black and white? A: The sensor is designed to detect reflectivity differences. While optimized for black and white, it can detect other colors if there is sufficient contrast.

Q: What is the maximum operating distance of the sensor? A: The sensor operates best within a range of 0.5mm to 15mm from the surface.

Q: How can I adjust the sensitivity of the sensor? A: Sensitivity can be adjusted by calibrating the threshold value in your code based on the analog voltage readings from the sensor.

Q: Is it possible to use multiple MKE-S10 CNY70 sensors on a single robot? A: Yes, you can use multiple sensors to improve line detection and navigation accuracy. Ensure each sensor is connected to a separate analog input pin on your microcontroller.