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:
- The IMU sensor will send its status via SERIAL comm port
- The WIFI module will create a NETWORK called JJROBOTS_TEST
- All the SERVOS connected will move
- If you have a stepper motor driver connected to the board and a NEMA motor, it will spin a little during the test procedure
- The AUX port will deliver a 1 second pulse of 12V between the ground and output pin
- The SERIAL PORT will start to send info continuosly
- 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.
HOW TO UPLOAD the ARDUINO CODE to the DEVIA CONTROL BOARD
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:
- Open your Arduino IDE
- Open the main code in /M0_Board_test_devia_2/M0_Board_test_devia_2.ino
- Connect your DEVIA board with the USB cable to the PC
- Note: If this is the first time you connect an Arduino board to your PC maybe you might need to install the driver.
- Select the board Arduino/Genuino ZERO (native USB port). In the TOOLS menu->board
- Select the serial port that appears on the tools->Serial port
- Send the code to the board (UPLOAD button: Arrow pointing to the RIGHT)


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:
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: