Building MidiALF

MidiALF Bill of Materials.

This BOM is for main board w/o CV extension. If you’re going to build CV extension, please replace LM7805 with its switching mode equivalent and make sure you order C3 with 25V rating. See more details here.

MEC switches

MEC 3FTL6 LED switch recommended in the BOM is discontinued. I’ve acquired some stock and can supply both switches and switch caps along with your MidiALF PCB order.

LCD options

Selecting LCD is a great way to personalize your MidiALF. Pretty much any HD44780 compatible 40×2 LCD with 16 pin connector on the left side will do, however keep an eye on dimensions and mounting hole locations. Also, make sure to check LCD documentation for recommended current limiting resistor value: most 40×2 LCDs have it on-board, so R7 is shunted. However, some other LCDs and most OLED LCDs will require a resistor. If go trial and error route you may want to start 68 ohm resistor, then go down if back light LED does not turn on.

Here are some LCDs that are known to work well:

  • ebay user egochina8848 sells  inexpensive and pretty high quality white-on-blue LCDs, you see it on the purple board prototype unit and first production “white pcb” MidiALF.
  • Newhaven has some nice 40×2 LCDs here, however they seem to be pretty current hungry comparing to the ones from ebay above. Mouser part number is 763-NHD-0240AZ-FLYBW.
  • Digikey stocks excellent Kyocera (ex. Optex) display part 73-1260-ND. It looks great but is %30 more expensive than your average 40×2 LCD. ATTN: this LCD needs 68ohm current limiting resistor R7 to work properly.
  • BuyDisplay has some nice black on white LCDs here.

Component side assembly

The bare pcb de-greased with isopropyl alcohol:

balf_#01

Add resistors:

  • 20 x 221 Ohm
  • 2 x 10K
  • 2 x 2.2K
  • 1 x 0 Ohm (wire jumper)

Note: if you’re going to use high intensity blue or white LEDs replace 221 Ohm current limiting resistors (green boxes) with 10K resistors:

  • 2 x 221 Ohm
  • 20 x 10K

Make sure resistors are oriented consistently. Random step LED resistor orientation not only looks ugly, but also (according to ALF), results in a less stable clock.

balf_#02

Add diodes:

  • 1 x 1N4148
  • 3 x 1N4004

balf_#03

Add ceramic capacitors:

  • 12 x 0.1uF (red arrows)
  • 2 x 18pF (greed arrows)
  • 1 x 1uF (yellow arrow)

balf_#04

Add LM7805 and a 20MHz quartz.

NOTE: if you’re planning to build MidiALF/CV extension, do not install LM7805 voltage regulator and read here.

balf_#05

Add resistor networks. Note that these are polarized: marked pin should be at the top.

balf_#06

balf_#07

Add IC sockets. Make sure that the notch is at the top for 8 and 16 pin sockets and on the left for 40 pin socket!

  • 2 x 8 pin
  • 7 x 16 pin
  • 1 x 40 pin

balf_#08

Add 2 x 100uF 16V electrolytic capacitors. Note that these are polarized!

NOTE: if you’re planning to build MidiALF/CV extension, do not install these capacitors and read here.

balf_#09

Add DC power switch and connector:

balf_#11

Add 2 x MIDI connectors:

balf_#12

Solder in LCD contrast trim pot on the component side. Please note that you will need to turn this trim pot up to 20 times in one or the other direction before you can see the characters on the LCD screen.

balf_#26

Add miscellaneous parts:

  • 3×2 AVR ISP header (if you’re using a programmer)
  • 2×5 header (if you plan to use CV extension board)

You’re done with the component side! Time to wash the board, dry it out and  thoroughly inspect all the solder joints with the magnifying glass.

Power supply tests

Check connectivity between all ground pins (green pads), then between power pins (red pads). Verify discontinuity between ground and power rail (red and green pads). Hook up 9V DC power supply  (center pin positive, 300mAh and above) and check for +5V being present at all red pads.

balf_#13x

Face-plate side assembly

Solder in 8 step switches and 4+4 side switches with LEDs. Note that LED’s are polarized: the long leg (anode) goes to the right.

balf_#14

balf_#15

DigiKey stocks MEC-3FTL6 LED switches with and without LEDs installed. You may want to buy the ones without LEDs since they are half the price of the ones with the LED installed and you can choose better looking diffused LEDs. Installing LEDs into switches is pretty easy: just bend the legs and slide them into the opposite holes on the switch.

3FTL6#13FTL6#23FTL6#3

Solder in step LEDs — the long leg (anode) goes to the bottom, closer to the step switches. Don’t forget to install spacers! .300″ spacer work really well with Frank’s plexy cases.

