Skip to content

Old V2 STEM Payload 2

Alan Johnston edited this page Oct 7, 2024 · 1 revision

Step 4a: Building the CubeSatSim SMT PCB Part 2

These are Part 2 of the instructions for building the STEM Payload Board.

These instructions are for the through hole components after the all the SMT components have been installed and reflowed.

STEM Payload Board PCB

These are the instructions for building the STEM Payload board with SMT Components.

Here's the v1.3.2.1 PCB:

cubesatsim-STEM-b1 3 2b_top

cubesatsim-STEM-b1 3 2b_bottom

Schematic

Here's the schematic for the v1.3.2.1 STEM Payload board for reference:

Screenshot 2024-03-29 at 2 28 03 PM

https://github.com/alanbjohnston/CubeSatSim/blob/1879cfcc7c7107f493e8788ce71393240aeb0311/hardware/beta-v1.3.2/cubesatsim-STEM-b1.3.2.1_schematic.pdf

Video

Here is a video of this step.

Installing the Through-Hole Components

First, we will solder the essential through hole components and then test the board. These components are:

  • Red LED (LED5), Green LEDs (LED3) and Blue LEDs (LED4)
  • Switch S1
  • RBF Switch X1
  • Stacking GPIO header J1
  • PCB from Part 1 Assembly

IMG_6018

First, install the LEDs, being careful not to mix up the colors. The LEDs have a polarity which is indicated by the positive lead being longer than the other lead. In the photo above, the positive lead is indicated by a + which is also marked on the PCB. Also, if you look carefully on the lens, you will see the negative lead has a flattened edge. For all the LEDs, the positive lead is furthest from the edge of the PCB, and the flattened edge is on the side of the edge of the PCB.

Insert the three LEDs on the top of the PCB, being careful not to mix up the colors! Also insert the switch S1 and RBF switch X1.

Flip the PCB over and bend the leads slightly so they are held in position

Solder one pin on each component

IMG_6019

Flip the PCB over and make sure the LEDs are fully inserted and straight. If they aren't, apply gentle pressure to the LED lens as you reheat the pin.

IMG_6020

Solder the other pin and trim the leads with the side cutters:

IMG_6021

Here's how it looks:

IMG_6022

Flip the PCB over again to the bottom and insert the stacking GPIO header J1:

IMG_6034 copy

Flip it over the to the top again and it should look like this:

IMG_6023

Solder only one pin on each side of the header:

IMG_6024

Check carefully that it is fully inserted and straight:

IMG_6027

Solder the rest of the pins, being careful to use a minimum of solder and don't bridge any pins:

IMG_6028

You are now ready for some initial testing!

Initial Testing

Video

Here is a video of this part of the step.

Red LED Test

For this test, you will need the PCB and the USB-C charging cable.

Plug in the USB-C charging cable into the USB-C connector. If the cable is plugged into a power plug or a computer, the red LED should illuminate.

IMG_6030

Green and Blue LED Tests

For this test, you will need the PCB, the USB-C charging cable, the Raspberry Pi Zero W with the programmed SD card inserted.

IMG_6034

To do these tests, the Raspberry Pi Zero needs to have the software already installed. If your Pi Zero W hasn't been programmed yet, follow theses instructions first V2 Pi Zero Software.

Plug in the Pi Zero W into the bottom of the PCB

IMG_6035

Connect the USB-C charging cable to the PCB and to a computer or USB plug to power the board. You will see the red LED immediately illuminate, then the green LED after a few seconds along with the green LED on the Pi Zero underneath. After about 30 seconds, the blue LED should flash a few times then go on and off slowly.

IMG_6036

To see the green LED on the Pi Zero, you have to look underneath

IMG_6043

When the blue LED is illuminated, the board is transmitting radio signals. If you have a radio or SDR tuned to 434.9 MHz, you will hear the signal.

Next, test out the pushbutton by pressing and holding the pushbutton until it blinks slowly, then release the pushbutton, as shown in this video: https://countingfromzero.net/amsat/BlinkSequence.MOV

IMG_6046

After waiting 30 seconds for the Pi Zero to shut down, plug in the RBF switch plug into the board, and all the LEDs should go out except for the red LED.

IMG_6048

Unplug the USB-C cable and Pi Zero W to continue soldering.

Assemble the Remove Before Flight (RBF) plug by screwing the black cap onto the 3.5mm plug and inserting the split ring of the RBF tag into the cap:

image

image

Finish Through Hole Soldering

Then solder the rest of the through hole components including:

  • Female sockets 1x20 J2 and J3
  • Female socket 1x8 for the BME280 J5
  • BME280 sensor with 1x4 male pin header
  • Female socket 1x4 for the MPU6050 J4
  • MPU6050 sensor with 1x8 male pin header
  • Green LED1 and Blue LED2
  • JST connector
  • Qwiic adapter board
  • Male 1x4 pin header
  • Raspberry Pi Pico microcontroller
  • micro USB cable, or micro USB adapter for USB-C cable

IMG_6054

Start with J2 and J3 the female 1x20 sockets for the Raspberry Pi Pico microcontroller. They need to be installed vertically and with the right spacing, otherwise the Pico won't plug in. Use blue putty and the Pico to help hold the sockets in place as shown:

