CPU Board Iss 4 with Raspberry Pi Pico2 (RP2350), USB Hub, EEPROM, Interface glue logic and connectors
CW Decode sub-board Front panel TFT Bezel
CPU Features
Control & Display Assembly: The main CPU board integrates a 20-button keypad, a front panel PCB, and a main dial/rotary encoder. It also mounts a 3.2" TFT color display directly onto the rear of the CPU PCB. The upstream host connection utilizes a rugged, panel-mounted USB-B connector on the rear panel for reliable linking to a desktop or laptop
Microcontroller: Powered by a Raspberry Pi Pico 2, a high-performance board featuring the RP2350 dual-core Arm Cortex-M0+ microprocessor running at 133 MHz (designed by Raspberry Pi in the United Kingdom).
CAT & Digital Modes: The firmware supports Computer-Aided Transceiver (CAT) control for software such as WSJT-X, FLRIG and others. An integrated USB audio interface provides digitized RX and TX audio for remote operation and digital modes (tested and verified for FT8 and WSPR via WSJT-X). Additional USB devices, such as an SDR dongle, can be connected for a real-time waterfall display on the host computer.
Main Tuning Controls: Includes a premium main tuning/function dial (a 400 PPR or 600 PPR (Pulses Per Revolution) rotary encoder). This main dial delivers an exceptionally smooth tuning and spinning feel.
Expansion: Equipped with a dedicated header/connector for a CW Decode sub-board.
Construction and mounting of the Keypad
On this Keypad PCB there are 20 push buttons and one 6 pin IDC plug that have to be hand soldered.
All resistors, capacitors and LEDs are SMD and supplied mounted on the Kaypad PCB
Mount and solder the 20 push buttons. They fit on the front side of the PCB (See centre picture) along with the other SMD mounted components. Be especially careful to ensure these buttons are mounted firmly and completely flat against the surface of the PCB. There are 4 connections on each button. Initially solder 2 opposite connections on each button. Next, check again that the buttons are completely flat and straight on the PCB. Next solder the other two of the four connections of each button. If all buttons are mounted and soldered correctly in this way they will operate correctly and not interfere with the holes in the Front Panel. If there are any tiny interferences when fitting the Front Panel, they can be carefully file the side of any particular holes in the Front Panel with a needle file. Press each of the 20 buttons, they should click and click again on release and move freely without sticking.
There are two methods of connecting the Keypad. a) Using a 6 way ribbon cable. Fit and solder a 6 pin IDC to the REVERSE of the Keypad PCB (See picture above right) OR b) By soldering the 6 way flat cable directly onto the Keypad PCB. (Note what is supplied with the kit supplied) When connecting to the CPU Board using the 6 way flat cable, be careful to observe the orientation of the connector. Connect the BLACK wire to Pin 1 on both ends, I.E. on both the Keypad and the CPU Board connector J7.
Thee keypad can now be mounted to the Front Panel:
Fit by pressing the three LED Lenses for RX, TX and OnAir into the 3 holes on the front of the Front Panel. In operation, some light from the LEDs can show through the other lenses. To stop this use something like a dark nail varnish on the back of the lenses to darken them.
Various M3 shrews are available with different head styles. Both black painted domes and stainless flat-head look good, so a choice is required. Pozidriv and Hex Drive are also options.
The keypad PCB mounts to the Front Panel using 4 x M3 x 12mm screws with 4 x 6mm M3 hex brass threaded spacers and 4 x M3 nuts.
First push the screws through the 4 x holes in the Front Panel. Next the 6mm spacers, then the Keypad PCB and lastly the 4 x M3 nuts. Before tightening up the nuts try each button and ensure none interfere with the front panel PCB material. If any are tight, carefully remove the keypad and remove any PCB material in the offending opening with a needle file.
Construction and mounting of the CPU Board and TFT Display
Photos of kit and completed CPU to go here. ***
Construction Notes
If you are not using the HamPiRadio front panel / case you can mount the TFT Display remotely from the CPU PCB using ribbon cable id desired.
The CPU PCB comes with all SMD parts already fitted.
Using the table above 'CPU Board Hand Fitted Parts', solder all the leaded parts into place being very careful to observe the correct orientation. Read the comments in the table and observe the instructions carefully.
The Raspberry Pi Pico is mounted on 2 x 20 way socket strip sockets which are 8mm high. To get these socket strips soldered soldered straight first push them onto the pins of the Pi Pico place through the PCB, soldering on Side B (Reverse).
The TFT socket strip, J12, is the same type as used for the Pi Pico but 14 way. If the socket supplied is less than 14 way, fit to the end marked pin '1' (only the first 8 ways of this socket are used). Mount J12 on Side B (REAR) of the PCB.
WARNING. Be very careful with handling and mounting the TFT Display. It is fragile and made of glass and can be damaged. When fitting it is only necessary to hand tighten the threaded spacers. The 4 x M3 nuts on the CPU PCB that secure the TFT Display can be done up a little tighter than hand tight, but do not over tighten. An overtightened TFT Display can easily be damaged or warped when mounted leading to the display being damaged or looking poor.
When all the hand fitted parts are fitted to the top of the CPU PCB, the Front Panel, Display Bezel, TFT Display and CPU Board can be mounted together to form the completed assembly.
Be careful when assembling the Front Panel. If it gets scratched tears could follow! Offer up the Display Bezel with the thicker edge to the left of the HamPi when viewed from the front. Push the 4 x M3 screws through the 4 holes in the Bezel and then through the Front Panel.
Screw on the 4 x 2mm threaded brass spacers.
Push the 4 x fibre washers all the way onto the screws.
Push the TFT onto the screws, then the 4 x 10mm threaded brass hex spacers, UNTIL HAND TIGHT.
Offer up to the TFT to the CPU PCB Side B (REAR) by pushing the 4 screws through the CPU PCB while locating TFT connector to push into J12.
Finally fit the 4 x M3 nuts on the M3 screws to the CPU board. These can be done up a little tighter, but do not over tighten.
The CPU PCB fits partly over the Keypad PCB. Connect the Keypad to J7 being careful to connect pin 1 of J7 to pin 1 on the Keypad PCB.
Rotary Encoder Cable - 6 way
CPU - Radio Board VFO Cable - 5 way
Rotary Controller and VFO cables.
Construction of the cables with JST and ribbon cables can be fiddle, and so they can be ordered already constructed if preferred. If you have purchased your own rotary encoder then the following construction will be needed.
The 400 or 600 ppr Rotary Encoder. When ordering ensure it has a 4 core screened cable 1mtr long. (Some suppliers supply them without screened cable to save $). If your encoder does not have screened cable it will have to be disassemble and a 4 core screened cable fitted. This is not that difficult. Without screening there can be clicking heard on the audio out when tuning.
Cut the cable at least 200mm away from the rotary encoder body. The off-cut of this screened cable will be used for the VFO cable that goes to the Radio board, that needs to be at lease 400mm long.
There will now be 3 ends of screened cable, one on the rotary controller and 2 ends on the VFO control cable. Strip back the outer covering of the 3 ends so that approximately 25 mm of screen is exposed. Slide on three 20 or 25mm lengths of heat-shrink sleeve that is a snug / close fit over the cable ends.
Un-braid the exposed screen to free the 4 inner wires. Note: The Red wire is not used on the VFO Control cable.
Strip back the 10 inner wire ends so that approx. 2mm of inner tinned copper wire is exposed.
Tightly twist these 10 ends and tin with solder.
Twist the 3 screen ends firmly and tin the ends with solder. Fit a length of heat-shrink sleeve that is a snug / close fit over this screen leaving about 4mm exposed.
Using a JST wire crimping tool fit the individual 13 JST sockets to each wire (10 wires and 3 screens). If you don't have a crimping tool It is possible to crimp them using small snipe-nosed pliers and then carefully solder them. (you'll need to be good as this can be tricky).
Fit the wires / JST plugs to the 5 and 6 way JST shells as per the diagram. Do this thoughtfully of how they plug in the PCBs getting the cable colours into the correct JST shell holes. There are silk screen markings indicating the colours on the PCB by each connector. (J14 & J19 on the CPU PCB and J6 on the Radio board).
Colours for the Rotary Encoder JST Plug.
1 Red
2 empty (X)
3 Green
4 White
5 Black
6 Screen (scr)
Colours for the VFO Cable JST Plug pin colours. Note: The Red wire is not used.
1 Screen(scr)
2 empty(X)
3 Black
4 Green
5 White
The outer heat shrink sleeving can not be pushed over the open wires and shrunk.
The Rotary Encoder cable now fits to J14 on the CPU Board. When fitted, as a check look at the wire colours on the PCB silkscreen compared to the wire colours. Do not power up the CPU board until these are correct.
The same check can be done with J19 and the VCO Control cable (both ends).
Programming and Powering up
Prior to final construction the CPU board can be tested stand-alone 'on the bench' to ensure all is well so far:
Before powering up the board Program the HamPi firmware into the Pi Pico2. This can be done with the PI Pico2 plugged into the CPU Board or not.
Programming procedure is found on the 'Firmware Programming' page under the 'CPU Board' (this page) on this website.
Once the Pi Pico2 is programmed, plug it into the CPU PCB observing the correct orientation. The USB socket on the Pi Pico2 points toward the centre of the CPU board.
Connect the Tune/Function Rotary Encoder and the Keypad board to CPU board.
In normal HamPi operation CPU Board powered up through the 20 way Ribbon cable from the PA Board. For bench testing however 12V - 13.8V is supplied on 2 pin JST connector J8. Make up a 2 way JST cable observing polarity very carefully. (It is a good idea to mark both JST shell on the PCB and plug with a black permanent marker '-' sign. To indicate the correct polarity - and + are marked in silk screen on the PCB below J8
Power up the CPU board and 3 x LEDs should light up indicating 5V, 3.3V and USB 3.3V. The TFT should display information and the RX LED Front Panel should be on. Push-buttons should work and main dial Tune/Func should change the frequency.
Not all functionality will work yet as there is no Radio Board connected.
Final construction of the CPU Board and Front Panel assembly *
The Keypad and CPU can now be mounted to the Front Panel:
First mount three LED Lenses for RX, TX and OnAir in the 3 holes. These holes should be large enough but due to manufacturing tolerances the holes might need opening up a little with a round needle file. When fitted it is a good idea to use something like nail varnish to paint over the plastic on the back of the lenses so that the light from each LED dont show through the wrong lenses.
For the Front Panel you can use whatever M3 screws you like. Both black painted flat-head Pozidriv and Hex Drive screws look good.
The keypad then mounts to the Front Panel using 4 x M3 x 12mm screws with 4 x 12mm hex threaded spacers and 4 x M3 nuts.
The front Bezel, CPU board and TFT Display mount to the Front Panel using 4 x M3 x 25mm screws with 10mm hex spacers in-between with M3 nuts on the CPU PCB. There are also 3 x 3mm spacers in-between the TFT and the front panel.
Next the Tune/Function rotary control. Use 4mm M3 screws. Do not use longer ones or damage can be caused inside the device. Note there are 6 threaded holes in the Rotary Control and three holes in the Front Panel. By turning the Rotary Control body then three of the holes will line up with the Front Panel holes, but only three of the six.
Plug everything up. The Pi Pico connects to the USB Hub, any of J1, 3, 5 or 6 USB-Down connections. The USB to USB-B Panel mounting cable connects to J4 only (Or any USB Cable to a PC that works for you. This is the USB-UP connector. There is a red LED D5 near the USB Hub IC U3 that lights when a PC USB is connected. The PC should also give an audible USB Connected sound.
Any errors found or improvement suggestions please email them in, appreciated.
Keypad PCB. 3 x SMD LEDS are mounted on the rear for RX, TX and OnAir
Rear view of CPU PCB showing placement of J12, 14 pin socket for the TFT. Bottom left of picture.
Rear view of CPU PCB showing placement of TFT.
Front panel PCB