balf_#19

balf_#20

Unless you’re planning to build MidiALF/CV board, solder in 2 x MIDI LEDs (short leg facing the other diode). These are soldered from the top since bottom is covered by MIDI connectors. Note that installing MIDI LEDs before you mount MIDI LEDs is not a good idea since you will have to file LED’s solder joints perfectly flush to the PCB, risking to damage it. Soldering LEDs from top is much easier.

balf_#24

 Solder in 8+2 encoders:

balf_#22

Almost done! At this point the only missing part is 40×2 LCD. It covers MCU and input shift register ICs soldering area so it is important to verify that everything works before LCD is installed.

Testing encoders, switches and LEDs

Install all integrated circuits, including pre-programmed micro-controller chip. Watch the orientation: small ICs should have the notch pointing to the top, and microcontroller chip notch should point to the left. Verify orientation! Reversing the ICs will most probably damage it when power the unit up.

If you got a bare MCU chip, it’s time to flash it.

Connect your best synth to MIDI OUT. You can also hook it up to your computer’s MIDI In and use MIDI tracing utility like MIDI-OX.

Switch MidiALF power on while holding down the Encoder B (the one at the right of the LCD) to start MidiALF with freshly initialized sequence.

Test the left side buttons by pressing them one by one, the pressed button LED should light up.

Click the Encoder A at the left of the screen and check if 3 of the 4 left side button LEDs are pulsing, and one is fully lit, click Encoder A again to cancel mode.

Press RUN button (the top one on the right side). The RUN button LED should light up, the step LEDs should start running, and C4 notes with velocity 100 should be sent at 120BPM to MIDI Out.

Verify that left encoder transposes all notes in sequence up and down. Repeat while holding down the SEL key (bottom right), all notes should be transposed by an octave.

Verify that step encoders transpose step note up and down.

Verify that clicking step encoder plays the note and glows the step LED.

Verify that step switches mute the step.

Change a few notes in the running sequence so that you can hear the difference, then press SEQ button (second from top), rotate EncB to the right, then click it. The running sequence should revert back to all C4s.

Verify that the CLK button slows down sequence.

Connect your MIDI keyboard to MIDI in and verify that pressing the key transposes the sequence while it is running.

If everything checks out you are good to go. If not, refer to Troubleshooting section and fix problems before soldering in LCD.

LCD installation

Cut IC and resistor network pins in the area below the LCD. There is no need to cut them flush, however you don’t want solder joints to be higher than 1mm. Stick two pieces of electrician tape to cover solder joints under the LCD area to ensure that they will not come in contact with LCD board:

balf_#27

Solder the 8×2 pin header to the LCD, mount LCD using the supplied plastic bolts and nuts (brown nut works as a spacer between LCD and the PCB), then solder the pin header in.

Switch on the MidiALF and adjust LCD contrast by using LCD trim potentiometer. It may take up to 20 turns in one or the other direction before you will see any characters.

balf_#28

Finished MidiALF.

Party time! Get yourself a beverage of your choice, press and release SEL button  (bottom right) to show Command page, click step Enc1 to activate Randomizer mode, select a music scale to match your current mood by rotating EncB at the right of the screen. You may want to quickly check how the selected scale sounds by “strumming” notes with the step encoders, then press RUN and click EncB to randomize the sequence within scale.

When you find the sequence that sounds interesting, correct imperfect steps by randomizing just one step with the step button press or transpose it (also within scale) by rotating the step encoder.

Make a nice picture of your freshly build MidiALF (even if it’s naked) and post it here.

Have fun!

11 thoughts on “Building MidiALF

  1. I read quickly the instructions for building alf and cv boards. Everything seems clear except the Midi LEDs. Why aren’t they soldered if you are building the cv version?

  2. Just finished the Midialf, and it does what is´s supposed to! Great piece of fun! But it´s running the 93d version, and I`d like to update to version 94 thru sysex. I have the cv-extension board as well, is it enough then to only download the 94 cv- version? Regards

    • Those are standard sockets — you can choose any part with matching amount of pins. Yes, this display appears to be compatible, however way too expensive — same display at buydisplay.com goes for < $10

  3. Hi Peter —
    Any tips on testing the power supply when doing the CV build (using C3 cap and DC/DC converter on main board)? I have the correct wall wart…just wondering if I’m going to fry anything at this stage (sans hooking up the CV board).

    • If you have socketed ICs, I’d remove them all from both boards, power up the ALF and check all voltages. Before doing this i recommend double and triple checking installation of the DC to DC converter on the main board. if in doubt, email me a hi res photo of both sides.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s