Smart Traffic Light System with Python and Sensors

Smart Traffic Light System with Python and Sensors

From Friday, April 25, 2025 10:00 AM
to Friday, April 25, 2025 11:00 AM

Shkolla "Flatrat e dijes"

Open in-person activity

English

Fier, ALB

Students will build and program a Smart Traffic Light System that responds dynamically to traffic conditions. Using Python and a microcontroller (such as Raspberry Pi or Arduino with Python support), students will integrate ultrasonic or IR sensors to detect the presence and volume of "vehicles" (simulated using small toy cars or objects). Based on real-time input, the system will adjust traffic light cycles—extending or shortening green light durations to improve traffic flow efficiency.

 

Students will design the logic behind traffic control using conditional statements (if-else), timers, loops, and sensor feedback. They’ll explore the fundamentals of automation, smart cities, and how technology can solve real-world transportation problems.

    Secondary school
    Robotics

Longitude: 19.57535
Latitude: 40.73944
Geoposition: 40.73944,19.57535

Nearby upcoming activities:

Maps Mind Makers
Wed, Apr 30, 2025 1:07 PM

In this universe, maps of different types serve as a backdrop for fun challenges with autonomous vehicles that obey your programs. To win, you will have to interpret each map and program not only the movements, but adapt to the unexpected using sensors for obstacles and natural events such as weather, temperature, and the passage of time. Have a good trip!

Autonomous Trash Collector Robot: Code for a Cleaner Planet
Thu, Apr 24, 2025 10:45 AM

students will design and code an autonomous robot capable of identifying and collecting waste materials from a designated area. Using robotics kits (such as Arduino, Raspberry Pi, or micro:bit) and Python programming, learners will integrate sensors (ultrasonic, infrared, color, or camera modules) to help the robot navigate its surroundings and detect objects that represent "trash."

The robot will be programmed to make decisions—such as turning, stopping, or activating a gripper—based on sensor input. Students will develop logical thinking through if-else statements, loops, and sensor feedback while enhancing their understanding of environmental sustainability by tackling a real-world challenge: waste collection.

 

This activity encourages collaboration, computational thinking, and engineering design. By the end of the project, students will demonstrate their robots in a "Clean-the-Environment" challenge, testing how efficiently each robot can detect and collect trash items from a test course.

Lumen: Navigating Life with Vision, Support, and Safety
Sat, Mar 1, 2025 10:52 AM

Lumen is a state-of-the-art robotic dog designed to assist blind individuals or those with vision impairments by providing safe, intelligent navigation and essential daily support. Using advanced sensors and spatial mapping, Lumen guides users through audio cues, helping them avoid obstacles, cross streets, and navigate both indoor and outdoor environments with confidence. It features a built-in medicine dispenser that alerts users when it's time to take their medication and provides the correct dosage at the right time. Lumen also includes emergency safety features such as a fire and smoke alarm system, instantly notifying the user and guiding them to safety when danger is detected. Additionally, its facial recognition capability helps identify familiar people, offering verbal cues like “That’s your sister Emily,” to enhance social interaction and awareness. With its combination of mobility aid, health management, emergency response, and social assistance, Lumen serves as a reliable and life-enhancing companion.