Skip to the content
2 layers100.5 × 218.3 mmTraktorino, the printed circuit board in 3D

The open-source DIY MIDI Controller for DJs.

Size
100.5 × 218.3 mm
Copper layers
2
Thickness
1.6 mm
Parts
96
Nets
110
Pads
374
Tracks, vias
1,394, 147
Pours
2
Routed
Yes
KiCad
KiCad 4
Created
14 Mar 2018
Updated
4 Oct 2024

Overview

Traktorino is an open-source printed circuit board by silveirago, from the silveirago/traktorino repository on GitHub. It is a 2-layer board of 100.5 × 218.3 mm with 96 parts on 110 nets, routed with 1,394 tracks and 147 vias.

It is built around the 74HC595. It belongs with the audio and music boards of this library.

Main components

1

README

README.md

Traktorino

Welcome to the Traktorino project! The Traktorino is a low-cost, DIY MIDI controller for DJs. It can control any software that accepts MIDI, such as Traktor, Serato, or Ableton Live. This project is open-source, so you can download all the files for the schematics, enclosure, and code to build one yourself.

Table of Contents

Introduction

Watch the video series on how to build your Traktorino:

  1. Video 1: Introduction and Assembly
  2. Video 2: Programming the Arduino
  3. Video 3: Setting Up MIDI
  4. Video 4: Enclosure Assembly

Parts List

  • 1x Traktorino PCB
  • 1x Arduino Uno ATmega16U2
  • 11x b10k vertical rotary pots
  • 3x b10k slide pots - 45mm - 30mm travel (C3031N-1A2-B10K-GP)
  • 1x Rotary Encoder
  • 2x cd4067 be multiplexers
  • 3x 74hc595 bit shifters
  • 13x tactile buttons 6x6x9
  • 24x 220ohm resistors
  • 1x 1k resistor
  • 11x 3mm blue leds
  • 10x 3mm green leds
  • 2x 3mm yellow leds
  • 2x 3mm red leds

Parts suggestion

Assembly Instructions

  1. Resistors: Insert and solder the 220 ohm resistors. Place a 1k resistor in the specified position.
  2. Arduino Pin Headers: Solder the pin headers to the Arduino and snap it onto the PCB.
  3. Multiplexers and Bit Shifters: Solder these components onto the PCB.
  4. LEDs: Ensure correct polarity and solder the LEDs.
  5. Tactile Buttons: Solder the tactile buttons, ensuring correct orientation.
  6. Potentiometers: Solder the slide and rotary potentiometers.
  7. Rotary Encoder: Solder the rotary encoder.

Programming the Arduino

  1. Download and install the Arduino IDE.
  2. Clone the Traktorino GitHub repository: git clone https://github.com/your-repo/traktorino.
  3. Open the Arduino IDE and load the Traktorino code.
  4. Install the required libraries: ShiftPWM, MIDI, Multiplexer4067, Thread, and Encoder.
  5. Verify the code and upload it to the Arduino Uno.

Setting Up MIDI

  1. USB MIDI Compatibility: Use an Arduino Uno with the ATmega16U2 for true USB MIDI compatibility.
  2. DFU Programmer: Download and install the DFU programmer.
  3. Upload Firmware: Use the provided .hex file to flash the firmware to the ATmega16U2.
  4. Test MIDI: Use a DAW or MIDI monitoring software to test the MIDI signals from the Traktorino.

Enclosure Assembly

  1. Assemble the plywood enclosure using the provided PDF files.
  2. Install the diffusers, spacers, and screws as specified.
  3. Attach the button caps and potentiometer knobs.

Troubleshooting

  • If the Traktorino is not functioning, use a multimeter to check for connectivity issues.
  • Verify that all components are correctly soldered and oriented.

Support and Contributions

Code Explanation

PWM Bit Shifter

The code uses a PWM bit shifter for controlling LEDs:

  • ShiftPWM_latchPin: Set to pin 8.
  • To avoid using the SPI port and change the pin numbers, uncomment #define SHIFTPWM_NOSPI and set ShiftPWM_dataPin and ShiftPWM_clockPin.
  • ShiftPWM_invertOutputs: Set to false. Change to true if your LEDs turn on when the pin is low.
  • ShiftPWM_balanceLoad: Set to false. Set to true to distribute current peaks.

Libraries

The following libraries are included:

  • ShiftPWM for PWM control.
  • MIDI by Forty Seven Effects for MIDI communication.
  • Multiplexer4067 for handling the CD4067 multiplexer.
  • Thread and ThreadController by Ivan Seidel for managing multiple tasks.
  • Encoder by Paul Stoffregen for handling rotary encoders.

Buttons

  • muxNButtons: Number of digital inputs used in the multiplexer.
  • NButtons: Number of direct digital inputs used.
  • muxButtonPin and buttonPin: Arrays to store the pins used for buttons.

Debounce

  • lastDebounceTime and debounceDelay: Used to handle debounce for button presses.

Potentiometers

  • NPots: Number of analog inputs used.
  • muxPotPin: Array to store the pins used for potentiometers.

Potentiometer Reading

  • TIMEOUT: Time the potentiometer will be read after exceeding varThreshold.
  • varThreshold: Threshold for potentiometer signal variation.

Encoder

  • myEnc: Instance of the Encoder library using pins 3 and 2.
  • oldPosition: Previous position of the encoder.

MIDI Configuration

  • midiCh, note, and cc: MIDI channel, note, and CC configurations.

LEDs

  • Configuration for controlling 24 LEDs with PWM.
  • VU meter and button LED pins are defined.

