Build it! V1 [THEREMON]

If you’ve never soldered through-hole electronics before, I suggest you give yourself a quick primer with one of the numerous through-hole soldering tutorials on YouTube, like this one.

Importantly, take all the time you need – there’s no rush. And work in a well-ventilated space.

Here’s a general tip regarding alignment of parts. First, solder only one leg of a component. Check the alignment (ie. make sure the component is straight and flush with the PCB). If it’s not, reheat the leg and realign. It’s almost impossible to do this kind of alignment once more than one leg is soldered.

PCB VERSION

These instructions are for the V1 version of the PCB that has indented sides.

V1 PCB

If your board has straight sides s as in the image below, you’ll want to use the V2 instructions instead.

V2 PCB

PCB BOTTOM

We’ll populate the bottom of the board first (BOTTOM is silkscreened in the bottom left corner). Here’s a shot of the completed bottom of the board for reference (click on any of the images to enlarge them.)

1. Resistors

We can populate all of the resistors, then solder them all in one go. They are not polarized, so it doesn’t matter which way around they go in.

1.1 51Ω x 2 (Green, brown, black, gold, brown)

These resistors are required by the MIDI output on the DIN connector.

Bend the resistors legs into a U shape, and insert on the bottom side of the PCB.
On the top side, bend the legs – not by too much, but just enough so that the resistors don’t fall out when you flip the board over to solder.

1.2 220Ω x 3 (Red, red, black, black, brown)

The two resistors at the bottom are current limiting resistors for the two LEDs. The other is part of the LM386 amplifier circuit, along with all the other resistors and caps we’ll be adding.

1.3 10Ω (Brown, black, black, gold, brown)

1.4 9.1kΩ (White, brown, black, brown, brown)

1.5 10kΩ (Brown, black, black, red, brown)

Time to flip the board over, solder all the legs, then use your edge cutters to snip the legs off.

2. 8 Ω Speaker

We’ll need to trim the leads on the speaker. Not too short, mind you – the copper wire is thin and can break easily when you strip off the plastic sheathing. Leave some room for mistakes.
Remove the backing from the sticky bottom rim of the speaker.
Stick the speaker down on the white outline, then solder the corresponding leads to the pads marked RED and BLK.

3. 8-Pin Dip Socket

The dip socket will hold the LM386 amp IC.

4. Ceramic Capacitors

Like the resistors, the ceramic caps are not polarized – they can go in either way around.

4.1 470pF Capacitor (471)

4.2 0.10uF Capacitor x 3 (104)

5. PCM5102A DAC Board

The PCM5102A DAC breakout board communicates with the Teensy over the I2S serial bus, and provides far better audio quality than I was able to achieve with the Teensy’s built-in DAC.

Cut the provided provided single-row header into a 11p (pin) section and a 3p section. It’s probably best to solder headers to the DAC board in place – solder the headers to the DAC board first.
Flip the PCB over and solder the DAC board to the PCB.
After soldering, trim the header pins down with you edge cutter. I looks neater, but additionally there are two pins that can interfere with the OLED if you don’t trim the header pins.

6. ToF Sensor Headers x 2

The silkscreen footprint doesn’t match the part exactly, so watch the orientation. The black plastic housing faces away from the speaker.

7. Electrolytic Capacitors

Heads-up! Electrolytic caps are polarized, so mind the orientation. The leg on the side of the cap that has the white line running down it (marked with ) goes to the square pad with two lines on either side.

7.1 10uF

The value is marked on the body, but the 10uF is also the smallest of the three electrolytic caps.

7.2 220uF

The 220uF is the biggest.

7.3 100uF

And the 100uF is medium sized.

8. Teensy 3.2

The Teensy 3.2 is Theremon’s brain! If you picked the option for a kit that includes the Teensy, yours will already be flashed with the latest firmware at the time of shipping. It might be worth checking if there’s been a firmware update. Flashing new firmware is super easy (love you, Teensy!). Instructions are on the Firmware page.

I find it easiest to insert the two 14p female headers on their silkscreened footprint, and to put the male headers into them. You’ll have received enough headers, though you may not find 2 x 14p stretches in one piece. Not to worry, just steal a pin or two from another piece and complete the 14p row. Next, put the Teensy down onto the male header pins and solder. In case it’s not obvious, the shorter side of the male header goes to the Teensy, and the longer side goes to the female header.
Flip the board over and solder the female headers to the board. There shouldn’t be an issue if you leave the Teensy attached for this step.

9. MIDI DIN

10. LM386 IC

No soldering required. Just bend the legs inward a little so the IC fits easily, then push it home. Check the orientation.

PCB TOP

Time to flip the board over and populate the components on top.

The completed top of the board for reference.

11. OLED Jumpers x 2

While sourcing parts for Theremon, I noticed that many OLED units have GND and VDD pins swapped around. In order to accommodate both types, I’ve added jumper pads.

Compare the legending of the pins on the OLED you’ve received with the silkscreen on the PCB. If GND is on the left on your OLED, use cut off legs from some of the resistors to connect the GND pad on the PCB to the pad labeled 1 above it. Similarly, connect VDD to the pad labeled 2. Conversely, if your OLED unit has VDD on the left, connect the GND pad on the PCB to pad 2, and VDD to pad 1. This will make an X shape, so it’s best to put one jumper on the top side of the board and the other jumper on the bottom side so you don’t create a short.
Nevermind me – I had the order swapped around and soldered my OLED before soldering the jumpers. I think it’s a bit less cramped if you do the jumpers first though.

12. OLED

We want to raise the OLED a little so it sits closer to the surface of the acrylic enclosure. You should have some male headers left over. Cut a 4p section, remove the metal pins with pliers, then slide the plastic bit up over the header on the OLED so the header has a double row of plastic retainers – in the pic above there is a gap between the two black plastic spacers, but you want them right up against each other.
Take care that the OLED is parallel to PCB when you solder it – do one leg first so you can reheat the leg and reposition before soldering the other legs.
The OLED just hangs like this without a support on the bottom side, but the OLED unit is so light that it’s not an issue.

13. LEDS x 2

The longer leg of the LED goes to the square pad, and the shorter goes to the round pad.

14. Buttons x 6

The footprint for the buttons is rectangular. The notches in the body of the switch where the legs come out align with the shorter sides of the rectangle. There’s no front and back to the switch, so it can go in either of the two ways around that fits the footprint.

15. Potentiometers x 2

The pots only fit one way, though be sure they’re straight when you solder.

16. Time of Flight (ToF) Distance Sensors

Theremon has two Time of Flight sensors to measure the distance between the player’s hands and the instrument (Adafruit is a great resource to learn more about the VL53L0X sensors we’re using). The ToF sensors are screwed to the acrylic enclosure and attach via ribbon cables. This allows for the option to have them firing up, or off to the sides depending on your preferred playing style. Note that it’s probably easier to place Theremon next to other gear if you have the ToFs firing up.

16. 1 Cable-mount ribbon connectors x 2

Insert the ribbon cable into the connector. Make sure the ribbon is in all the way – actually it can come out the other side by a little (you can trim it later if you want). Use the side of the ribbon cable that still has its plastic sheathing, The side that’s stripped with the wires exposed goes to the ToF sensor later.
The ribbon should extend out the side that has the raised plastic ridge that fits in the slot on the PCB-mount connector. Make sure the ribbon is straight, then squeeze down on the connector – just so the teeth catch and hold the connector place.
The final step of squeezing the connector shut is best done with a ribbon connector tool. If you don’t have one, use the following (in order of usefulness): a bench vice, pliers, your teeth (no don’t!).
If you’re using pliers, make sure you don’t damage the connector – squeeze a little, then flip it around and give it a squeeze from the other side.

16.2 ToF Sensors x 2

The exposed wires on the other end of the ribbon may have frayed during travel..
Gather the strands for each color wire together neatly and tin it with a little solder so it’s easier to insert into the holes on the small ToF PCB. Notch the sheathing between the different colors wires with your edge cutter so you can tease the wires apart some and splay it out so the wires find their holes more easily.
Double-check the orientation against the pic above

17. Enclosure

Remove the protective paper from the top enclosure plate – it’s the large ones with holes for the sensors, pots and buttons.
Attach the ToF sensors to the top plate with the provided screws and nuts.
The top plate is symmetrical horizontally, so you can’t get it the wrong way around.
Screw in the hex spacers on the corners of the PCB. The shorter one is at the top of the board.
Screw the top plate with the mounted ToF sensors to the hex spacer standoffs.
Push the ribbon cable connectors home into the PCB connectors.
Remove the paper backing from the bottom plate. Make sure the right side is up before you start adding the side walls. The plate is etched with dots to help align with the side walls. Match up the number of dots to the pic above to get the right side on top. (The bumper feet shown in the pic can be added in a later step – it’s not so clear in the pic, but they sit under the plate, ie. between it and the table surface).
Align the ridges and slots with the same number of dots when assembling the side walls.
Once the walls are build up, drop the top plate and pcb assembly into it and push the slots home onto the ridges.
Flip the case over and screw the standoffs to the bottom plate. Then add the bumper feet to the four corners.
Push the knobs onto the potentiometer shafts.

Congratulations, you’re done!

Plug in a micro USB cable attached to a 5V smartphone charger (the same cable and charger as most Android phones), and off you go. Theremon reporting for duty!