Digital Theremin Violin (DTV)

From Lofaro Lab Wiki
Jump to: navigation, search

Digital Theremin Violin


The Digital Theremin Violin is an instrument that will be combining the classical elegance of the violin and structure with a modern day, completely electric, masterpiece of the theremin. Several inputs varying from a capacitive touch interface, waveform modification and other sound knobs, and a bow constructed of magnets. The instrument will take the previous inputs and create a one of a kind sound.

Code and Source Files

All associated files and source code can be found Here


  • before this you MUST install and create Port Audio library.
  • This must be compiled using the following gcc command "gcc DTV.c libportaudio.a -lrt -lm -lasound -pthread -lwiringPi -o sine5"


  • This must be ran onto the ATmega32u4 prior to setting the rest of the system up.

Amplitude Modulation

  • Circuit Files
  • NOTE: Never verified AM Circuit PCB worked

Capacitive Touch Interface

  • Circuit Files
  • NOTE: The outputs of this circuit MUST all be hooked to a resistor (we used 100kΩ) the other side of the resistor connecting to your sensing pin of ATmega32u4.

3D CAD Design

  • The .MakerBot, .ipt, and .iam files
  • The source code files are also in this directory for some reason?

Technical Section

This section is meant to give a little clarification as to what and how our system works.

System Architecture

System architecture.jpg

System Descriptions

  1. Microcontroller:
    • The microcontroller (ATmega32u4) is the device that polled the capacitive touch interface and sends the polled information to the microcomputer. It also monitors the potentiometer, wave-modification knobs and sends that information along with the previous.
  2. Microcomputer:
    • The microcomputer is the device that will take in via Serial UART information fed from the microcontroller. With this information will generate via C code a custom, unique waveform. It will then send this Analog signal via 3.5mm audio jack to our amplitude modulator.
  3. Balanced Modulator(MC1496)
    • Majority of the AM Circuit
    • The MC1496 balanced modulator is coupled with a circuit in order to properly modulate the signal we are trying to achieve. This circuit takes in the generated analog signal from the microcomputer and the analog signal from the bow/coil circuit, the carrier and envelope respectively. The chip then modulates the signal accordingly.
  4. LM741
    • The LM741 amplifier is responsible for amplifying the internal analog signal resulting from the microcomputer. Amplifying this internal signal relays throughout the system and provides a louder system output.



From left to right:
  • Taimur Sohrab
  • Kishn Parbadia
  • Ayman Alhandali
  • Dr. Daniel Lofaro
  • Gideon Anderson
  • Rafael Gomes

Not pictured: Conner Eveker