Multiplexer

  • Instances of Multiplexer4067 for pots and buttons.

Threads

  • ThreadController for managing tasks.
  • Separate threads for reading potentiometers and buttons.

Setup and Loop

In setup(), the serial communication is initialized, MIDI thru is turned off, multiplexers and LEDs are initialized, and threads are configured.

In loop(), the main tasks such as reading MIDI, encoder, and running threads are handled.

Functions

  • readButtons(): Reads button states and sends MIDI note messages.
  • readPots(): Reads potentiometer states and sends MIDI control change messages.
  • readEncoder(): Reads encoder values and sends MIDI control change messages.
  • handleControlChange(), handleNoteOn(), and handleNoteOff(): Handle LED feedback for MIDI control changes and note messages.

Usage

  • Connect your Arduino and load the provided code.
  • Ensure all components (buttons, potentiometers, LEDs) are connected to the specified pins.
  • Install the required libraries mentioned above.
  • Upload the code to your Arduino and start using your Traktorino MIDI controller with your favorite DJ software.

Feel free to modify the code and configurations to fit your specific needs. Happy DJing!


Author: Gustavo Silveira

Parts

96
QtyValueFootprintReferences
25LEDLEDs:LED-3MMledL1, ledL2, VU0, VU1, VU2, VU3, VU4, VU5, VU6, VU7, VU8, VU9, VU10, VU11, VU12, VU13 +9
25R_SmallResistors_ThroughHole:Resistor_Horizontal_RM7mmRL1, RL2, RL3, RL4, RL5, ROnOff1, RR1, RR2, RR3, RR4, RR5, RVU0, RVU1, RVU10, RVU11, RVU12 +9
13SW_PUSH_SMALLGustavo:SW_tactileBL1, BL2, BL3, BL4, BL5, BL6, BR1, BR2, BR3, BR4, BR5, BR6, Bshift1
11POTGustavo:Pot_verticalpotL2, potL3, potL4, potL5, potL6, potMain1, potR2, potR3, potR4, potR5, potR6
374HC595Gustavo:DIL16leds1, VUL1, VUR1
3POTGustavo:SLIDER-MEDIUM-2-fSilkpotCF1, potL1, potR1
24067DGustavo:cd4067MUXbuttons1, MUXpots1
1595_pinsPin_Headers:Pin_Header_Straight_1x05_Pitch2.54mmJ3
1ARDUINO_SHIELDarduino_shields:ARDUINO_SHIELD_2_040pinsSHIELD1
1Encoder_switchGustavo:SF-ROTARY-ENCODER_gusEn1
1LOGOGustavo:traktorino-silk-5G***
1analog_pinsPin_Headers:Pin_Header_Straight_1x07_Pitch2.54mmJ1
1d13Pin_Headers:Pin_Header_Straight_1x03_Pitch2.54mmJ4
1mux_pinsPin_Headers:Pin_Header_Straight_1x06_Pitch2.54mmJ2

The 89 most common of 96 parts.

Similar boards

  • 2 layers45.7 × 31.8 mmLEDx16 board, the printed circuit board in 3D

    LEDx16 board

    tardate/LittleArduinoProjects

    a collection of "Little Electronic & Arduino Projects", most involving electronics or an Arduino in one way or another!

    36 parts803MIT
  • 2 layers228.6 × 100 mmMongus48, the printed circuit board in 3D

    Mongus48

    ChrisChrisLoLo/beyblock20

    The magnetic, modular, 20-key macropad that can join together to form an ortholinear board

    124 parts335GPL-3.0
  • 2 layers245.1 × 160 mm8-Bit CPU 32k, the printed circuit board in 3D

    8-Bit CPU 32k

    slu4coder/Minimal-64x4-Home-Computer

    My DIY TTL home computer with VGA and PS/2 and 4x the processing power of a Commodore C64 or Apple II.

    139 parts326
  • 2 layers100 × 95.1 mmProtoboard-6x4-breakout, the printed circuit board in 3D

    Protoboard-6x4-breakout

    electroniceel/protoboard

    Advanced protoboard layout with 1.27mm pitch for smd parts

    4,745 parts311CC-BY-4.0
  • 4 layers140 × 100 mmDc usv, the printed circuit board in 3D

    Dc usv

    TobleMiner/DC-UPS

    A small DC UPS, designed to keep small appliances like consumer network equipment running during power outages

    351 parts223CERN-OHL-P-2.0
  • 2 layers287.8 × 126.7 mmNoName, the printed circuit board in 3D

    NoName

    AlaaSaadAbdo/battoota

    Keyboards

    267 parts188
  • 2 layers100 × 100 mmTommyPROM32-595, the printed circuit board in 3D

    TommyPROM32-595

    TomNisbet/TommyPROM

    Simple Arduino-based EEPROM programmer

    36 parts187
  • 2 layers99.1 × 88.9 mm1002 EPROM EMU NG 2.2d, the printed circuit board in 3D

    1002 EPROM EMU NG 2.2d

    Kris-Sekula/EPROM-EMU-NG

    EPROM Emulator Project with Arduino

    49 parts161Apache-2.0

Questions

How big is the Traktorino PCB?

It measures 100.5 × 218.3 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Traktorino use?

96 parts, built around the 74HC595. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Traktorino KiCad files?

From the silveirago/traktorino repository on GitHub, at the commit this page was made from: the board is PCB/Kicad/Traktorino.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Traktorino design in my own project?

Its repository states no licence, so its author keeps all rights: ask silveirago before reusing the design.