The Best DIY STEM Tutorials and Projects

Traffic Light Project

OVERVIEW

In This tutorial, we’re going to walk you through creating your very own Traffic Light Project with Arduino and mBlock’s block programming. It’s going to be fun, easy, and a great introduction to the world of Arduino programming. So, let’s dive right in!”

You can choose between two fun ways to learn:

Option 1: Watch the cool video tutorial to see and follow along step by step.

Option 2: If you like reading, check out the easy-to-follow written instructions below.

Video Tutorial

Awesome work, buddy! If you have any questions or need help, just leave a comment or contact us. We’re always here to help you out!

Tell us in the comments how you feel about making this proejct, we will soon make many more cool stuff 🌟💡

Don’t forget to share a video of your project with us, thanks!

Components Required

For This Project You will need the following components:

Sr #Item NameQuantity
1Arduino Uno1
2Arduino Uno’s Cable1
3Red, Yellow and Green LED1 each
4470 Ohm Resistor1
5Jumper WiresRed, Yellow, and Green LED
6Laptop or a PC1

Circuit Diagram

First Things First, Lets Setup the Circuit as shown in the image below

  1. Connect the Anodes (longer leg) of red, yellow, and green LEDs to pins 2,3 and 4 of Arduino uno respectively.
  2. Connect the Cathode (shorter leg) of LEDs to GND through a 470 Ohm Resistor

Good Job! Our circuit is now set up and ready to go.

Coding With Mblock

Now Setup the block code as shown in the image

Now upload the code to Arduino!

Great Work, your Traffic Light Project should be working now! if there is any problem please tell is in the comments, don’t forget to share your project video with us! Happy Learning!

Share your love

Leave a Reply

Your email address will not be published. Required fields are marked *