techno-womble's instructables
Achievements
- techno-womble commented on techno-womble's instructable MiniMin - a Theremin Style Instrument From 6 Components
- techno-womble commented on techno-womble's instructable MiniMin - a Theremin Style Instrument From 6 ComponentsView Instructable »
That's odd. It compiles without errors for me. My only thought is that it might be device specific. I used an UNO - maybe other Arduinos are different? The serial port was used for testing but isn't used in the final version. You can safely delete line 75 of the sketch (Serial.begin(9600);)
- techno-womble commented on techno-womble's instructable MiniMin - a Theremin Style Instrument From 6 Components
Hi, the maximum voltage present on the circuit is 5v so any value will work. The capacitor isn't a critical component so feel free to experiment. If you connect the MiniMin to a small speaker you can leave the RC network and socket out entirely.
View Instructable »The maximum voltage present is 5V so any will work. The capacitor is not a critical component so feel free to experiment.
- techno-womble commented on techno-womble's instructable MiniMin - a Theremin Style Instrument From 6 ComponentsView Instructable »
Sorry about this but there is an error in the circuit diagram. It shows a polarized capacitor that is connected the wrong way round. My mistake. Connecting the side with stripe to GND should fix it. Alternatively, a non-polarized capacitor would work.The flashing LED is a good sign as the pitch sensor is connected to the same pin as the internal LED. I'll update the diagram.
- techno-womble's instructable MiniMin - a Theremin Style Instrument From 6 Components's weekly stats:
- techno-womble commented on techno-womble's instructable MiniMin - a Theremin Style Instrument From 6 ComponentsView Instructable »
Hi, the diagram is correct and the capacitor is connected between the PWM output and GND. The PWM output is a string of digital pulses. If the pulses are high enough frequency they will charge the capacitor and give a rising voltage on the output. If the pulses are of low frequency the capacitor will discharge and the output voltage falls. By varying the pulse frequency (or pulsewidth) a waveform can be generated. This Instructable goes into much morte details https://www.instructables.com/Arduino-RC-Circui...
- techno-womble commented on techno-womble's instructable MiniMin - a Theremin Style Instrument From 6 Components
Once the zip file has been downloaded it must be added to the Arduino IDE. From the top menu choose Sketch -> Include library -> Add.ZIP library. Hope this helps
Beat me to it. Thanks!
View Instructable »Thanks for spotting the error in the socket wiring! The resistor/capacitor network acts as an integrator to smooth the rapid pulses from pin 9 into an analogue audio waveform. The values of 270 ohm and 100nF (0.1uF) are standard for this kind of application.
- techno-womble commented on techno-womble's instructable MiniMin - a Theremin Style Instrument From 6 Components
Any audio socket will do. Just as long as you have the correct cable to connect to an amplifier.
View Instructable »Thanks for the comments. Good point about the libraries. I'll add the URLs to the code
Thanks for building it - great to see another one! If you want to make real-time changes to the sound you will need to put the code in the updateControl function (starting line 95). This is the main loop when using the Mozzi library. It is called 128 times per second as defined by CONTROL_RATE (line 20). Hope this helps.