This arduino code will let you know if there is something wrong with your board or any ancillary element connected to it. Download it and upload it to the board.

Things checked by the board during the test process:

  1. The IMU sensor will send its status via SERIAL comm port
  2. The WIFI module will create a NETWORK called JJROBOTS_TEST
  3. All the SERVOS connected will move
  4. If you have a stepper motor driver connected to the board and a NEMA motor, it will spin a little during the test procedure
  5. The AUX port will deliver a 1 second pulse of 12V between the ground and output pin
  6. The SERIAL PORT will start to send info continuosly
  7. Put to ground the AUX output “0-12V” pin. So if you connect a device to the pins +5V and “0-12V”, you will get a pulsating voltage of 0-5 Volts. If connected to the Vin and “0-12V” a pulsating voltage of 0-Vin Volts.


a) Install the Arduino IDE on your PC from here (skip this step if you have the Arduino IDE already installed) This TEST code has been developed on IDE version 1.6.5 and later versions. If you have a problem compiling the code, let us know

b) Download all the arduino files from here . Copy the files inside the M0_Board_test_devia_2 folder in your hard drive

c) Compile and send the code to the DEVIA control board:

  1. Open your Arduino IDE
  2. Open the main code in /M0_Board_test_devia_2/M0_Board_test_devia_2.ino
  3. Connect your DEVIA board with the USB cable to the PC
  4. Note: If this is the first time you connect an Arduino board to your PC maybe you might need to install the driver.
  5. Select the board Arduino/Genuino ZERO (native USB port). In the TOOLS menu->board
  6. Select the serial port that appears on the tools->Serial port
  7. Send the code to the board (UPLOAD button: Arrow pointing to the RIGHT)
Selecting the right board before uploading the code

d) Done!

How does the TEST CODE work?

Once the code has been uploaded, the board will restart itself and the LEDs (red and green) will blink rapidly

If the RED led stays SOLID, that means that any of the modules on the board is not working properly (basically the MPU)

If the GREEN Led stays solid that means all the modules are FINE

You can check which module is wrong just opening the SERIAL MONITOR of the Arduino IDE just after pressing the RESET BUTTON (otherwise, you will miss the info messages coming from the board) . You will see something like this:

The videos shows the sequence of events. The leds will visually tell you is there is something wrong. If you need more information, check the messages coming from the SERIAL MONITOR

In the video, all the modules were OK (no error messages anywhere) and the IMU was sending the angle value correctly (that value will change if you move the board while it is still connected)

If the IMU is wrong, the RED LED will STAY SOLID and the SERIAL MONITOR will display this message: