Shruthi-1 digital/control board
French version / Version française
German version / Deutsche Version
Schematics and PCB
The digital/control board hosts the main microcontroller (ATMega644p), the switches/pots/LEDs, the LCD display, and the MIDI interface. It is powered by a regulated 5V supply located on the analog filter board.
Here’s a view of the board:


It has parts on both sides, but there’s no overlap between the two regions, so when there’s parts on one side, there won’t be much action on the other side! The LCD has to be soldered last, since it will cover the ATMega644p pins. Otherwise you can start from whichever side you prefer.
You can find the Eagle files for this board in the hardware/shruthi/hardware_design/pcb directory of the source code hosted on github.
The schematics in PDF format are here.
Bill of materials
In bold, the editors’ picks
Some notes:
- Resistors don’t have to be 1% metal film, 5% carbon are fine for this board. But since there are 1% resistors with the same values in the filter board, it’s a better deal to get 1% for everything.
- The reference from Farnell is for a 1+8 network that will have to be cut (ouch) to get the required network of 6 resistors. The reference from Digikey is a 1+7 network.
- The quartz sold on Reichelt have a surprisingly high capacitance (32pF). Buy at your own risks!
Parts to avoid.
- Reichelt ST 24C64 BN6. Slow as molasses. If you really insist on using it, you need a hardware fix (increase the value of the 2.2k pull-ups to 6.8k or 10k) and a software fix (change the write delay to 10ms, set the I2C speed to 25kHz).
- Reichelt RK09K113-LIN10K. Do not have a D-shaped shaft. The end of the shaft is supposed to look like a miniknob
- Crystalfontz LCDs. Very clean and bright display at a cost: they draw too much current. You need to replace R20 by a 8R resistor, but then the display dim and there’s some heavy “motorboating” in the sound whenever you play a note, unless you put a beefier power supply (a 500mA rated wall-wart might not be enough, worked well with 650mA or 1500mA wall-warts).
- Displaytech LCDs. Their metallic, conducting frame might cause shorts between the pins of the ATMega644p beneath.
Assembly instructions
If you are building a complete Shruthi-1 kit, it is recommended to build the filter board (or at least its power supply section) before starting this board.
Getting ready
Locate the following parts/bags from the kit:

Some equipment you’ll need:
- Soldering iron + solder (nothing fancy, a 15 or 20W will do).
- Cutters.
We assume you know soldering. If you don’t, look first at this tutorial . We highly recommend you to purchase a simple kit from adafruit or sparkfun to practice on something that you won’t regret breaking.
A last word: be patient! we know you’re just a couple of hours away from playing your Shruthi-1, but if you do something stupid, those hours will turn into days or weeks. When there’s something you can’t make your mind about (is this polarized, is this not?), it’s better to take a break and visit the forum.
We are not responsible for anything wrong (including electric shocks, malfunctions, fires, accidents involving a soldering iron) that might happen during the assembly of the kit. Everything you do while assembling the kit is at your own risks.
Step 1

First, we will populate the bottom side of the board – starting by the shortest and smallest parts. Add the following resistors:
- R20 (68R, blue, grey, black, gold)
- R19 and R18 (220R, red, red, black, black)
- R1, R14 (10k, brown, black, black, red)
- R16 and R15 (2k2, red, red, black, brown)
Step 2

Then, add the capacitors. These are small ceramic capacitors, and thus, they are not polarized.
- C1, C4, C8, C5 (100nF caps, not polarized). The latest revision of the board (v0.7) has two more of those, C9 and C10.
- C6, C7 (18pF caps, not polarized)
The 18pF capacitors might look different from those on the picture, but you can recognize them with the 180 or 18 label. 100nF capacitors are labelled 104.
Step 3

Finally, add the diode D1, which is polarized. The black ring of the diode goes on the opposite side as the D1 label on the board – it should point towards the MIDI connectors.
Step 4

Add:
- The 20MHz quartz at the position labelled Q1.
- The trimmer (resistor adjustable with a screwdriver) R21. You can mount it in either orientations.
Step 5

Add:
- The 3 IC sockets (2 DIL8 and 1 DIL40). Make sure that the notch is in the same direction as printed on the PCB.
- The 2 MIDI connectors. You can start by the biggest pad at the center to keep the part in place, then solder the other pads.
At this step, you’ll need to carefully cut, on the other side of the board, the leads of the parts (including the IC socket) in the area covered by the LCD module. Since there are a few SMT parts at the bottom of the LCD module PCB, you’ll have to make sure that the leads are cut as short as possible to avoid unwanted shorts between the two boards.
Step 6

