https://github.com/joextodd/theremin
Digital Theremin using STM32F4
https://github.com/joextodd/theremin
accelerometer stm32f4-discovery theremin
Last synced: 16 days ago
JSON representation
Digital Theremin using STM32F4
- Host: GitHub
- URL: https://github.com/joextodd/theremin
- Owner: joextodd
- Created: 2015-02-25T21:24:35.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2021-08-09T17:24:29.000Z (almost 5 years ago)
- Last Synced: 2024-12-06T21:28:14.236Z (over 1 year ago)
- Topics: accelerometer, stm32f4-discovery, theremin
- Language: C
- Homepage:
- Size: 1.62 MB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Digital Theremin
================
The Digital Theremin uses the on board accelerometer on the STM32F4 Discovery Evaluation Board to control the pitch and volume of the sine wave. The sound is output through the headphone jack via the DAC.
To keep a continuous sine wave running a wavetable is generated on start up which is processed into a DMA double buffer to be read by the DAC.
> Configured for the STM32F401C-DISCO board.
Dependencies
------------
```
brew tap ArmMbed/homebrew-formulae
brew install arm-none-eabi-gcc openocd stlink
```
Usage
-----
To build the project
```
make
```
To flash the board
```
make flash
```
To run gdb (-g -O0 must be added to CFLAGS)
```
make debug
```
> See the `.gdbinit` file for gdb scripting
If you get errors from gdb, try running
```
make kill
```