กลับไปหน้ารวมไฟล์
block-detection-3-aspect-light-control-a31062-en.md

I have many hobbies including model trains, electronics and 4 welling in my Jeep. I am not a very good programmer. I was intrigued by the capabilities of the Arduino and wanted to make something practical so I could learn some programming skills. So I chose this as a starting place.

I used the Arduino UNO because it was cheep and easy to use. The Arduino community was very helpful. One person wrote a program to do what I wanted and from that I studied what the program did and how it run. I changed it from using analog inputs to using IR detectors to give a HIGH or LOW input to the Arduino.

EXPANDED TECHNICAL DETAILS

Model Railway Safety System

This project replicates professional railway signaling logic, using an Arduino to manage train traffic in a model railroad layout.

  • Occupancy Sensing: Uses Current Sensing or Infrared (IR) sensors placed under the track. When a train enters a specific "Block," the sensor triggers an analog or digital change in the Arduino.
  • 3-Aspect Signal Logic: The Arduino automatically manages three LEDs per signal head:
    • Green: Clear (next two blocks are empty).
    • Yellow: Caution (next block is empty, but the one after is occupied).
    • Red: Stop (immediate next block is occupied).

Distributed System Potential

  • Daisy-Chaining: Multiple Arduinos can be linked to communicate the "Block State" to each other, creating a fully automated, fail-safe signaling network across a several-meter-long layout.

ข้อมูล Frontmatter ดั้งเดิม

title: "Block Detection 3 Aspect Light Control"
description: "This is a simple IR sensor block detector for model railroads. It controls three lights: red, yellow and green."
author: "lecurtis"
category: "Lights & LEDs"
tags:
  - "train"
  - "traffic light"
  - "block"
views: 12908
likes: 18
price: 1120
difficulty: "Intermediate"
components:
  - "1x Arduino UNO"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles: []
documentationLinks: []
passwordHash: "c113597f2a4320f622182eba0b532898356fa113253325f6b525d6b3305f907a"
encryptedPayload: "U2FsdGVkX1+pQV/QKWQ4ZtRCTcj7q751y71ITts+jwk5bP3hYPJp9UmccKAcI3aAqUVUq5M06TQoGoNa3ilGEVrjmyIh6JVjUuSs8SrDOTo="
seoDescription: "Easy IR sensor block detector for model railroads. Control red, yellow, and green lights with this Arduino project."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/block-detection-3-aspect-light-control-a31062_cover.png"
lang: "en"