What Code Should I Use to Create a Single Pulse Wave on my Arduino Uno? Answered
I am in need of some code for my Arduino Uno. I searched around online for code that can perform pulse width modulation, but nothing I have found completely suits my needs. What kind of code should I use to generate a short blip of voltage which will quickly subside? More details, including what I am using the Arduino for, are shown below.
Upon the press of a tact switch, I need the arduino to emit a single pulse wave with an extremely low pulse width. I am using this as a trigger for a DIY audio project. Specifically, I am using this to trigger an anaolg drum machine circuit I found online. After much experimentation, I have found that triggering the drum circuit with an ordinary square/pulse wave really results in two different sounds: one which is created when voltage is applied and one which is generated when it is taken away. The sound I need is the one created when voltage is taken away, therefore I need a very fast voltage spike which will quickly return to zero voltage. This way, the other unwanted sound is less apparent.
Most of that last paragraph was extra info, but I figured that I should supply all of the information I have. Any help will be greatly appreciated, as I am totally new to the Arduino and am not sure where to begin in terms of coding.