Factory Test Procedure

The VMX-pi Factory Test Procedure verifies correct operation of the circuit board and it’s key components. The VMX-pi Factory Test Procedure is performed in the factory to verify initial correct operation, and may be run at any later point in time to re-verify correct operation.

Test Procedure

  1. Press the “Reset” button on the board to begin executing the firmware self-tests
    • Test1 (Reset Button Test): Verify that the “RESET” button successfully causes the software to restart
      • Failure indicates a problem w/the “RESET” button or associated pull-up resistor.
    • Test2 (Orange/Green LED Test): Verify all LEDs are working. The Orange “CAL” Led and the two Green “S1” and “S2” LEDs should turn on briefly after the firmware restarts.
      • Failure indicates a problem w/one or more of the LEDs or their corresponding current-limiting resistors.
    • Test3 (MPU-9250 Sensor Selftest): Sensor Selftest. NOTE: The circuit must be still, and it must have the top of the circuit board pointing directly up (away from the earth), in order to pass successfully. The first time (and only the first time) the board is started after firmware is reloaded, a self-test will run (for approximately 5 seconds). If this succeeds, proceed to Test 8. If this fails, the “CAL” Led will continue to flash quickly, and the selftest will be run again until it passes. If it succeeds, the software will proceed automatically to Test 8 (see below).
      • There are two possible reasons for failure of the self test:
        • Communication Failure over I2C bus to the MPU-9250. This case is identified by both green “S1” and “S2” LEDs being off while the orange “CAL” LED is flashing quickly.
        • Sensor not Still or not Flat – or Sensor Failure. This case is identified by the green “S2” LED being on while the orange “CAL” LED is flashing quickly. Be sure to hold the board still, and be sure the top of the circuit board points directly up (away from the earth). If the self-test still fails after verifying the board is still and flat for several seconds, this indicates a problem w/one or more of the sensors on the MPU-9250.
    • Test4 (MPU-9250 Calibration): Inertial Sensor Calibration. The first time the board is started after firmware is reloaded, and after the selftest has successfully passed, the firmware will perform inertial sensor calibration. Inertial sensor calibration executes for approximately 20 seconds. During this time, the sensor must be held still, and should be held flat, and the orange “CAL” LED will flash slowly. Once the calibration is complete, the orange “CAL” LED will turn off.
      • Failure of this test is due to the board not being held still. Re-run the test and be sure to hold the board still.
    • Test5 (Normal State): Once the MPU-9250 Selftest and MPU-9250 Calibration are complete, the Orange calibration LED should be OFF, and the S1 and S2 status LEDs should be on.

VMX-pi LED States

Condition S1 (Green) S2 (Green) 3.3V (Green) Fault (Red) CAL (Orange) CAN Status
Startup (1 second) On On On Off On Off
Selftest/Accelerometer Calibration Off On On Off Fast Flash On
Gyro Calibration On On On Off Slow Flash On
Normal On On On Off Off On
    • Note: If the S1 LED is off during Gyro Calibration or Normal State, this indicates interrupts are not being received from the MPU-9250.
    • Note: If the S2 LED is off at any time except briefly after Startup, this indicates a problem communicating to the MPU-9250 from the STM32F4 over the internal I2C bus.
    • Note: If the Fault LED is on at any time, this indicates a short between one of the external power and ground pins.