Kommentar: Einfügen von HTML im Kommentar: Link einfügen: <a href="LINKURL" target="_blank">LINKTITEL</a> Bild einfügen: <img src="BILDURL"> Text formatieren: <b>fetter Text</b> <i>kursiver Text</i> <u>unterstrichener Text</u> Kombinationen sind auch möglich z.B.: <b><i>fetter & kursiver Text</i></b> C Quellcode formatieren: <code>Quellcode</code> BASIC Quellcode formatieren: <basic>Quellcode</basic> (Innerhalb eines Quellcodeabschnitts ist kein html möglich.) Wichtig: Bitte mache Zeilenumbrüche, bevor Du am rechten Rand des Eingabefeldes ankommst ! -> I > Hi all, > > I wrote a program that enables the Pro-Bot to perform different actions when I whistle. The program > determines the pitch of my whistle by FFT of the microphone signal and subsequent detection of the > highest peak in the sound spectrum. > However, the program works only when the PWM signal for the motor driver is off because the > microphone amplifier picks up this 7.2 kHz signal which is much stronger than my whistle. > The solution would be to filter the microphone signal but this would be much easier when the PWM > signal would have a higher frequency. E.g. with a 20 kHz PWM signal, a 6 dB/octave filter with a > corner frequency of 5 kHz would probably suffice. This can easily be realized with a single > condensor at the input of the microphone amplifier. > > My question is: is there any reason why increasing the PWM frequency for the motor driver would > not be a good idea? And how high can one go? > > (You may anwer in German.) > > Regards, > Pepe >