How to Use MBlock Software to Program the Intelligent Corridor Light Circuit Based on Arduino

mBlock is a graphical programming enviroment that is specially designed for beginners to easy to program Arduino projects and create interactive applications. mBlock supports abundant hardware:

  • Arduino UNO
  • Arduino Leonardo boards
  • Arduino Nano
  • Arduino mega128
  • Arduino Mega 2560
  • PicoBoard
  • Makeblock mCore board
  • Makeblock Orion board
  • .........

It is perfect for beginners to switch from graphical programming to text-based programming and support Arduino IDE programming environment.

In this instructables, I will show how to build a Corridor light circuit with Arduino UNO board and use mBlock software to program it.

Step 1: Abstract

1. Use the Arduino instructions of mBlock to program

2. Use Dupont lines to connect each component

3. Connect to the USB cable, install firmware

4. Program online

5. Program offline

Step 2: Part Lists

  • 1x Breadboard
  • 1x USB Cable
  • 1x LED Module
  • 1x PIR Sensor
  • 5x Dupont lines
  • 1x Arduino UNO board

Step 3: Start to Write Programs

During the prigramming process, mBlock is really interesting software, just drag and drop the different scripts and put them to the right position, then it works!

Step 4: Build the Circuit and Download the Programs

After finish building the circuit, use USB cable to connect the board and computer, then select the serial port and achieve online control this circuit. If you want to control the circuit offline, just download the program into board.

Step 5: Video Tutorial

This video will display the whole process of how to build the circuit, how to write program and how to download the programs via mBlock.

For more information about this software, please visit here

For more interesting play of mBlock please visit facebook, twitter and google+

Please download mBlock here: mBlock download



    • Sweet Treats Challenge

      Sweet Treats Challenge
    • Warm and Fuzzy Contest

      Warm and Fuzzy Contest
    • Organization Contest

      Organization Contest