GMU:PCB Arts/L.-E. Kühr/GOL-Midi: Difference between revisions

From Medien Wiki
Line 8: Line 8:


==PCB==
==PCB==
===Generation===
===KiCad===


==Final Design==
==Final Design==

Revision as of 04:57, 2 April 2021

GOL-Midi Semesterprojekt

Concept

In this project I wanted to revisit my first-semester project about generating sound using cellular automata. Instead of synthesizing the sound directly from the state of the cellular automata, I wanted to take advantage of using the MIDI-capabilities of the ATmega32U4 microcontroller and design a custom PCB for an Arduino Micro shield which controlls the simulation. The state of the simulation is then send as MIDI over the USB-C port of the Arduino, which can then be used as a MIDI-controller. For the design of the PCB I wanted to take a procedural approach aswell while keeping it simple but taking advantage of all the layers available. The custom PCB controlls the speed and rules used in the one-dimensional automata.

All rules.png

Schematic

PCB

Generation

KiCad

Final Design

Programming

Simulation

To efficiently simulate the 8-Bit automata the state of the cell and it's neighbours are interpreted as 3-Bit numbers that are then looked up in two arrays. One for the rules whether a cell is created and one for whether the cell should die. Rules for the automata can be changed using the shield.

MIDI

To send the state of the simulation using MIDI the library MIDIUSB (https://github.com/arduino-libraries/MIDIUSB) was used. The state of the simulation is mapped to chrods of a selected scale that are hardcoded in memory and can be send all at once or as an arpeggio. To map to the scales the state of the automata is interpreted as an 8-Bit number that is then mapped to the tone. The speed or time of the intervall is controlled by the shield.

Parts

Besides the PCB the following parts are necessary:

  • Poti
  • Button

Video

TBA

Further Reading:

Elementary Cellular Automaton