IMG_6055

Flip the PCB upside down and solder one pin on each header:

IMG_6056

Look carefully from the side to be sure it is vertical and spaced correctly:

IMG_6057

IMG_6058

Carefully solder the remaining pins, being careful not to bridge any pins:

IMG_6061

Pico Testing

For this test, you will need the PCB, the Raspberry Pi Pico which has been programmed, and a micro USB cable plugged into your computer with the Arduino IDE software installed. If your Pico hasn't been programmed yet, follow theses instructions first V2 Pi Zero Software.

Plug the Pico into the PCB with the micro USB towards the edge of the PCB and connect the micro USB cable

IMG_6063 copy

The green LED on the Pico should blink once a second.

The software continuously writes a log file to the serial port. You can view it on a Computer with the Arduino IDE by running the Serial Monitor.

The board selected doesn't really matter. It could be the Raspberry Pi Pico or Pico W if you have it installed. If you don't, you could just select the Arduino Uno board.

You will need to select the Port after you plug the Pico in with the micro USB cable to your computer.

Click on the Serial Monitor icon to open it. You should set the baud rate to 115200 using the drop down menu.

Here's what you will see from the start when the Pico boots up not plugged into anything (the version number may be slightly different):

Screen Shot 2023-08-17 at 1 27 26 PM
OK BME280 26.15 991.59 181.94 31.96 MPU6050 -0.07 0.00 0.04 -0.00 -0.06 0.98 XS2 0.0000 0.0000 0.00 MQ 170
Squelch: 1
OK BME280 26.15 991.62 181.65 31.87 MPU6050 -0.07 -0.33 0.04 0.00 -0.06 0.99 XS2 0.0000 0.0000 0.00 MQ 170
Squelch: 1
OK BME280 26.15 991.63 181.56 31.83 MPU6050 0.16 -0.18 0.02 0.00 -0.06 0.99 XS2 0.0000 0.0000 0.00 MQ 170
Squelch: 1

Finish Through Hole Soldering

You will next solder the BME280 and MPU6050 sensors and the female sockets J4 and J5:

IMG_6092

Insert J4 and J5 and hold in place with blue putty.

IMG_6093

Solder one pin on each and check to make sure it is fully inserted and straight.

For example, from the side:

IMG_6097

Solder the remaining pins. Then insert the male pin headers into each socket and place the sensor board on top. The blue MPU6050 sensor will have all the components on top. The purple BME280 will have the sensor module (silver square) on the top. The hole should be on the left side as shown:

IMG_6098

Make sure the board sits horizontal, using blue putty to hold it while soldering.

Finally, solder the two LEDs, the JST connector, and the Qwiic connector and the 1x4 male pin header:

IMG_6099

First insert the 1x4 male pin header into the top of the PCB:

IMG_6931

Solder the four pins on the bottom of the PCB. Then on the top of the PCB, place the red Qwiic connector on top of the pin header and solder the pins.

Here's how the board looks when complete:

IMG_6100

Step 8b: Antenna Installation

There are two options for the antenna - either an SMA antenna or a tape measure antenna.

SMA Antennas

To connect antennas using SMA connectors, you just need to solder two SMA connectors onto the STEM Payload board.

IMG_4179

This part takes a lot of heat, so make sure your iron is set to high heat. You might also want to apply liquid flux to the pins to help solder it.

IMG_4184

IMG_4183

Which gives this:

IMG_4180

You will connect SMA coax cable and a rubber duck antenna to each SMA connector when you put the frame together.

IMG_4182

Tape Measure Dipole Antenna

Alternatively, you can make a tape measure dipole or monopole (vertical) using these parts:

  • 1/4" Tape measure (3/8" and larger ones work too)

  • Two metal M2.5 screws (nylon will not make electrical contact)

  • Two M2.5 nuts, nylon or metal since it is just a spacer to keep the tape measure from touching the PCB.

Extend all the tape out of the measure before cutting or the remaining tape will retract inside and you will need to break open the case. Be careful of sharp edges, and put electrical tape over the cut edges immediately.

SMA Antenna

For the dipole antenna, you will need two 1/4 wavelength lengths of tape measure, each with a hole drilled in it. Drilling the hole can be tricky, so drill the hole first, then cut the tape to length. Also, using a punch or small screwdriver to dent the tape in the middle can help prevent the drill from moving around. Also, start with the smallest drill bit you have, ending up with a 3/32" drill bit. It doesn't matter if the hole is slightly off center. Using sand paper or emery cloth, remove the paint from the tape around the hole on the bottom (no numbers) side of the tape measure. Cut to length after you have successfully made the holes, approximately 6.5 inches:

IMG_4185

Put the screw through the hole in one of the tape lengths. Then screw the nut onto the screw but don't tighten it all the way.

IMG_4186

Press down with the screwdriver as you screw the screw into the PCB and the screw will cut threads into the center hole of the antenna connector as shown. It can be easier to start the screw in the hole without the tape measure at first to begin cutting the threads.

IMG_4190

IMG_4191

IMG_4188

The two tape measure antennas will go through the gap between the solar panels in the frame.

IMG_4192

The STEM Payload board is now ready for the next step V2 STEM Payload Testing

Clone this wiki locally