I connected a headphone (32 ohms) to SMT32 F103RB board. There was a sound, but it's modulation was wierd, because to change frequency I had to change PWM prescaler, and pulse didn't do much (changed volume slightly and maybe frequency slightly). Can't even get low frequencies, there was "shooting" instead of bass. That's not how to use PWM to sound output, right? So i made this filter with resistor and capacitor. Resistor was around 25k ohm, capacitor not sure, maybe 15μF, because it's written on it μ15J63 and on other side SM 1J0. I couldn't get any sound from it when i connected it like that, so i connected capacitor differently (+ in place of - and - in place of +). Then i got very quiet, high frequency sound, only when prescaler is in 1-10 range. Again, only prescaler changes frequency, pulse only changes volume slightly. Tried different headphone, with 4 ohms, nothing changed. Changing resistor with a 1,8k ohms one (while still having 4 ohms headphone) made the sound a little louder, and now i can hear sound with a little higher prescaler than 10, it then creates quiet shooting sound.
Is this because of wrong resistor and\or capacitor values? Is this related to too low cut-off frequency? Or maybe low pass filter is wrongly made?
Is this because of wrong resistor and\or capacitor values? Is this related to too low cut-off frequency? Or maybe low pass filter is wrongly made?