LEGO SPIKE Firmware Testing Rig
by goldman-william in Circuits > Gadgets
19 Views, 1 Favorites, 0 Comments
LEGO SPIKE Firmware Testing Rig
With the implementation of the new LEGO SPIKE firmware, it is necessary to run tests on motors and sensors to ensure that the new firmware on your hub has been properly installed. This instructable walks you through the process of building a test rig and running code on a hub to check its functionality.
Supplies
In addition to the parts listed above, you will also need:
- 1 LEGO SPIKE Prime Hub (with battery)
- 2 Medium SPIKE Prime motors (54696)
- 1 Distance Sensor (37316)
- 1 Color Sensor (37308)
- 1 Light matrix (45608)
- 1 Force Sensor (37312)
- 2 SPIKE Prime Yellow Panel Plate (39369)
Build the Rig
After assembling the necessary parts, follow these instructions to build the rig!
- The SPIKE is designed to be removeable from the rig so you can easily test multiple SPIKE PRIMEs as necessary
- The color slide (The three bricks in front of the color sensor can contain any 3 color bricks as you wish)
Downloads
Test the Hub!
Navigate to this pyscript page to run tests. Follow prompts on the screen.
Important Notes:
- PARALLEL MOTOR LOCK: When the code asks you to "release the lock" or "engage the lock" it is describing the mechanism that keeps the two linear gear racks together (Image 1).
- When running the parallel motor tests, the lock must be engaged as the two motors are meant to move the entire rig (Image 2).
- However, when the independent motor test runs, the lock must be released to enable the tracks to be separated (Image 3). This way each motor can run independently for the test.
- One of the tests is named "Gyroscope (TBD)" -- Gyroscope To Be Determined. Currently, the software only tests the tap feature of the hub's IMU. The other LEGO SPIKE IMU data is not collected and analyzed. In a future version of the testing software, a test of the IMU's gyroscope feature may be implemented. For now, this test may be ignored.
- Color slides: The arrangement of three 2x4 technic bricks in front of the color sensor. These can consist of any of the colored bricks provided in the LEGO SPIKE kit. In my build, the slide is green, blue, red.
That's it! Happy tinkering.