v1.1 9. Board Stack - alanbjohnston/CubeSatSim GitHub Wiki
The four boards in the board stack are shown here:
You will need these tools:
- Safety glasses (to protect eyes while soldering or trimming leads)
- Soldering iron and solder (I use lead-free solder, but leaded solder is easier to work with)
- Hot glue gun (for securing wires to solar panels)
- Small Philips screwdriver
- Small flathead screwdriver
- Needle nose pliers (to bend leads and hold parts)
- Side cutters (to trim leads)
- Wire strippers or a blade (to remove insulation from wires)
- Heat gun or hairdryer (to secure heat shrink tubing over connector wires)
- Drill and drill bits
- Sandpaper or emery cloth (if you are making the dipole or monopole antenna)
Useful to have:
- Liquid flux to solder SMA connector
Video
Here is a video of the antenna install and board stack: https://youtu.be/lyu3lVcrZk4
Checklist
The BOM has a sheet "By Steps" which lists the parts needed for each step in order. https://docs.google.com/spreadsheets/d/1y94Ut4WlnfJ7ZC4sU9S5768G5_BMU9aPUGnHsb_djTI/edit?usp=sharing If you have a Google account, you can make a copy of this spreadsheet ("File" then "Make a Copy") and check off each part as you install it.
For example, here is the checklist for this step:
Antenna Install
Before we build the board stack, we need to install our antenna. You can build a SMA antenna (left), a tape measure dipole (center), or a tape measure monopole (right) as shown here:
SMA Antenna
To connect an antenna using a SMA connector, you just need to solder an SMA connector onto the top of the Main board. 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.
Which gives this:
You will connect an SMA coax cable and a rubber duck antenna when you put the frame together.
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)
-
Metal screw, nylon will not make electrical contact
-
Nut, nylon or metal since it is just a spacer
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.
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:
Screw the nut onto the screw, the put the screw through the hole in one of the tape lengths. 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.
The other tape length is held in place by the nylon spacers. You will attach the tape measure antenna just before you plug in the battery board, using the spacer to hold it in place.
The details of how to install the spacers are described below in the Stacking the Boards section.
Tape Measure Monopole Antenna
To build the monopole, you only need to cut one length of tape measure to the same length as the dipole, approximately 6.5 inches long. You need to bend the tape measure next to the hole to a right angle, but don't fold it as it will break off
Screw the screw into the board so the monopole antenna goes vertical. There will be a slot in the top frame piece for the tape measure to stick out.
Stacking the Boards
In order to stack the boards, we will need a set of 2.5mm nylon spacers and two GPIO stacking headers:
Standoffs are described by the thread size (M2.5 in this case), length of the standoff (6, 10, and 15mm), and length of the standoff threads if any (+6mm). Also M2.5 screws and nuts are used. Here are the standoff pieces needed for the three board stack along with their names in their correct order and orientation:
Start by adding standoffs to the bottom of the Pi Zero W board next to the GPIO header (2x M2.5 6mm+6mm). If you are using the Pi Camera, your Pi Camera should already be connected using the cable to the Pi Zero WH. As you build the board stack, be very careful not to pull out or pinch the camera cable.
As shown in the previous image, the threads should go through the Pi Zero holes:
Next, add spacers to the top of the Pi Zero W board next to the GPIO header (2x M2.5 10mm):
Here's how it looks from another angle:
Make two of these standoff stacks with a M2.5 6mm+6mm spacer, a nut, and a M2.5 10mm spacer in this order:
Now, plug the Pi Zero W into the bottom of the Main board.
Flip the Main board right side up and put each spacer stack under the other two holes in the Main board:
Create four of these spacer stacks using a M2.5 15mm+6mm and a M2.5 10mm+6mm spacer.
Insert the threaded end of each spacer stack through one of the holes, screwing it into the spacer underneath. If you built the dipole antenna, now is when you place the tape measure length over the hole in the PCB.
Plug a stacking GPIO header into the board to give the necessary spacing:
Here is how it looks from another angle:
Make sure the Remove Before Flight (RBF) pin is inserted. This will ensure that the Pi will not power up before you are ready. Plug in the JST 2.0 connector from the Battery Board into the Main Board then plug the Battery board on top.
Here is how it looks from another angle:
Now create four more of the standoff stacks with the M2.5 15mm+6mm and M2.5 10mm+6mm spacers and insert the threaded end into the holes on the Battery board:
Plug another stacking GPIO header into the Battery board to give the necessary clearance:
Here is how it looks from another angle:
Plug the STEM Payload Board on top:
Secure with four screws (4x M2.5 screws):
Here's how the board stack should look from the side:
You can test the CubeSatSim by removing the RBF pin. Unless the batteries are fully depleted (NiMH batteries normally come charged up), the green light on the Pi will flicker and the CubeSatSim will boot up and start running.
The green LED on the Main Board will be lit up after booting is complete and the software is running. The blue LED on the Main Board will be lit up when the CubeSatSim is transmitting. The red LED on the Main Board will be lit up when the battery is being charged by either the micro USB power supply.
The pushbutton on the Main Board can be used to reboot or shutdown the CubeSatSim. Pressing and releasing the pushbutton will cause the green LED to turn off and the Pi to reboot. Pressing and holding the pushbutton until the green LED flashes three times slowly then releasing will shutdown the Pi. Once it has shutdown, it is safe to plug the RBF pin back in. Pressing the pushbutton with the RBF pin inserted will not turn on the Pi.
Installing the Board Stack into the Frame
The Board Stack is now ready to go into the Frame.
Video
Here is a video of the frame assembly: https://youtu.be/V1guFR5yoVY and https://youtu.be/Hg5gV504Gqw
The 1U frame of the CubeSatSim has solar panels on each face, which are labeled by the Cartesian axes X, Y, and Z. For the sides that face in the direction of the axes (see https://en.wikipedia.org/wiki/Cartesian_coordinate_system#/media/File:Coord_system_CA_0.svg), they are labeled +X, +Y, and +Z. For the sides that face in the opposite direction, they are labeled -X, -Y, and -Z. The CubeSat Design Specification (CDS) standard also has drawings showing the X, Y, and Z sides of a 1U CubeSat https://www.cubesat.org/cds-announcement. Here is a figure from that document:
On the CubeSatSim, the +Z side is the top of the CubeSatSim, the +X side has the pushbutton, micro USB connector, and the LEDs. The Main printed circuit board has the axes labeled on it as well.
There are two sizes of solar panels used in the CubeSatSim if you aren't using a Pi Camera:
-
Four 90mm x 80mm Solar Panels for the +Y, -X, -Y, and -Z sides
-
Two 90mm x 70mm Solar Panels for the +X and +Z sides
If you are using the Pi Camera, there are three sizes:
-
Three 90mm x 80mm Solar Panels for the +Y, -Y, and -Z sides
-
Two 90mm x 70mm Solar Panels for the +X and +Z sides
-
Two 80mm x 35mm Solar Panels for the -X side
Four screws mount the bottom of the board stack to the frame bottom. Note that the frame top and bottom are identical. The Pi Camera ribbon cable is routed as shown here:
Here's how it looks from the top. The Pi Camera should face outward on the side opposite the LEDs and switches, the -X side.
Now, all six JST RCY wires will be mounted on the Main PCB. They should be labeled with the side: +X, -X, +Y, -Y, +Z, or -Z.
The connectors should be routed out the sides, on the +Y or -Y side.
The -Z connector should be routed out the bottom.
Next, the Pi Camera is attached to the side frame with the camera mount:
The side is attached to the bottom with two plastic screws and two nylon nuts. The two small 90x35mm solar panels are attached to the frame. Connect the solar panel to the -X connector.
On the other side, the +X side with the LEDs and button, screw the SMA coax cable into the SMA connector on the Main board.
Then attach the other side frame to the base with two plastic screws and two nylon nuts.
Attach the 90x70mm solar panel to the frame and connect the solar panel to the +X connector.
Put the SMA connector through the round hole in the top frame and secure with the nut.
Attach the 90x70mm solar panel to the top frame and connect to the +Z connector. Connect the top frame by pushing down and carefully bending the SMA cable as shown in the following photos and secure the top with four plastic screws and four nylon nuts:
This is the view of the +Y side showing the bend in the SMA coax cable:
This is the view of the -Y side:
Connect a 90x80mm solar panel to the +Y connector and secure to the frame:
Connect a 90x80mm solar panel to the -Y connector and secure to the frame:
Flip the frame upside down, making sure the -Z connector is sticking out.
Connect a 90x80mm solar panel to the -Z connector and secure to the frame. You will likely need to double up on the double stick tape or foam to clear the screw heads.
Here's how it looks from the -X side:
Finally, screw the SMA antenna on the top.