Procedure to produce small batches of devices
November 23, 2016 2 Comments
Over the past years, I’ve designed and built devices in small batches such as 10-25 units at a time. I’ve gained some experience doing such small builds. The following is a procedure for building a small batch SDI-12 + Analog USB devices.
The device has a USB serial converter IC FT232RL, an MCU ATMEGA328P (same as Arduino Uno’s MCU), an ADS1115 16-bit analog-to-digital converter, precision resistors, fuse, screw terminal blocks, jumpers etc.
I build the device first by reflow soldering the surface components, and then hand solder the thru-hole components once I’m done confirming the reflow soldered components are working. You’ll see why these devices can’t be sold at $4 a piece, not just because the components cost more from legitimate vendors such as digikey, Mouser, Newark, etc. Most of the steps can’t be completed by someone without proper training of what the device does.
Here it goes. Any recommendation? Post a response!
Manufacturing and inspection procedure
Date: 2016-11-23
1. Preparation and printing solder paste:
- Remove solder paste from refrigerator and set it in room temperature for one hour.
- Clean board with alcohol and lint-free wipe.
- Visually inspect board for defects and reject boards with visual defects.
- Align board with stencil.
- Print solder paste.
- Check registration especially for ADC, MCU and FTDI chips. Reprint in case registration is too far off.
- Wash and dry stencil.
- Return solder paste to refrigerator.
2. Components placement:
- Place MCU. Check alignment with 3X loupe.
- Place FTDI chip. Check alignment with 3X or 10X loupe.
- Place ADC. Check alignment with 10X loupe.
- Place (5) 100nF caps.
- Place (1) 10uF cap.
- Place (2) 22pF caps.
- Place (1) fuse.
- Place (1) EMI bead.
- Place (3) 10K resistors.
- Place (1) 100K resistor.
- Place (4) 1K precision resistors.
- Place (4) 10K precision resistors.
- Place (1) crystal.
- Place (1) mini-USB connector.
- Check resistor values with loupe. Replace wrong resistors.
3. Reflow soldering:
- Place boards on reflow over racks.
- Attach thermal couple to a plated hole on one board.
- Turn on temperature gauge.
- Connector reflow oven to power.
- Follow reflow specifics, make sure to time each step with stopwatches. STOP if expected temperature is not reached within expected time.
- Disconnect reflow over from power.
- Remove boards and cool them off.
4. Visual inspection:
- Visually check for solder issues on chip resistors, caps and other components.
- Check for solder bridges on ICs with a 10X loupe.
- Check USB connector for bridges.
Found any issues?
- Y: fix with flux paste, solder braid, and iron
- N: proceed
5. Flash firmware:
- Connector programmer to PC.
- Place board on pogo pins.
Programmer detected board?
- Y: flash firmware
MCU detected after flash?
- Y: proceed
- N: check soldering near XTAL pins
- N: inspect MCU for solder issues and other issues (IC in wrong orientation etc.). Add flux paste and reflow pins.
6. USB connection and initial ADC check:
- Connect board to PC.
USB port detected?
- Y: proceed
Device responding to ID command?
- Y: proceed
- N: check MCU and FTDI chip for solder issues
Device returning analog measurements?
- Y: proceed
- N: check ADC and MCU I2C pins for solder issues
- N: inspect connector and FTDI chip for solder issues
7. Check ADC and resistors:
- Solder headers and connectors.
- Connect different resisters to analog pins.
- Set HIGH jumpers on all channels.
- Read single-ended inputs.
Results are as expected?
Command ‘zI!’ should return ‘z13Liudr SDITRD130\r\n’. Command ‘zM!’ should return ‘z0014\r\nz\r\n’. Then command ‘zD0!’ should return ‘z+0.xxxxx+0.xxxxx+0.xxxxx+0.xxxxx ‘ where x is arbitrary but the first x in each number is unlikely going to change if you poll again. Command ‘zM1!’ should return ‘z0012\r\nz\r\n’. Then command ‘zD0!’ should return ‘z+0.000xx+0.000xx ‘ where x is arbitrary and positive signs may be negative signs at times but both values should be very small with at least 3 zeros after decimal.
- Y: proceed
- N: check resistors and ADC for solder issue
- Set LOW jumpers on all channels.
- Read single-ended inputs.
Results are as expected?
- Y: proceed
- N: check resistors and ADC for solder issue
8. Check SDI-12 bus:
- Connect SDI-12 sensor to one SDI-12 terminal.
- Poll SDI-12 sensor.
Does sensor return values?
Command ‘1M!’ should return ‘10012\r\n1\r\n’ Then command ‘1D0!’ should return ‘1+1.xx+2x.x’ where x is arbitrary but unlikely to change if you poll again. The second number is temperature so indoor reading should be above 20.0 C.
- Y: Device passed QC test J
- N: check MCU SDI-12 bus pin for solder issues