Discover how to connect your arduino-based 4in1 board to be able to perform all the proposed activities, and all that you can imagine!

Here you will find a quick guide to start your projects step by step according to the software you want to use, mBlock for block programming, and Arduino IDE for code.

Programming software

1. Software install

  • Download the most recent version of mBlock software from the download page according to your operating system.
  • Execute downloaded file and follow instructions.

2. Connect to computer

  • Connect 4in1 board to computer using usb micro-usb wire. When powered, Green LED “ON” will light.

  • Open mBlock. You can change language clicking the world icon.

  • We need to add 4in1 board as device inside mBlock. Click in “add” in devices frame, and select “Arduino Uno”. Some needed files will be download from internet if is first time we do. In this case software should be restarted.
  • Now we click on “Connect” button. In the new window opened, if no port appears, we mark “Show all connectable devices”. Then select the COM port and click on the “Connect” button
  • There are two modes to connect to board: “upload”, where program is loaded to board memory and runs alone, and “live” where program runs realtime while connected to computer and lets you interact with the mBlock scenario

3. “Live” coding mode

If it is the first time that we connect our board, it is likely that we must update the firmware so that the program loads correctly. To do this, press “settings” and “update firmware

  • We create a simple test program to verify that it is loaded correctly. We will activate the digital output 13 that is connected to the orange LED L13 located in the corner of the board. In the example we use the “live” mode to quickly see the result.
  • When we click on green flag, or any code, it will be executed and we will see any result instantly.

4. “Upload” mode

We create same program like “live” mode. You can see first block must be “when arduino starts”. Make sense, so program only can be started when arduino starts and we will not be able to interact with it directly from our computer.

Program will start inmediatly or when Reset button is pressed.

Congratulations!! Now you can do all your projects with our maker kits!

If something has not worked well, check out our Frequently Asked Questions below.

FAQs

When I press the Connect button it does not detect any device

If you see the following window, for some reason the mBlock software is not detecting the 4in1 board on any serial port

1.- Verify that the USB connection is fine. Is the green LED “ON” on?

If it does not turn on, try plugging the USB cable into another port on your computer.

2.- Reinstall arduino drivers:

  • Download and install driver  for windows or for MAC
  • Follow installation steps. When finished restarting computer is needed.
  • Disconnect and connect the USB cable to the 4in1 board and try again.

You can also follow MBlock questions about Arduino drivers

Fails when I want update firmware or upload program

Verify BLT/USB switch is in USB position

It seems that my program does nothing after uploading it to the 4in1 board

Verify:

  1. Components 3 pin connectors wires are all well connected . If they are upside down they will not be damaged, but they will not respond.
  2. That you have no short circuit in your assembly.

 

If you can’t solve your problem, you can contact us for support.

https://ebotics.com/contact-us/

1. Software Install

  • Download the most recent version of the Arduino IDE software from the download page according to your operating system.
  • Install software executing downloaded file and follow instructions.

2.Connect to computer

  • Connect 4in1 board to computer using usb micro-usb wire. When powered, Green LED “ON” will light.

Open Arduino IDE software. In the tools menu we must ensure we have selected the Board “Arduino/Genuino UNO” and according Serial COM Port (COM3 or higher usually)

3.Load our program

  • We will test our board using some of the built-in examples included in Arduino IDE. Open “File” menu, and select any example. We have selected “blink” inside “01.Basics”
  • We have some code in sreen, so let’s upload it to 4in1 board. Push “Upload” button. It will compile and upload later, once finished without errors, at the bottom it appears “uploaded”

4.Program structure

The basic structure of the Arduino programming language is quite simple and consists of three parts:

  • the part where the variables are declared and the necessary libraries are called (program codes made by other people you will use). Variables can be used to save the value sent by a digital or analog sensor
  • Setup(): It is the part responsible for collecting the configuration and the first function to be executed in the program. It runs only once and is used to configure or initialize pinMode (working mode of the digital pins as input or output), serial communication settings and others
  • Loop(): it is the part that contains the program that will run cyclically (loop means “loop” in English). It is where you will write the programming logic, so this function is the core of all Arduino programs and the one that performs most of the work.

Setup and Loop are necessary functions for program to work properly.

!!Congratulations!! Now you can carry out your projects!

If something has not worked well, check out our Frequently Asked Questions below.