Infrared Line Tracing Module(TCRT5000): 두 판 사이의 차이

아두위키 : Arduwiki
(Created page with "{{#seo:|title=아두위키 : 아두이노 적외선 라인트레이싱 모듈(TCRT5000) 가이드|title_mode=append|keywords=아두이노, 정보과학, 메이커학습, 수행평가, 적외선 라인트레이싱 모듈(TCRT5000), 아두이노 작품, 캡스톤작품, 아두이노 예제코드|description=아두이노로 적외선 라인트레이싱 모듈(TCRT5000)을 제어하는 방법(기본정보, 회로, 예제 코드)을 소개합니다. 정보과학과 메이커...")
 
잔글편집 요약 없음
 
1번째 줄: 1번째 줄:
{{#seo:|title=아두위키 : 아두이노 적외선 라인트레이싱 모듈(TCRT5000) 가이드|title_mode=append|keywords=아두이노, 정보과학, 메이커학습, 수행평가, 적외선 라인트레이싱 모듈(TCRT5000), 아두이노 작품, 캡스톤작품, 아두이노 예제코드|description=아두이노로 적외선 라인트레이싱 모듈(TCRT5000)을 제어하는 방법(기본정보, 회로, 예제 코드)을 소개합니다. 정보과학과 메이커수업에 활용가능합니다.}}
{{#seo:|title=ArduWiki : Arduino Infrared Line Tracing Module (TCRT5000) Guide|title_mode=append|keywords=Arduino, Computer Science, Maker Learning, Performance Assessment, Infrared Line Tracing Module (TCRT5000), Arduino Project, Capstone Project, Arduino Example Code|description=Introduces how to control an infrared line tracing module (TCRT5000) using Arduino (basic info, wiring, example code). Useful for computer science and maker classes.}}
[[File:라인트레이싱대표이미지1.jpg|center|class=coders100]]
[[파일:라인트레이싱대표이미지1.jpg|가운데|class=coders100]]
 
The product is an infrared transmission and reception sensor module designed specifically for line tracing applications. It comes equipped with an adjustable variable resistor, allowing for fine-tuning of sensitivity.
The product is an infrared transmission and reception sensor module designed specifically for line tracing applications. It comes equipped with an adjustable variable resistor, allowing for fine-tuning of sensitivity.



2025년 3월 27일 (목) 17:52 기준 최신판

The product is an infrared transmission and reception sensor module designed specifically for line tracing applications. It comes equipped with an adjustable variable resistor, allowing for fine-tuning of sensitivity.

The part of the sensor that detects is highlighted in red in the accompanying image, while the yellow part represents the sensitivity adjustment component.

Specifications

  • Operating Voltage: 3V ~ 5V
  • Output Type: Analog, Digital

Example Required Hardware

  • Arduino board
  • Jumper cables
  • TCRT5000 module

Connection

Arduino TCRT5000
5V V+
GND G
D2, A7 S

Example Code

const int analogPin = A7; // Analog pin used to connect the sensor
const int digitalPin = 2; // Digital pin used to connect the sensor

void setup() {
  pinMode(digitalPin, INPUT); // Set the digital pin as input
  Serial.begin(9600); // Start serial communication at 9600 baud
}

void loop() {
  Serial.print(analogRead(analogPin)); // Read the analog value from the sensor
  Serial.print("\t"); // Print a tab for formatting
  Serial.println(digitalRead(digitalPin)); // Read and print the digital value from the sensor
  delay(100); // Wait for 100 milliseconds before the next reading
}

Execution Results

  • When nothing is close to the sensor
  • When a black object is near the sensor
  • When a white object is near the sensor