so almost half a year ago, I made this Arduino SYNTH
https://www.hackster.io/Oniichan_is_ded/arduino-atari-punk-synth-2934e8
by using the Mozzi library, which is basically a MIDI audio library for the Arduino Platform.
in this post, I have set up one of its example setup which is an LDR-based theremin, which basically is a pulse modulation setup that utilizes LDR as a Sensor. to sense the light intensity and modulates sound according to that.
Also, thanks to utsource.net to provide components and support for this project, you can check them out if you need to buy cheap and economic electronic components!
MATERIAL REQUIRED- Arduino MICRO
- LDR
- 10K Resistor 1/4W
- Speaker
- Audio Amp (Optional)
- breadboard
- jumper wires
SETTINGUP
you can download the Mozzi library from here- https://sensorium.github.io/Mozzi/
the unzip it in the library folder and that's all you need to do.
I used an 8Ohms speaker connected with a PAM8403 audio AMP which is kind of important here because the Arduino's pin cannot output loud sounds because of its low forward current.
if you don't have to then don't worry, just hook a speaker directly with a capacitor in series or make your own amp with NPN Transistor.
Just Connect Speaker Output to D9 of your Arduino
one end of LDR to pin A0 with a 10K Resistance in series with Ground, another end of LDR to 5V.
Upload the given code and power the setup up!
RESULTWatch the video-
This setup modulates sound according to light intensity, so I used a LAMP as a light source to change the light intensity to get different sounds.
CREEPY SOUND
FURTHERSCOPE/IMPROVEMENT
This doesn't work as an actual theremin but its a really cool concept if you just want to generate some creepy sound.
so I guess in the future I will build a proper theremin which is not really a hard task.
Anyways check out mozzi library, leave a comment if you run into some trouble!
Peace
Comments