กลับไปหน้ารวมไฟล์
arduino-trafic-light-a6ddad-en.md

I was in my school and my teacher told me to make a trafic light.

EXPANDED TECHNICAL DETAILS

Urban Logic Simulation

A foundational project in state-machine design, replicating the standard behavior of an urban four-way intersection.

  • State-Machine Logic: The code avoids the delay() function, instead using a switch/case structure managed by millis(). This allows for a "Pedestrian Crossing" button that can interrupt the light cycle instantly.
  • Programmable Timing: Features a "Night Mode" where the lights switch to blinking Yellow/Red, demonstrating how smart traffic systems adjust to traffic density.

Visual Hardware

  • Standardized Signaling: Uses 10mm high-brightness LEDs. The firmware includes a "Clearance Interval" (all-red) logic to simulate real-world safety protocols.

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

title: "Arduino trafic light"
description: "With this proyect you can do thre ledes work a a team."
author: "Sebasop12"
category: ""
tags:
  - "cars"
views: 2166
likes: 1
price: 435
difficulty: "Easy"
components:
  - "1x Perma-Proto Breadboard Half Size"
  - "1x 5 mm LED: Green"
  - "1x 5 mm LED: Yellow"
  - "1x Arduino UNO"
  - "1x Jumper wires (generic)"
  - "1x  paperboard"
  - "1x  toothpick"
  - "1x Hot glue gun (generic)"
  - "1x 5 mm LED: Red"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles:
  - "https://create.arduino.cc/editor/Sebasop12/e07f93e3-e033-40aa-9fb5-5ee00f90acf8"
  - "https://create.arduino.cc/editor/Sebasop12/e07f93e3-e033-40aa-9fb5-5ee00f90acf8"
documentationLinks: []
passwordHash: "8a569e1c12716b67badda19a5ec248128c7a44a004dff69fb8c1579cedd390c8"
encryptedPayload: "U2FsdGVkX18o03Z5rvxaUvKGFSpbUHLvpHwdT9A8RNzx3a/JzeT/pcDRfaIvldkMP3v6fDpwB3/IqUtUgd8lmsPejFMWHbFA2iT8GiH+a+A="
seoDescription: "Create a simple Arduino Traffic Light using 3 LEDs. A perfect starter project for anyone interested in Arduino programming."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/arduino-trafic-light-a6ddad_cover.jpg"
lang: "en"