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

led_mblock - Copy.png

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

  1. Arduino UNO development board
  2. USB 2.0 cable type A/B
  3. Red LED
  4. One 330 Ohm resistors
  5. Jumper wires
  6. MB120 Breadboard

Circuit Diagram

Schéma_LED_arduino.png

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.

https://wokwi.com/projects/452156198199729153

Log in to MBlock

step1.png
step2.png
step3.png
  1. Open the website www.mblock.cc
  2. Log in to your account, or register if you don't already have an account.

Add the Arduino Uno Board to the Project

step4.png
step5.png
step6.png
  1. Remove the default board already present in the project.
  2. Add the Arduino Uno board to the devices by typing Arduino in the search bar, then click OK.
  3. Name your project, for example, led_blink, and then save the project.

Programming the LED Blink on Arduino Uno

step7.png
step8.png
step9.png
step10.png
step11.png
  1. Go to the Events category and place the "when Arduino Uno starts" block.
  2. Add the "forever" block from the Control category.
  3. In the Pin category, set the output of digital pin 7 to high to turn on the LED.
  4. Add a "wait 1 second" block from the Control category.
  5. 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

step12.png
step13.png
step14.png
step15.png
step16.png
  1. Click on Serial, then select the port corresponding to your Arduino board to connect it.
  2. Upload the program to the Arduino.
  3. You should see your LED turn on and off every second.

Video

How to Make an LED Blink With MBlock and Arduino UNO – A Fun Project for Kids