Now insert and solder the small parts on the top side of the board:
- R2 to R9 (220R ; red, red, black, black).
- C2, C3 (100nF caps marked 104, not polarized).
Step 7

Insert and solder the following parts:
- IC2 and IC3 (74hc165 and 74hc595). Orientation is important. The notch should be on the top. Please make sure that the labeling on the IC matches the labeling on the silkscreen ; and check the picture to verify that the two ICs are at the correct location. 74ls and 74hc are variants of the same chip.
- RN1 (10k). This part is a network of 6 resistors sharing a common pin. It is polarized: The common pin is marked by a white dot. This dot should be near the “RN1” and “-” markings of the board.

If you want to socket the two ICs, use a very flat socket!
Step 8

Add the LEDs. They are polarized, the shortest lead and flat side of the LED (-) are on the side of the switches ; the longest lead and rounded side of the LED (+) are on the side of the resistors.
Note that the colors and types of LEDs vary from batch to batch of kits – but no matter how they look, they need to be soldered the same way!
Step 9
Solder the 8x1 male connector through which the two boards will be connected. Here is a photo of a finished assembly, with the part to solder highlighted:

The connection between the two boards is ensured by a 6x1 or 8x1 female header on the filter board, a 8x1 female header stacked onto it, and the connector you have just soldered. You might need to clip the leads of the header in the middle.


Step 10

Add the controls – the 4 potentiometers, the encoder and the 6 switches.
Step 11: a first test!
Even if the LCD screen is not soldered yet, you can already try to power up the Shruthi-1. Indeed, it is highly recommended to do so, since the LCD module will later cover some solder pads, preventing you to fix a bad solder point on the MCU. For now, the pads are still apparent, so it’s a good time to make a first test.
Insert the 3 ICs (ATMega644p, AT24C64C and 6N137) in their sockets on the bottom side of the board. Be careful with their orientation. Connect a filter board, or, if you have not assembled the filter, a 5V power supply to +5V and GND. The Shruthi-1 should boot and the 3rd and 7th LED should be lit.

Press each of the switches several times to verify that the Shruthi reacts to key presses, and that all the LEDs are lit. Rotating the encoder should scroll through the different pages – which will be shown as different LED patterns. You can even connect it to a MIDI keyboard and an amp/mixer to play it.
Step 12

If all sounds good, insert the 16x1 connector between the LCD module and the PCB, and solder it first to the LCD module, and then to the main PCB. Be careful and keep the module aligned with the PCB!
As you can see on this picture, the PCB of the LCD module is maintained at a height of 2.5mm above the main PCB by the black plastic part of the 16x1 connector. No need to add some extra height. The 6 black “feet” of the LCD module rest on the PCB. Don’t worry about shorts: the material of the LCD bezel does not conduct.
Step 13
Finally, adjust the contrast of the LCD:
- Turn the screw of the trimpot R21 counterclockwise until you have reached the end.
- Power the Shruthi-1 and check that the display is very bright but illegible.
- Turn the trimpot a few turns clockwise (it really depends on the LCD type – from one or two turns for the red ones, to four or five for the blue ones).
Step 14
If your filter board is ready, you can now add the spacers and screw the two boards together.
If you are using an “official” plexiglass case, start with the following steps:
- Remove the protective sheets from the plexiglass panels
- Clean the panels to remove the dust
- Try putting together the 6 panels and check that the case does not appear bent / warped. If this happens, swap (inside <-> outside) the bottom panel ; then the side panels. The heat of the laser might bend the material by a fraction of mm ; so the concave side must be on the inside.
- Notice the little dot engraved on the bottom panel. It indicates the front side
- Ready to go? Start assembling the “sandwich” from the bottom to the top:

The composition of the “sandwich” is, from bottom to top:
- 12mm screw (15mm in some kits)
- Bottom enclosure panel
- 2mm nut
- Filter PCB
- Washer
- 2mm nut
- 20mm Spacer
- Digital/control PCB
- 6mm screw
Kudos
Todd Bailey for useful board layout reviews!
Releases
v0.5
- Original release.
v0.6, v0.7
- Changed position of ISP header and modified routing of clock lines to reduce digital noise.
- Added an extra bypass cap on the MCU RST line, and near the digital supply pin for extra stability.
- Added extension port for external programmer or LED array.
- Added solder pads for MIDI connector.
- Changed MIDI pull-up resistor to 10k.
- Changed labeling of ports.
