What testing electronics Flipper Zero looks like
Flipper Zero – a project of a pocket multitool for hackers in the Tamagotchi form factor, which we are developing. Previous Posts [1],[2],[3],[4],[5],[6],[7],[8],[9],[10],[11],[12],[13],[14],[15],[16]
The electronics and housings for the Flipper Zero are manufactured in different factories in China. Today we move to an electronics factory and see what automatic electronic testing of individual Flipper boards looks like.
There is always a defect in large volumes of electronics production. Some percentage of motherboards may not work stupidly, others may have a small, barely noticeable defect, such as impaired reception and transmission characteristics. It is important that defective Flippers do not leave for users. To do this, in production, all components undergo two stages of testing: electrical testing of each board separately and then testing the entire device as an assembly.
In this article, we will analyze the first stage – automatic electronic testing of individual Flipper Zero boards.
How Flipper Zero boards are made
Layout of PCBs inside Flipper Zero
Flipper consists of 4 boards
- NFC_RFID – this board contains 125 kHz RFID and 13.56 MHz NFC components
- Main PCB – the main board, which houses the STM32 microcontroller, display, Sub-1 GHz module and buttons
- iButton Infrared PCB – has pogo pins for iButton contacts, piezo speaker and IR receiver and transmitter module
- Antenna board – combined dual-band antenna for 125 kHz and 13.56 MHz, which is pressed against the NFC_RFID board
Each board is manufactured separately and tested separately. First, a bare PCB is produced. These are layers of textolite and copper foil, on which signal tracks and contact pads are etched. The PCB layers are glued together, and the contact tracks are connected between the layers using vias. The most complex flipper board is Main, it houses the STM32 microcontroller, display and buttons – it consists of 6 layers!
Bare Printed Circuit Boards Main PCB
Main PCB close-up
Bare NFC_RFID PCBs with no components mounted
Bare PCB iButton
During the production of a printed circuit board, before assembling components, it undergoes visual analysis and electrical testing. Visual analysis takes place under a microscope, all contact pads are examined, a solder mask (paint that separates the soldering points from the rest of the board), silk screen printing, etc.
This step reveals manufacturing defects, for example, in our case, incorrect opening of the solder mask on the Main board. The place for the BGA component was completely without a mask, and this greatly increases the chance of getting a jumper, that is, contacts stuck together.
Defective printed circuit board, wrong opening of the mask on the BGA pad. There is no paint between the pads, which increases the risk of sticking contacts when soldering
When the quality of the printed circuit boards meets our requirements, they move on to the next step – assembling the components. The boards are loaded into SMT (Surface Mount Technology), a machine where automatic component placement takes place. This process is also called pick-and-place. The machine grabs the component with a vacuum manipulator and places it on the board.
Setting up the SMT machine, the IR diode on the iButton board is visible on the screen
Boards with installed components are baked in an oven with the appropriate thermal profile. The solder paste is melted and the components are soldered to the board. At this stage, surprises and problems are also possible. If electronic components have not been properly stored and have accumulated moisture inside the case, they may crack at elevated temperatures. Therefore, we order components only from official suppliers who provide a guarantee. This is the only way to get the predicted quality of the final device.
NFC_RFID cards after final assembly of components
Separate NFC_RFID board cut from PCB
After installation, the boards are cut out of the PCB and packed in plastic antistatic trays. At this stage, we do not yet know if these boards work or not. There are probably some defective copies in each batch. Then the batch goes to electrical testing.
Ready-made NFC boards in anticipation of the first stage of testing
Ready-made NFC boards in anticipation of the first stage of testing
Ready-made iButton boards
What electrical testing looks like
Schematic diagram of the test bench: the needles are connected to the test board, the board is connected to a computer, which uploads the test results to the database
A test bench is developed for each Flipper board, in slang it is called “test jig” or “jig”.
Test jig composition:
- Rigging for a specific board with spring contacts (Bed of nails). Consists of a frame in the shape of a board, a board clamping mechanism (red handle on top).
- Control boardto which all spring contacts are connected. We developed this board, as well as the firmware for it, from scratch on the basis of the STM32 microcontroller. For simplicity, a ready-made black pill module on STM32F4 is inserted into the board.
- A computer, which runs the software for testing. The set of tests for each board is different, like the software.
- Databasewhere all test results are sent.
Each Flipper board has its own test station, which contains: a specially designed board for testing, separate firmware for the testing board and software for the computer. This is a huge amount of work, comparable to developing full-fledged devices.
Test stations for all 4 Flipper Zero boards: Main board, NFC + RFID board, iButton + IR board, Antenna board and test station for the device assembly.
Insides of the test station NFC_RFID
NFC Test Station Board
Testing NFC boards at the stand
Specially for tests, each Flipper board has test pads where the spring contacts rest. Through them, power is supplied to the device and communication with the electronics on the board takes place.
The testing process looks like this:
1. The board is inserted into the test jig by hand and pressed from above
2. The spring-loaded needles rest against the test pads on the board
3. Automatic tests are run
4. At the exit, the test says PASS or FAIL
5. Everything that has not passed the test goes to the analysis
Snap-on for NFC board with spring contacts. The board is clamped in a snap and tests are run.