PCB Assembly

Tools Required

  • Soldering iron
  • Pliers
  • Wire cutters
  • Desoldering pump (solder sucker)
  • solder
  • Breadboard

Preparatory Steps

Reverse the direction of pins on 2 relay module

2-Relay Module Header Pins

1. Pull plastic base up and off using a pair of pliers.

2-Relay Module Header Pins partially removed

  • Tip - If it is difficult to remove the plastic base, cut the base so it only is connect to a single pin. Then pull it off.

2-relay module without rubber base

2. Remove pins by grasping the longer end of the pins with a pair of plier and gently pulling away from the board while simultaneously heating the solder with the iron to release the pin.

Removing relay pins

When you have completed this step, the through-holes on the board will likely still be filled with remnant solder.

Remaining solder in through holes

3. Next, remove solder from the through-holes by placing the aperture of the solder sucker directly over a through hole, while simultaneously heating the solder in the through hole with the soldering iron. When the solder liquefies, fire the solder sucker to remove the solder from the hole. You may need to repeat this step multiple times per through-hole to completely clear the hole of solder. Be careful not to leave the soldering iron on the through-hole too long and cause the pad to separate form the PCB.

Clearing through-holes of solder

joint clear of soldier

You may need to remove soldier from both sides.

You can check by attempting to push the clean end of one of the removed pins through the joint. If you can push the pin through easily, it has been cleared. If it fits through, but tightly, you can spin the pin (which should be square in cross-section) in the hole to clear away the last few bits of solder.

4. Finally, solder on new pins in the reverse orientation. Pins reversed on relay module

Prepare 5V and 9V buck converters

  • The bill of materials includes two 16-pin male headers. We will use one of these to supply single pin male headers. Use pliers or wire cutters to break off eight single male header pins.

    Cutting male headers

    Buck converters and header pins

  • Put two single male header pins on a breadboard two positions apart, somewhere towards the middle of the board, then put buck converter on top

    Pin placement

    Buck converter placed on top of pins

  • Solder those two pins in place

  • Place two pins four positions apart on the breadboard 9 rows away from the end of the breadboard (this should allow just enough room for the two pins previously soldered to hang over the edge.).

    Placement of second pin set

  • Place buck converter on top of these pins. These pins are very close to a large capacitor that may have to be bent upwards away from the pins in order to safely solder.

    Buck on top of pins again

  • Repeat with second buck converter.

    Finished buck converter

Solder Arduino Header Pins to PCB

Select Arduino, 2.5 mm header pins, and custom pcb

  • Arduino Mega
  • 1x 2.54 mm 4 header pins
  • 1x 2.54 mm 6 header pins
  • 1x 2.54 mm 2x18 header pins
  • Custom PCB

Arduino Pins Laid Out

Place header pins on Arduino

Arduino Pins Placed

Place PCB on header pins

PCB placed on the Arduino header pins

Soldier pins on PCB

Soldering the first pin into place on Arduino header pins

Soldering the first header set into place on Arduino header pins

Soldering the other header set into place on Arduino header pins

Arduino header pins fully soldered

Carefully remove PCB from arduino

PCB removed from Arduino

Attaching pH Carrier Board Female Header

Tools needed

  • 5 position female header for the pH carrier board
  • Custom pcb

    There are many methods one could use to attach this header. Here we demonstrate how we have done it.

  • Fill first through hole with solder (We use a PCB holder for this process)

    image of PCB placed in PCB holder

    Filling first through hole

    First through hole filled

  • Position the five pins of the header along the five through holes in the box labeled “pH carrier1”. Pay attention to the header is on the opposite face of the PCB from the Arduino header pins. Once placed press gently against the pin placed in the filled through hole.

    Pressing header

  • While pressing header pin against filled through hole, heat the other side of the through hole with your soldering iron. Your pin should fall through the hole and become attached to the board.

    heating through hole

  • Now that the first pin is set and the header provisionally attached, you can reheat the pin to melt the solder and reposition the header if alignment needs to be adjusted.

  • Finally, solder the remaining pins on the header. This will be the basic process for attaching all other headers to the board, so we will not reiterate the whole process each time.

