back
Proffieboard V1/V2/V3 Test Rig
Got Pike?
DIY Teensy based lightsaber


This is a breakout board that makes it easy to test a Proffieboard without having to solder a bunch of wires to it. With the right adapter, this test setup can be used to test and prototype with both V1 and V2 boards. Note that this test and prototype rig has several parts, each with it's own we page.
What you will need:

Assembly

Just hook up the right adapter to the breakout board. Hook up power to one of the two power inputs. (Make sure to check the polarity!)

Test procedure for Linux

Preparations:
  1. Make sure you have jumpers all down the middle of the tester.
  2. In D1 select, put jumpers on PU and PD.
  3. Plug in ST-Link V2, and hook up to the test rig.
  4. In one window, start up OpenOCD
  5. In a second window, run tail -f /var/log/kern.log
  6. Start up arduino and enable test script in lightsaber.ino
  7. Hook up a multimeter to test board and set it to beep on a short. Verify that this works!
Now, for each board:
  1. Insert SD, put board on test rig and plug in USB.
  2. Check that OpenOCD connects and that kernel window says STM32 bootloader
  3. press reset, make sure STM32 bootloader pops up again
  4. It should say LOW BATTERY repeatedly, no beeps
  5. Switch to battery power
  6. Press BOOT
  7. Press Power button
  8. Press AUX button
  9. Press AUX2 button
  10. verify that all LEDs light up in order
  11. verify that music is playing
  12. Switch back to short checking and turn off USB

Test procedure for Windows

Preparations:
  1. Plug in ST-Link V2, and hook up to the test rig.
  2. In D1 select, put jumpers on PU and PD.
  3. Download ST-link utility here: www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-programmers/stsw-link004.html
  4. Start ST-link utility
  5. Open up settings, go to "Bluetooth and other devices".
  6. Download a fresh copy of ProffieOS, unzip and click on ProffieOS.ino, which should open it in Arduino.
  7. Add // on line 25 to comment out the default_proffieboard_config.h
  8. Remove // on line 32 to use the proffieboard_v1_test_bench_config.h config file
  9. Go to line 1837 and change #if 0 to #if 1 to enable the proffieboard test script
  10. Hook up a multimeter to one of the power inputs. And set it to continuity testing. (Beep mode)
  11. Make sure that the power switch position is towards the power input hooked up to the multimetter Bridge the BATT+ and GND pogo pins and verify that the multimeter beeps.
  12. Plug in a li-ion battery or power supply to the other power input. Double check-polarity, or you will fry something.
  13. Plug in a speaker to the speaker pins.
  14. Prepare an SD card by putting a mono, 44100 WAV file in "tracks\cantina.wav"
For each board:
  1. Insert SD, put board on test rig, lower lever
  2. If there is a beep from the multimeter, it means that there is a short on the board, and throwing the power switch will probably melt something....
  3. Plug in USB cable
  4. Check the "bluetooth and other devices" window, the board should show up as STM32 BOOTLOADER if it's never been programmed before. If it has been programmed it should show up as "Proffieboard".
  5. Press "connect" in the ST-link utility, make sure it connects successfully. (Should say "Device family : STM32L4x3" near the bottom.)
  6. Press reset, watch "bluetooth and other devices" and make sure the board disconnects and connects again.
  7. Hit "upload" in arduino. Wait for the program to upload and restart the board.
  8. It should now show up in "bluetooth and other devices" as a Proffieboard
  9. The speaker should start saying "LOW BATTERY", repeatedly, possibly with a lot of distortion.
  10. Move the power switch over.
  11. Press the BOOT button. (on the board itself)
  12. Press Power button (on tester)
  13. Press AUX button (on tester)
  14. Press AUX2 button (on tester)
  15. Verify that the yellow LEDs light up in order
  16. Verify that music is playing and sounds reasonable.
  17. Switch power switch back!!!
  18. Disconnect USB, raise lever, take out SD card

Problems? Questions? Suggestions? Check out The Crucible.


This page has been accessed 1,718 times since May 24th, 2021.
Last modified: May 13th, 2023 - Design by Monica & Fredrik Hübinette