Our project concept involves the creation of an audio amplification circuit designed using the microcontroller from project 7 as the basis. The primary function is to use sound files (music or just noise) passed into the microcontroller. This is then translated into electrical signals and then passed to the audio amplifier circuit, which should filter or amplify the electrical signal based on the user's input into 4 different switches. The resulting signal is then outputted to the user as audio via a speaker introduced into the circuit design.
The following components are required for this project:
- Speaker (Analog Discovery Kit 2)
- Capacitors
- Resistors
- Switches
- Op-Amps
- Microcontroller (Raspberry Pi Pico or Any Mbed Supported Microcontroller)
- Power supply (battery or external source)
- Design and build the audio amplification circuit using the required components.
- Write code to translate sound files into electrical signals that can be passed to the audio amplifier circuit.
- Implement user input functionality to allow users to filter or amplify the electrical signal using switches.
- Integrate the speaker into the circuit design and output the resulting audio signal.
- Test and troubleshoot the circuit to ensure proper functionality.
To run the audio amplification circuit on a Raspberry Pi Pico, follow these steps:
- Install Thonny on your computer and connect the Raspberry Pi Pico to your computer via USB.
- Open Thonny and create a new Python file.
- Copy and paste the code from main.py into the Python file and save it.
- Upload the code to the Raspberry Pi Pico by clicking on the "Run" button in Thonny.
- Connect the required components to the Raspberry Pi Pico and turn on the power supply.
- Play a sound file on your computer and listen to the output from the speaker.
To run the audio amplification circuit on an mbed device, follow these steps:
- Create an account on the Arm() website and log in.
- Upload the song_demo folder to the website.
- Connect the required components to the mbed device.
- Run the code from the song_demo folder on the mbed device.
- Play a sound file on your computer and listen to the output from the speaker.
- Anirudh Oruganti
- Aidan Emmons
- Patrick Welch
- Anthony Perre
License
This project is licensed under the MIT License.