How to Make an LED Blink With MBlock and Arduino UNO – Fun Project for Kids
by sss2022 in Circuits > Arduino
17 Views, 0 Favorites, 0 Comments
How to Make an LED Blink With MBlock and Arduino UNO – Fun Project for Kids
In this fun and easy project, kids will learn how to make a small light (LED) blink using an Arduino Uno and mBlock.
mBlock is a colorful, block-based programming software that makes coding simple and enjoyable. No complicated code is needed! By connecting blocks like puzzle pieces, children can control the LED and see the result immediately.
This project is perfect for beginners and young learners who want to discover electronics and programming in a playful way. Let’s turn on the light and start learning!
Supplies
- Arduino UNO development board
- USB 2.0 cable type A/B
- Red LED
- One 330 Ohm resistors
- Jumper wires
- MB120 Breadboard
Circuit Diagram
The circuit diagram is made using : https://www.wokwi.com/
You also have the option to simulate your program directly here. This allows you to test and understand how it works before running it on your actual Arduino Uno.
Log in to MBlock
- Open the website www.mblock.cc
- Log in to your account, or register if you don't already have an account.
Add the Arduino Uno Board to the Project
- Remove the default board already present in the project.
- Add the Arduino Uno board to the devices by typing Arduino in the search bar, then click OK.
- Name your project, for example, led_blink, and then save the project.
Programming the LED Blink on Arduino Uno
- Go to the Events category and place the "when Arduino Uno starts" block.
- Add the "forever" block from the Control category.
- In the Pin category, set the output of digital pin 7 to high to turn on the LED.
- Add a "wait 1 second" block from the Control category.
- Then set the pin to low to turn off the LED, add another "wait 1 second" block from the Control category, and save the project.
Connect the Arduino Uno and Upload the Program
- Click on Serial, then select the port corresponding to your Arduino board to connect it.
- Upload the program to the Arduino.
- You should see your LED turn on and off every second.
Video