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!
This circuit is designed for a robotic system, featuring a Massive Sumo Board as the central controller. It integrates multiple FS-80NK diffuse IR sensors and IR line sensors for obstacle detection and line following, respectively, and controls two GM25 DC motors via MD13s motor drivers for movement. Power is supplied by an 11.1V LiPo battery.
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.
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.
This circuit is a robotic control system that uses multiple IR sensors for line detection and obstacle avoidance, powered by a 3S LiPo battery. The Cytron URC10 motor driver, controlled by a microcontroller, drives two GM25 DC motors based on input from the sensors and a rocker switch, with a 7-segment panel voltmeter displaying the battery voltage.
Analog voltage output relative to surface reflectivity
Usage Instructions
How to Use the Component in a Circuit
Power Supply: Connect the VCC pin to a 5V power supply and the GND pin to the ground.
Output Signal: Connect the VO pin to an analog input on your microcontroller to read the sensor's output.
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
Surface Contrast: Ensure a high contrast between the line and the surrounding surface for optimal performance.
Ambient Light: Shield the sensor from direct sunlight and other sources of infrared light to prevent interference.
Calibration: Calibrate the sensor for the specific surface and line color used in your application.
Voltage Levels: When interfacing with microcontrollers operating at lower voltages (e.g., 3.3V), use a voltage divider or level shifter for the sensor's output.
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
Inconsistent Readings: If the sensor provides inconsistent readings, check for proper alignment and distance from the surface. Also, verify that the surface contrast is sufficient.
No Output: Ensure that the sensor is correctly powered and that all connections are secure. Check the VCC and GND pins for proper voltage levels.
Interference from Ambient Light: If ambient light is affecting the sensor's performance, try adding a physical shield around the sensor to block out extraneous light.
Solutions and Tips for Troubleshooting
Calibration: Adjust the threshold in your code to match the specific reflectivity of the line and surface.
Wiring Check: Double-check all connections, especially if the sensor is not responding or behaving erratically.
Sensor Cleaning: Keep the sensor clean and free from dust or debris that could obstruct the infrared signal.
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.