Skip to content

PUT-PTM/2019_GE-808

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GE-808

Overwiew

Guitar stompboxes prices for one start from around 100PLN, now why would we spend so much money if we could use our STM F407VG? The main goal concept of this project is to digitally modify a guitar signal and output it to audio jack.

Description

The guitar signal is sent through this circuit to ADC pin->PC3.
Next step for our wave is ADC conversion, thanks to it we get signal in values from 0 to 4095 with our analog 0 roughly in the middle of digital range. Modifying the points from ADC implementing various effects are possible. The last point is sending the modified data into I2S sound interface which was made easy thanks to MYaqoobEmbedded. In summary, the signal is carried in this fashion:

                     DMA_Transmission
                            ▼
Guitar--->Circuit--->ADC----*---->I2S--------->Audio jack

Where '*' is the point where the magic happens ADC interrupt allows to access the signal value and modify it.

The four buttons on our casing allow the player to hear his guitar with:

  • Echo,
  • Tremolo,
  • Distortion,
  • or a Clean sound.

Tools

The project was compiled with built-in gcc compiler included in System Workbench for STM32, and written in C/C++ language. .ioc file was generated with STMCubeMX 5.0.1. It bases on mechanisms listed below:

  • I2S-CS43L22
  • ADC Conversion
  • DMA transmission

How to run

Current version of the program is 1.0. Given you have the circuit and connected all the pins accordingly (based on .ioc file) and built the project everything is straight-forward:

  1. Connect usb port
  2. Compile and send to STM32
  3. Connect guitar jack into the socket
  4. Connect your earphones/speaker.

LEDs above the buttons indicate the effect currently working. Simply press the button to change currently used signal modification.

| LED colour |   Effect       |
-----------------------------
|   WHITE    |   Clean        |
|   RED      |   Distortion   |
|   BLUE     |   Tremolo      |
|   GREEN    |   Echo         |

How to compile

Simply import the project into Eclipse System Workbench for STM32 and use compile button or Ctrl+F11

Future improvement

There is no bugs to be found, additional changes could be:
  • Make effects connect with each other
  • Replacing LEDs for a Nokia or E-paper screen
  • Changing TL081 for more dedicated, sound-oriented op-amp
  • Potentiometer effect parameters adjusting
  • Stacking more effects

Attributions

Schematics for modyfing guitar signal based on this thread. Program uses I2S Audio Codec - CS43L22 functions acquired from here. DMA connection based on this video.

Video presentation

GE-808

Licence

This project is created on MIT License.

Credits

Rafał Ewiak & Wojciech Kulczak

The project was conducted during the Microprocessor Lab course held by the Institute of Control and Information Engineering, Poznan University of Technology. Supervisor: Tomasz Mańkowski

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages