Skip to the content
2 layers60 × 110 mmAddaTone Controls, the printed circuit board in 3D

AddaTone Controls

dchwebb/Addatone13

Eurorack Additive Oscillator based on Lattice FPGA and ARM MCU

Size
60 × 110 mm
Copper layers
2
Thickness
1.6 mm
Parts
18
Nets
22
Pads
90
Tracks, vias
134, 10
Pours
2
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
9 Feb 2020
Updated
25 Aug 2024

Overview

AddaTone Controls is an open-source printed circuit board by dchwebb, from the dchwebb/Addatone repository on GitHub. It is a 2-layer board of 60 × 110 mm with 18 parts on 22 nets, routed with 134 tracks and 10 vias.

It is built around the B10K. Its parts include 8 connectors and 4 switches. It belongs with the fPGA and programmable logic and audio and music boards of this library.

Main components

1

README

README.md

Addatone

Image

Overview

Addatone is a Eurorack oscillator using additive synthesis. It is a two channel oscillator with channel one outputting fundamental and odd harmonics and channel two fundamental and even harmonics.

Each channel has potentiometer and CV control over the number of harmonics with higher harmonics progressively attenuated. In addition a 'Count' pot and CV input hard-limit the total number of audible harmonics. A warp control progressively detunes the odd harmonics up and even harmonics down.

Channel one has a mix switch which allows a mix of both channels to be output from channel one. Channel two has a multiply switch which allows a multiple of both channels to be output from channel two (ie a ring modulation effect).

The final controls are an octave potentiometer covering a five octave range and a fine tune control covering around an octave.

Architecture

Image

The core sound generator is an ICE40UP5K FPGA from Lattice. This is responsible for generating the harmonics, mixing/multiplying and then outputting to the DAC via I2S protocol.

The module also contains an STM32F446 microcontroller which holds the FPGA bitstream in internal flash memory; this is used to program the FPGA on start-up via SPI. In addition the STM32 is used as an ADC to digitise and scale all potentiometer and CV control data. This is periodically transferred to the FPGA via SPI. The STM32 is clocked from an external 12MHz crystal. This is also used to drive the FPGA clock via the STM32 MCO (Master Clock Output) peripheral.

The DAC is a Texas Instruments PCM5100APW, operating 2 channels at 16 bits, 48kHz. Two op-amps are used to scale input CV voltages and to amplify the DAC output to Eurorack levels (8V peak to peak).

FPGA

A look-up table in block RAM (Sine_LUT) holds 2048 16 bit samples containing a single cycle sine wave. Individual harmonics are generated by traversing the LUT at a speed relative to the harmonic frequency.

The SamplePos_RAM 256 x 16 bit look-up table holds the current Sine LUT position of each harmonic. This position is advanced according to the harmonic's frequency at each sample and the sine sample is scaled and added to an accumulator. The initial values of the sample position LUT are pre-calculated to minimise 'crest factor'. If each harmonic started at position 0 of a sine wave then peaks and troughs would coincide to create a wave with an amplitude greater than the dynamic range of the system.

A graphical javascript tool to visualise and calculate minimal crest factor sample positions is available here: https://htmlpreview.github.io/?https://raw.githubusercontent.com/dchwebb/Addatone/master/SamplePosLUT/SineLUT.htm

The FPGA receives its control data from the ADCs processed in the STM32. These are periodically sent via SPI and decoded using a custom peripheral (ADC_SPI_In).

The DAC_I2S module is a custom peripheral used to dispatch the final sample values to the DAC via the I2S protocol.

The 12MHz clock received from the STM32 MCO is scaled to the ICE40's maximum clock frequency of 48MHz.

The ICE40 bitstream is developed in Lattice's Radiant IDE. Full source code here: https://github.com/dchwebb/Addatone/tree/master/Addatone_ICE40

STM32 Microcontroller

The module includes an STM32F446 MCU that carries out various helper roles. The firmware was developed in STM's CubeIDE and available here: https://github.com/dchwebb/Addatone/tree/master/Addatone_STM32F446

The FPGA bitstream is stored in the MCU's flash memory and is programmed into the FPGA at startup using an STM32 SPI peripheral (see fpgaHandler::ProgramBitstream method). Once the FPGA is programmed the ADC data derived from external CV control and potentiometers is processed, scaled and transmitted in a periodic packet to the FPGA via SPI (see fpgaHandler::SendControls method).

Calibration

The 'calib' button allows the setting of the mid point of the fine tune and the spread of the tuning. To start calibration turn the Octave and Fine Tune knobs to their mid point position.

