Hello, for now, my circuit is
this.
What I would do is is a big loop with this :
A count which decreases each time the loop restart until it reaches 0 and when it reaches 0, the loop stops. I would be able to choose the number of loop in the user interface.
Actually, what should happen is :
I launch the program with a button, the count decrease of 1, on the program (the one I gave you an image above) the DTR button goes ON. Somethings will happens in an external circuit : the input from the microphone goes to 100mV (Actually, it's 5V but I will decrease it because I know that the maximum input for a microphone is something like 100mV). After some seconds, the input comeback to 0V and, at this time, I would that the DTR button goes OFF. Then, after x seconds that I can define in the user interface, a new loop starts and the count decrease of 1.
Just tell me if it's not clear, I know that my english is not really good.
Thanks.