The pH carrier header attached to PCB

Attach Header for the Keypad

Using the same method you used to attach the pH carrier board female header, solder on the 8-pin male header for the keypad. Make sure that these pins are placed on the opposite face of the PCB as the Arduino header pins. Keypad header

Potentiometer

Solder on the potentiometer. Make sure this component is soldered onto the same face of the PCB as the Arduino header pins. Potentiometer being soldered into the PCB

3.5 mm Jack

Solder the 3.5mm jack onto the same face of the PCB as the Arduino header pins. This component has larger solder pins and will require more solder. 3.5mm audio jack

3.5 mm jack solder points

Realtime Clock Female Headers

Solder on a 5-position female header on the Real Time Clock location on the PCB on the same face as the Arduino header pins. Real Time Clock Header

LCD Header

Solder on a 16-position female header onto the LCD1 position on the opposite face of the PCB from the Arduino header pins. LCD Header

Power Screw Terminals

Solder on the large screw terminals onto the PCB onto the face opposite the Arduino header pins in the location labeled “Power_Screws1”. The openings on the side of the terminals (where the wires will be fed) should be facing toward the “AC Receptacle” location on the PCB. Power screw terminal 1

Power screw terminal 2

Solder on the large screw terminals onto the PCB onto the face opposite the Arduino header pins in the location labeled “Power_Screws1”. The openings on the side of the terminals (where the wires will be fed) should be facing toward the “AC Receptacle” location on the PCB.

Power screw terminal 1

Power screw terminal 2

Jumper Pins

Solder 5 3-pin male headers onto the positions labeled “LCD POT”, “LCD RES”, “LCD VDD”, “RTC”, and “PT100” inside the Arduino header pins, but on the opposite face of the PCB rom the header pins.

Jumper pin positions

Since these pins will be on the opposite face as the Arduino header pins, and therefore you will be soldering on the side with the long Arduino header terminals, you will need to use a rather steep angle with your soldering iron.

Jumper pin soldering

Jumper pin soldered

Once they are soldered on, place jumpers between the center pin and the “Arduino” pin on each header.

Jumper positions

AC Power Receptacle

Next, solder the AC receptacle onto the opposite face of the PCB from the Arduino header pins. The AC Receptacle

I find the easiest way to do this is to hold the AC receptacle from underneath the PCB into it’s through holes and then place a small chunk of solder near on of the terminals. The AC Receptacle being held to the board with a solder chunk next to a pin

Then I can solder on that pin with that solder chunk. Soldering on AC receptacle first pin

Then I can easily solder the remaining pins.

Attach Buck Converters

Now place the buck converters onto the PCB on the same face as the Arduino header pins. The through holes for these converters are slightly closer together on the PCB than on the converters. This is intentional so that you can place them and have tension keep them in place while you test the units before soldering them on. Make sure that you place the correct buck converter in the correct place on the PCB. The positions are marked on the PCB. The 5V buck converter should have a 1000 μF capacitor on the output end, the 9V should have a 470 μF capacitor in the same position. Placing buck converters on PCB

Testing buck converters before soldering

Before soldering the buck converters to the PCB you should test the outputs to make sure 1) that you placed the buck converters in the correct positions and 2) that the converters are not defective. To do this we need to plug the board into an outlet, which must be done very carefully to prevent giving yourself a very dangerous shock. To do this safely, first secure the PCB so that it remains in place while plugged in. I suggest using a PCB holder for this. Then, plug the power cable into the PCB. Only then plug the power cable into a wall outlet. Once the PCB is plugged into the wall, DO NOT TOUCH IT except with the multimeter. If you need to reposition the board, unplug it from the wall before doing so.

Once you have the PCB secured and plugged in, use a multimeter to check the voltage output on both the 5V and the 9V buck converters. This is most easily done on the pins protruding through the PCB on the opposite face of the buck converters. Checking voltage of buck converters

It is also useful to check the 7V power output from the screw terminal block for the arduino. You can do this by checking voltage between the screws labeled “To Arduino VIN/9V” and “AC-E”. Checking voltage of arduino power

Soldering buck converters in place

