Table of Contents
Categories
Last updated on: April 23, 2024, 10:16 a.m.
This is part 3 in a series that covers FixturFab Development Fixtures. In part 2, we assembled a 3D printed development fixture designed with the Automated Design Service. Part 3 covers adding test instrumentation for flashing the board and running initial tests.
This guide goes over selecting test instrumentation to interact with prototypes boards, connecting this to the fixture, and writing and executing some simple tests.
Resources
To follow along with this tutorial you will need an assembled Development Fixture and SparkFun RedBoard Artemis. You will need a Binho Nova (or a similar Arduino-like device) to interact with the Artemis and some basic electrical development components like a breadboard and jumper wires.
Test Instrumentation Interface
Binho Nova
The Binho Nova is a multi-protocol USB host adapter that we really enjoy. It has support for I2C, SPI, UART, 1-WIRE, SWI protocols all in one compact package; making it a fantastic option for test instrumentation for the development of various types of boards. You can find additional detail on their product overview page.
![binho.png](https://storage.googleapis.com/production-bucket-v1/mediafiles/images/binho.max-1000x500.png?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=gcs-service-account%40fixturproject.iam.gserviceaccount.com%2F20240908%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20240908T021431Z&X-Goog-Expires=86400&X-Goog-SignedHeaders=host&X-Goog-Signature=5d7fc708db65bdc9719d962fb8b260662a59ff484401cc7e0ab386b2f7c11a3325623b647a1e2b54bc70683d5ca81881eaaeb621bcb7951433ec183e8d0c58da3feb843476867724e4f54b75451b5691df0d25d845bff7c2ab52288151e1645e484a193f56511ababfa1a43d17bfc4a07ac089f88cec28e05b720738f59b43d06259a1a8b267467274d549e3cb3b54f40c5296df16549bf9dbb041c5dcb3414f8369056c1b813af66a0d3e5821ee6b07190d1120b2f090c6635567f3e6f0a648558fdb310542fcc1efbd36b7028dcfc56415b4a91374425483b069f97bf7dbb7f0f62622f8fb0fa5352b5499dca779d27bfdb90560b8a239181148b6aef749f1)
Although overkill for this project, we had one lying around and plan to feature it in future posts, so we thought it would be a good time to introduce this device. However, if you do not have a Binho available and still want to follow along, most basic Arduino-like devices can handle the ‘tests’ we will write for the RedBoard Artemis. You will just need to supply your own code.
Artemis Module
The SparkFun RedBoard Artemis is a development board based on the SparkFun Artemis module which contains an Apollo3 from Ambiq as its core IC. This is an ARM Cortex-M4F IC.
![atremis-module.png](https://storage.googleapis.com/production-bucket-v1/mediafiles/images/atremis-module.max-1000x500.png?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=gcs-service-account%40fixturproject.iam.gserviceaccount.com%2F20240908%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20240908T021431Z&X-Goog-Expires=86400&X-Goog-SignedHeaders=host&X-Goog-Signature=616ef861e0c6cd3af33fb1ad5b81284308e6a77acc2719e4cf693801cf29c04d8ff945bbc281bb195101b496fbbc2a0cea607363a807ac902c7b53dc2bf7edf7f17e189450b18a1c3b4fb2de28b703728b15fa8255c860491805e4748b14c6c4a869b9e933ccac2ed62ba1af4da231c0878363c28f567951f8043e4fd48a9c1119838d8474bb3355a7ccf9a4394e88e7ced8193a038797813c69a08315c12d5fecee3ebb3f32f4de267d4f4514f167fcc2fe3dcc6e917c93b06962f32125fe2872ec00828f619d357a967e9c90dca89a1c6dfffcc00cb7323295b1ab8c82ce7703e4a62280496fba1fdbef0fcb30d2dc57c706a431dd99f1451f9c2a4e3f64c2)
We will simply flash this board with some code that configures the serial interface to read analog or digital inputs.
Testing the RedBoard Artemis
Connect Binho to PC and breadboard
Connect the Binho to your PC and attach it to a breadboard using a breakout component. Use jumper wires for the following connections from the Binho to the RedBoard Artemis.
- GND to GND
- IO1 to A0
- IO0 to D2
- IO3 to TX1
- IO4 to RX1
- IO2 is not connected
Connect test fixture to breadboard
Add jumper wires from the test probe receptacle underneath the 3D printed probe plate to the breadboard.
![dev-fixture-instrumentation.JPG](https://storage.googleapis.com/production-bucket-v1/mediafiles/images/dev-fixture-instrumentation.max-1000x500.jpg?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=gcs-service-account%40fixturproject.iam.gserviceaccount.com%2F20240908%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20240908T021431Z&X-Goog-Expires=86400&X-Goog-SignedHeaders=host&X-Goog-Signature=95fd6cafbd141e6b50f1ba8da0d3f17f5dd5c8d94c7ce1b5500e68bc1bb8643865e4ab977376de0e0e16d7e4a5e696cac4770fe7e8087984d5180fd3f8804b083696746b2e61060414b9c2cc6748b2903558e7a12db158bcfaa3208f28ec6ae98302f80869e2e8db6ce22652f060311ab055ca185591a723aea938e6c0b5a58c1001787b12339098402612ac3ee2d7dc6fb01ab226417e445306ef4aa580885d3f83679b3cb4964e822a754031c32af7b146966ec0aea7de0142a1c37bf81e9feb1ebbb01f4815fbca1d6d74bf4924ed8b86e6d692ca78faf9f85bb064fce2aebe52fa05ddefe20487d6dd2d75a8be4418ee00ac1a73638aae8580940a1cef53)
If this were a real prototype board, you could also add jumper wires from the fixture to your programmer. In part one of this series, we designed our fixture to help with this by adding test probes for the JTAG interface to flash the Artemis Module. However, for simplicity’s sake, we will use the USB jack to program the Redboard in this article.
Flash the Artemis
Download the test code. The dut-artemis dir contains the code for the Artemis module and the binho-pytest dir contains the configuration and test case files. Use the dut-artemis.ino file to program your RedBoard.
Setup the test environment
We recommend python virtual environments for testing specific projects. Either way, make sure to install the following python libraries.
pip install pytest
pip install pyserial
pip install binho-host-adapter
Write the Test Cases
For FixturFab’s Turnkey Test Systems, we write our tests in a similar way to python unit tests. These are executed with our soon-to-be open-source test runner. Conveniently, Binho leverages a similar philosophy with pytest. We provided the test cases to verify the dut-artemis.ino code, but you can read more on how our tests were written to leverage pytest here.
Execute the Test Cases
Execute the test cases by navigating to the /binho-pytest directory and issuing the pytest command. Pass in the comport for Artemis board and the deviceID of the Binho Nova as follows:
pytest --dutPort COM49 --fixtureID 0x1c4780b050515950362e3120ff141c2a
If you do not want to specify the port and fixture ID each time you can update the defaults in the /binho-pytest/conftest.py file:
- line 10 for default COM port for Artemis board
- line 13 for default deviceID for Binho Nova
Then the test can be performed simply by issuing the "pytest" command in the terminal.
3D Printed Development Fixture Conclusions
This is the end of our series on 3D Printed Development fixtures. While viable as an inexpensive testing solution for a low volume of boards, they have several significant limitations. 3D printing is slow and accurately fabricating probe plates with small holes close together (1.4mm diameter for P75 test probes, 1.9mm apart) is challenging. If you have a simple board with well-separated test points or a finely tuned 3D printer this could be a solution for you.
Next, we will introduce FixturFab’s laser-cut DEV260 fixture. Fabricating these is fast and accurate to a 50mils pitch! We will also provide kits with all components needed to assemble your own or ship assembled fixtures designed in our Automated Design service. The next Test Fixture Guide series will cover designing, assembling, and test instrumentation for a more relatable PCBA development process.