Listen to this Post
In a world where technology is rapidly evolving, young innovators like Mahrosh are proving that age is just a number. At just 12 years old, Mahrosh has developed a Traffic Light Control System, blending math, science, and art to solve real-world problems. Her project, showcased in the Moonpreneur Show & Tell competition, highlights the intersection of creativity and coding.
To learn more about her journey, tune in to the podcast: https://lnkd.in/gXsf6wXE
You Should Know:
If you’re inspired by Mahrosh’s story and want to dive into similar projects, here are some practical steps, commands, and codes to get you started:
- Setting Up a Raspberry Pi for IoT Projects
Mahrosh’s Traffic Light Control System could be built using a Raspberry Pi, a popular tool for IoT projects. Here’s how to set it up:
- Install Raspberry Pi OS:
sudo apt-get update sudo apt-get upgrade sudo apt-get install raspberrypi-ui-mods
-
Control GPIO Pins (for Traffic Lights):
import RPi.GPIO as GPIO import time</p></li> </ul> <p>GPIO.setmode(GPIO.BCM) GPIO.setup(18, GPIO.OUT) # Red Light GPIO.setup(23, GPIO.OUT) # Yellow Light GPIO.setup(24, GPIO.OUT) # Green Light try: while True: GPIO.output(18, GPIO.HIGH) # Red ON time.sleep(5) GPIO.output(18, GPIO.LOW) # Red OFF GPIO.output(24, GPIO.HIGH) # Green ON time.sleep(5) GPIO.output(24, GPIO.LOW) # Green OFF GPIO.output(23, GPIO.HIGH) # Yellow ON time.sleep(2) GPIO.output(23, GPIO.LOW) # Yellow OFF except KeyboardInterrupt: GPIO.cleanup()
- Simulating Traffic Lights Using Python (No Hardware Required)
If you don’t have a Raspberry Pi, you can simulate traffic lights using Python:
import time def traffic_light(): while True: print("Red Light ON") time.sleep(5) print("Red Light OFF") print("Green Light ON") time.sleep(5) print("Green Light OFF") print("Yellow Light ON") time.sleep(2) print("Yellow Light OFF") traffic_light()3. Learning Resources for Young Coders
- Scratch Programming: A great starting point for kids to learn coding concepts. https://scratch.mit.edu
- Code.org: Offers free coding courses for all ages. https://code.org
- Raspberry Pi Foundation: Tutorials and projects for IoT and coding. https://www.raspberrypi.org
What Undercode Say:
Mahrosh’s story is a testament to the power of combining creativity with technical skills. Whether you’re a beginner or an experienced coder, her project demonstrates the importance of thinking outside the box. Here are some additional Linux and Windows commands to help you on your coding journey:
- Linux Commands:
- Check system information: `uname -a`
– Monitor system processes: `top`
– Create a new directory: `mkdir project_folder`
– Compile and run a C program: `gcc program.c -o program && ./program` - Windows Commands:
- Check IP configuration: `ipconfig`
– List directory contents: `dir`
– Ping a server: `ping google.com`
– Shutdown the system: `shutdown /s`By exploring these tools and commands, you can start building your own innovative projects, just like Mahrosh. Keep coding, keep creating, and who knows—you might just change the world!
References:
Reported By: Alokkjain Shes – Hackers Feeds
Extra Hub: Undercode MoN
Basic Verification: Pass ✅Join Our Cyber World:
- Simulating Traffic Lights Using Python (No Hardware Required)