Press the Calib button. Changing the Fine Tune knob will alter the pitch. Turning the Octave knob clockwise will decrease the tuning spread, and vice versa.

When calibration is complete press the Calib button again. Turning the Fine Tune knob to the center position should set the correct pitch.

To erase the configured calibration hold the Calib button down when powering on the module.

Parts

18
QtyValueFootprintReferences
6B10kCustom_Footprints:Alpha_9mm_PotentiometerCTune1, FTune1, Harm1, Harm2, HarmCount1, Warp1
2SW_PushButtons_Switches_THT:SW_PUSH_6mmSW1, SW2
2SW_SPSTCustom_Footprints:SPDTSubMiniatureSW3, SW4
1Conn_01x10_MalePin_Headers:Pin_Header_Straight_1x10_Pitch2.54mmJ1
1Conn_01x12_MalePin_Headers:Pin_Header_Straight_1x12_Pitch2.54mmJ2
1DAC1_OutCustom_Footprints:THONKICONN_holeJ7
1DAC2_OutCustom_Footprints:THONKICONN_holeJ8
1Harm1_InCustom_Footprints:THONKICONN_holeJ4
1Harm2_InCustom_Footprints:THONKICONN_holeJ5
1Pitch_InCustom_Footprints:THONKICONN_holeJ3
1Warp_InCustom_Footprints:THONKICONN_holeJ6

More from dchwebb/Addatone

3
  • 2 layers60 × 110 mmAddaTone components, the printed circuit board in 3D

    AddaTone components

    dchwebb/Addatone

    Eurorack Additive Oscillator based on Lattice FPGA and ARM MCU

    95 parts13
  • 2 layers100 × 110 mmAddaTone Solder Stencil, the printed circuit board in 3D

    AddaTone Solder Stencil

    dchwebb/Addatone

    Eurorack Additive Oscillator based on Lattice FPGA and ARM MCU

    81 parts13
  • 2 layers67 × 24.5 mmSTM32L152 Dev Board, the printed circuit board in 3D

    STM32L152 Dev Board

    dchwebb/Addatone

    Eurorack Additive Oscillator based on Lattice FPGA and ARM MCU

    23 parts13

Similar boards

  • 2 layers96.5 × 20.3 mmAvalancheVCO, the printed circuit board in 3D

    AvalancheVCO

    kassu/kassutronics

    Projects, documentation... all things synthesizers and electronics

    21 parts183
  • 2 layers99.1 × 109.2 mmModule, the printed circuit board in 3D

    Module

    zlosynth/kaseta

    Saturating tape delay and feedback sculptor.

    71 parts59CC-BY-SA-4.0
  • 2 layers86.4 × 69.9 mmPeaks, the printed circuit board in 3D

    Peaks

    matias-levy/peaks

    A fully-functional low-cost reversion of Mutable instrument's Peaks

    54 parts58
  • 2 layers48.4 × 106.3 mmAchordion, the printed circuit board in 3D

    Achordion

    zlosynth/achordion

    Chord-crafting quantizing wavetable oscillator.

    55 parts38CC-BY-SA-4.0
  • 2 layers9.9 × 110.1 mmADSR, the printed circuit board in 3D

    ADSR

    kraakenstuff/ADSR

    2HP ADSR module based on "Fastest Envelope in the West" by René Schmitz (https://www.schmitzbits.de/adsr.html)

    44 parts37
  • 2 layers181.5 × 128.5 mmAndes 10HP, the printed circuit board in 3D

    Andes 10HP

    niektb/sluisbrinkie-eurorack-published

    Published Modules of the Sluisbrinkie project

    158 parts34
  • 2 layers81.3 × 96.5 mmMidi2cv, the printed circuit board in 3D

    Midi2cv

    tomarus/midi2cv

    Eurorack MIDI2CV and Arpeggiator using an Arduino Nano.

    63 parts31
  • 2 layers85 × 128.5 mmMiniVerb, the printed circuit board in 3D

    MiniVerb

    benjiaomodular/MiniVerb

    A through-hole reverb module for Eurorack based around the Daisy Seed by Electrosmith

    59 parts28MIT

Questions

How big is the AddaTone Controls PCB?

It measures 60 × 110 mm and has 2 copper layers, 1.6 mm thick.

What parts does the AddaTone Controls use?

18 parts, built around the B10K. 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 AddaTone Controls KiCad files?

From the dchwebb/Addatone repository on GitHub, at the commit this page was made from: the board is Hardware/AddaTone Controls.kicad_pcb and its schematic Hardware/AddaTone components.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the AddaTone Controls design in my own project?

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