Once you have check the voltage outputs of the buck converters, confirming correct placement and that they are in working order, you can solder down those two devices. Before you do this, however, UNPLUG THE PCB BEFORE MOVING OR ATTEMPTING TO SOLDER the buck converters. After you have solders all 4 pins on each buck converter, you can trim the pins on the opposite face from the buck converter with a wire cutter.

PT100 Temperature Probe Breakout Board

Next we will attach the headers and configure the MAX31865 PT100 temperature probe break out board. You will need the 8-pin male header that came with the breakout board, a 8-pin female header, three 1-pin female headers, and clip off 3 1-pin headers from the spare 16-pin header as you did with the buck converters. You will not need the two screw terminals that come with the pt100 breakout board. Parts needed to attach the pt100 temperature probe

To attach the board to the PCB, first place the 8-pin male header into the 8-pin female header. 8-pin header attachment 8-pin header attached

Next, place the 1-pin male headers into the 1-pin female headers. 1-pin header attachment

Place each of these mated male/female headers into the PCB on the position marked “PT100 Amp”, with the pins for the female headers placed into the PCB. There are 3 single pin headers, but 4 positions to place them. Place them into the three positions closest to the edge of the the PCB. PT100 header placement on the PCB

Then, place the pt100 breakout board on the male side of the header pins and solder into place. PT100 breakout board soldered into place

Following soldering the pt100 breakout board, you can also solder the female header pins on the PCB.

Configuration of the PT100 breakout board

On the PT100 breakout board solder together the pads that are labeled “2/3Wire” 2/3 wire jumpers

Next, use a sharp instrument (I use the pointed tip of my wire cutters) to cut the jumper between the “2” and “4” pad on the “2 4 3” jumper. 243 wire jumpers

Finally, on that same jumper set, solder together the “4” and “3” pads. 243 wire jumpers soldered

Attach Real Time Clock Breakout Board

This component ships with a 5x1 set of header pins. We need the pins facing down (away from the battery), so they will be soldered from the front of the board. A good way to do this is to put the male pins into a breadboard, then place the breakout board on top of the pins (perhaps with some padding to have the breakout board at a right angle from the pins). You can then solder the header pins and remove the breakout board from the breadboard. Real Time Clock attached

Then place on the female header on the PCB. Finally, put a CR1220 coin battery into the breakout board.

Attach the Atlas Scientific EZO pH Breakout Board

Remove the electrically isolated EZO carrier board from the packaging, and attach the header as you did with the RTC breakout board. EZO pH packaging EZO pH carrier board placed on breadboard for soldering

Next, place the red EZO pH stamp on the carrier board so that the “PH EZO” lettering is closest to the large white plastic part of the carrier board and the BNC plug. EZO pH stamp placed on carrier board

Finally, place the entire assembly on the “pH carrier board” position on the PCB by inserting the male header on the carrier board into the female header on the PCB.

2-relay Module Attachment

First, solder the 3-pin and 4-pin female headers onto the PCB on the side that is opposite the Arduino header pins. To make this easier, you may temporarily remove the real time clock, PT100 and EZO pH breakout boards from the PCB by unplugging them from the PCB and setting them aside. Soldering the 2-relay module female headers 2-relay module headers

Next, place the 2-relay module onto the PCB by plugging it into the female headers. 2-relay module plugged into the PCB

Attaching high voltage wires to relay

Cut two pieces of stranded 14 gauge (AWG) wire to a length of approximately 3.5 cm. high voltage sires to relay

Strip the insulation of the last 5mm of each end. The relay wires stripped

Tin the ends of the wire where it is not covered by insulation. This involves heating the bare wire with the soldering iron, and melting solder into the wire, allowing the strands to “wick” up the solder. Tinning the wire

Next, bend the wires approximately in the middle. The wires bended to fit the relay.

Next, place one end of the wire in the middle terminal of each of the two 3-position terminal screw blocks on the relay module and place the other sides in the hole in the PCB labeled “Screw1” and “Screw2”. Tighten the screws to secure the wires into place. attaching to breadboard

Finally, solder the ends of the wires in the PCB to the holes. Soldered high voltage relay

Now, you are finished assembling the custom PCB.