Electronics Fabbing
BOM and costs
Since the electronics section of my final project is comprised of several boards and components (the digits, the keypad, the bluetooth module, the rf module and the main controller), I will summarize here the full Bill of Material for all the different parts, then I will explain and document every and each electronic board in detail.
Component | Info | Quantity | Supplier | Product code | Price | Total |
---|---|---|---|---|---|---|
RGB Led | WS2812B | 140 | Electrodragon | WS2812B | 0.135 € | 18.90 € |
RF Transceiver | CC2500 | 1 | canton-electronics | CC2500 | 3.50 € | 3.50 € |
BT Transceiver | BTM-222 | 1 | RF-Store | BTM-222 | 8.90 € | 8.90 € |
Conn. JST 6 way | S6B-ZR-SM4A-TF | 6 | Farnell | 1830924 | 0.493 € | 2.958 € |
Housing JST 6 way | ZHR-6 | 6 | Farnell | 3357570 | 0.132 € | 0.792 € |
Conn. JST 7 way | S7B-ZR-SM4A-TF | 2 | Farnell | 2399339 | 0.471 € | 0.942 € |
Housing JST 7 way | ZHR-7 | 2 | RS-Components | 762-0844 | 0.101 € | 0.202 € |
Contacts JST | SZH-003T-P0.5 | 50 | Farnell | 1830899 | 0.0186 € | 0.93 € |
Linear Regulator | LM1117IMP-3.3 | 1 | Farnell | 1469051 | 0.774 € | 0.774 € |
AVR Microcontroller | ATMega644PA-AU | 1 | Farnell | 1972106 | 6.96 € | 6.96 € |
Crystal | 7A-20.000MAHE-T 20 MHz | 1 | RS-Components | 753-7082 | 0.752 € | 0.752 € |
Mosfet PNP | BSS138 SOT-23 | 5 | Farnell | 9845330 | 0.136 € | 0.68 € |
LED Red | LSR976 0805 | 2 | Farnell | 1226392 | 0.052 € | 0.104 € |
LED Green | OVS-0804 | 1 | Farnell | 1716766 | 0.30 € | 0.30 € |
LED Blue | OVS-0804 | 1 | Farnell | 1716765 | 0.883 € | 0.883 € |
Diode | 1N4148 SOD-323 | 2 | Farnell | 1843678 | 0.16 € | 0.32 € |
Tactile switch | FSM2JSMA | 7 | Farnell | 3801287 | 0.206 € | 1.236 € |
Capacitor | 12pF 0603 | 2 | Farnell | 2496884 | 0.0074 € | 0.0148 € |
Capacitor | 10uF 1206 | 4 | Farnell | 1457413 | 0.194 € | 0.776 € |
Capacitor | 100nF 1206 | 146 | Farnell | 2497075 | 0.0237 € | 3.46 € |
Resistor | 1k 0603 | 12 | Farnell | 9331697 | 0.0099 € | 0.1188 € |
Resistor | 4k7 0603 | 10 | Farnell | 9331247 | 0.0012 € | 0.012 € |
Resistor | 330R 0603 | 4 | Farnell | 9331018 | 0.0012 € | 0.0048 € |
Resistor | 10k 0603 | 1 | Farnell | 9330399 | 0.0012 € | 0.0012 € |
TOTAL | 54.13 € |
Work files links
Circuits.zip
7 Segments Digits
Since the main purpose of a scoreboard is obviously to show the actual score during a match, I had to design and build some kind of digit display. Volleyball matches don't exceed scores of 35 points, so the scoreboard need just 4 digits, 2 for team A and 2 for team B.
The simplest way of creating numeric displays, according to me, is 7 segments digits. But because my display will use WS2812B, that are daisy-chained, I need to rearrange the segments order, so to create a single digit as a single non intersecting line.
Once that problem is solved, it's just a matter of drawing the schematic and preparing the pcb layout to reflect that order:
3D Render

Work files links
Digit.zip
Bluetooth Module
The scoreboard will be remotely controllable with a specific Android APP. To establish the communication, it will use the Bluetooth SPP (Serial Port Profile). So I need a bluetooth module connected to the UART serial port of the microcontroller.
After a bit research I choose the Rayson BTM-222 module (check the BOM for more info), because it's cheap but powerful and has a wide coverage range. I created the custom library part for Eagle and the 3D model for EagleUp plugin.
The module schematic is really simple, because essentially it's just a breakout board for the needed signals, and a tactile switch to factory reset the module.
The signal BT_CONN will serve to inform the microcontroller when a Bluetooth connection is established. The 4-pin connector on the back is used to reprogram the original BTM-222 firmware, in case of need, so I didn't fit it on the final board.
3D Render

Work files links
Bluetooth.zip
RF Module
The scoreboard will also be remotely controllable with a small 2.4GHz remote. To establish the communication, it will use the Texas Instruments CC2500 radio module (check the BOM for more info). That radio module is really similar to the one I used for the Week 15 - Networking and Communication assignment.
I created the custom library part for Eagle and the 3D model for EagleUp plugin.
The module schematic is really simple, because essentially it's just a breakout board for the needed signals.
Keypad
The scoreboard will have a small keypad on the edge of the frame, to control its functionalities in case no remote connection is possible. To explore further the usage of less gpio as possible, I wanted to implement the keypad as a keymatrix.
THIS page explains very well the inner workings of the keymatrix technique. Moreover THIS document from Atmel, explains in detail the combination of keymatrices with interrupt driven GPIO.
Controller board
The brains of the scoreboard is a custom circuit board, designed to perform all the operations and functions.
It is composed as a modular board, so that every single module can be repaired, customized, improved etc. In the actual version, there are 5 modules:
- Power line distribution
used to bring 5V across the frame in a more tidy way, and avoid wires running all along - Power regulation
used to regulate the input to 3.3V since the microcontroller, the bluetooth module and the rf modules all operates at that voltage - Microcontroller and JTAG
used as the main controlling unit of the board, with onboard crystal, reset switch and JTAG interface for programming and debugging - Logic level shifting & keymatrix passives
used to adapt the microcontroller output logic level toward the WS2812B leds at 5V
used to avoid ghosting and masking problems on the keymatrix signals - Logic signals distribution
used to route logic signals (for RF module, Bluetooth module, keypad and digits) across the frame in a more tidy way
3D Render

Work files links
Controller.zip
Wiring and Assembly
The last step concerning the electronics of the scoreboard is to wire everything together and place the different boards inside the frame.
Having the power and the digital signal distribution modules, is quite simple to wire the several digit displays, and the other components without having a wire nightmare.
Finally everything can be secured in place inside the frame. I had little problems of clearance due to the JST connectors size (I forgot that one of them has 7 pins and not 6 as the others!) but I overcome those using a Dremel and some sandpaper.