Moonpreneur Icon
Student engaged in interactive online math learning session with headphones

Traffic light

MoonCampaign by Divyansh (9 years)

I created a project called the Traffic Light using the Micro:bit. When you press the logo, the green light turns on, then after one second it switches off, and the yellow light appears. After another second, the red light turns on to stop the traffic. I used digital pins to control each light — pin 15 for green, pin 14 for red, and together they make yellow. This project helped me understand how real traffic lights work and how timing in code controls signals safely.

👍

Views:

Your rating and comment will go a long way in encouraging Divyansh and taking their innovation Traffic light to new heights.

terms and conditions

Divyansh is already a part of this story

MoonCampaigns highlight student's creativity, public speaking, presentation skills, and teamwork, with an impressive track record that speaks volumes. MoonCampaigns, through quarterly Show & Tell, highlight thousands of inspiring learning stories from Moonpreneur students worldwide.

5000+

Innovative MoonCampaigns

20,000+

Minutes of Visual Content

1M+

Unique Video Views

40,000+

Unique Feedbacks and appreciation to kids from community

80%

parents observed transformational changes in their ward's STEM knowledge and leadership skills

95%

Parents Reported Increased Confidence in their child

All about Divyansh project

I made something that we all see on the roads every day — a Traffic Light System using a Micro:bit. I wanted to create this project because traffic lights are very important for safety, and I was curious to learn how they work with timing and colors.

In my project, when I press the Micro:bit logo, the sequence of lights begins. I programmed pin 15 to control the green LED light. It turns on for one second, signaling that vehicles can go. Then it switches off, and both pin 14 (red) and pin 15 (green) turn on together to create a yellow light — this tells drivers to get ready to stop. After another second, the red light on pin 14 turns on alone, showing that vehicles must stop. This cycle repeats just like a real traffic signal.

Launch your child's
success today

What people
have to say

See what people around the world are saying about Divyansh Traffic light project

Preparing Kids for the AI-Driven Future

Everything parents need to know about building future-ready skills in an AI-powered world.

Why is preparing children for an AI-driven future more important than ever?
What are the key skills AI can never replace?
How does MoonCampaign help children build these future-ready skills?
How does project-based learning prepare kids better than traditional learning?

You Might Also Like

Every child is gifted. Discover how yours can innovate and lead