The Best DIY STEM Tutorials and Projects
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 Name | Quantity |
---|---|---|
1 | Arduino Uno | 1 |
2 | Arduino Uno’s Cable | 1 |
3 | Red, Yellow and Green LED | 1 each |
4 | 470 Ohm Resistor | 1 |
5 | Jumper Wires | Red, Yellow, and Green LED |
6 | Laptop or a PC | 1 |
Circuit Diagram
First Things First, Lets Setup the Circuit as shown in the image below
- Connect the Anodes (longer leg) of red, yellow, and green LEDs to pins 2,3 and 4 of Arduino uno respectively.
- 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!