Shield to test functions of BOE, Activity Board, etc.
John Kauffman
Posts: 653
At end of every semester or camp I want to test my sets of various Parallax boards. Anyone have an idea for hardware and code so I can slap a shield on a board, run a progam and get a report by DEBUG or serial.out? At minimum would be pins (even if just light-up, not report to serial). Good to add function of ADC, DAC, supply voltage, memory, anything else that might be broken by students.
I am thinking there must be something like this already used by Parallax to test at end of production.
What I want wouldn't have to be a production product, I can solder up the hardware if I have a schematic / wiring diagram using this:
https://www.parallax.com/product/32999
Here is a start point for code.
http://forums.parallax.com/discussion/107510/basic-stamp-tester
I am thinking there must be something like this already used by Parallax to test at end of production.
What I want wouldn't have to be a production product, I can solder up the hardware if I have a schematic / wiring diagram using this:
https://www.parallax.com/product/32999
Here is a start point for code.
http://forums.parallax.com/discussion/107510/basic-stamp-tester
Comments
Might be wise to start with a matrix of the boards you want to test and the tests you want to run on them.
Priority #1: The place students are most likely to ruin are the pins.
Are adc pins measuring correctly?
Are dac pins OK?
Second most likely is a short that burns power supply
I think memory is easy to check so can add. But takes long time so maybe make optional.
Is there a way to test pins to devices like WX, SD, audio?
#1 Power:
The first thing I would do is start with a well regulated current limited power supply between 6V to 7.5V and use an INA219 to measure and log the voltage and current going to the board under test. Would be nice (but not absolutely necessary) to measure the voltage out from the regulators.
#2 Pins:
To check the I/O connect a series resistor (~1K should do) to every pin and connect the other side of all the resistors together. Make all of the pins inputs initially, then make one pin an output, toggle the output high and low, input data from the rest of the pins and verify they read the state of the output pin. Set the output pin back to input and set the next pin to output and repeat until all pins have been tested as outputs.
#3 ADC
Use the 3.3V from the power supply to verify that the ADC is reading correctly.
#4 DAC
Connect the dac outputs to the adc inputs and take readings at 5 voltages.
The Propeller BoE, Propeller Activity Board, and Propeller Activity Board WX have a lot of pin usage in common so making a single shield to test all three should be possible, although some adapters will be needed. Pin testing would be very similar for all three.
The Propeller QuickStart, Project Board USB, Protoboard, and FliP provide easy access to all the I/O pins, and the Mini provides access to 18 general I/O pins and the control pins needed to test it. A single shield could be designed for testing them as well.
I made up a test fixture 4 years ago for a breakout board for the Cubie board that had VGA, power supply, and an audio amp. I used the Propeller to generate video/audio and fed it through the interface pins of the breakout board to make sure the board was functioning properly. Test took 12 seconds compared to the 2+ minutes of stacking on an actual Cubie board and booting it. Was made using standard spring pin probes and laser cut MDF box for the enclosure. Prop Quickstart was powered by the breakout as a way to confirm voltages.
I did make my own version of one of those BASIC stamp testers from Chris's thread and still have it: http://forums.parallax.com/discussion/comment/833478/#Comment_833478
The Propeller is a great starting point for this kind of thing. I used a pair of propeller boards to build a tester for wiring harnesses up to 58 pins a couple of years back. Start to finish was less than two weeks.
Start with simple set of LEDs and visual inspection with just testing HIGH on pins.
Then add above trick for INPUT on pins
Then add transistor-controlled jumper for connect ADC and DAC.
Thanks.
https://rugged-circuits.com/ruggeduino
It might be a job for the circuit overlay board with the mosfets mounted below.
https://parallax.com/product/32999
It terms of buying for my school lab, we would probably accept a pin or two loss per year per set of 12 boards rather than a "MOSFET intercept" board which I assume would cost >$10. The trick is to learn which pins blew.
Nothing is student proof so I have to agree with that last paragraph. Testing the board to find which pins are bad is not a problem though, and a simple plug in board could do that. With a bit of added code it could also do a go/nogo test for the other circuitry on the board.
I dug out a couple of 1K sips last night and used them to test my PAB-WX board. Works for testing input and output functions and producing voltage steps to test the adc's.
http://forums.parallax.com/discussion/comment/930555/#Comment_930555
Wow, thanks for posting this. Have to add that as an initial test.