Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 18:48 25 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Low Pass Filter again, a question.

Author Message
Bleep
Guru

Joined: 09/01/2022
Location: United Kingdom
Posts: 509
Posted: 06:03pm 22 Apr 2024
Copy link to clipboard 
Print this post

Hi Harm,
Ref. your LPF design below. I'm building a portable MMBasic computer and want to have a jack output with sound, I intend to join the L & R channels to give mono and feed to both the L & R connections of the jack, so L & R will be the same mono signal.
However due to space and other considerations, I don't want to use 2 LPF, is it reasonable to simply take the 2 PWM outputs, both through 220 Ohm resistors, feeding into one of your filter design and give problem free results? beat frequencies or anything else?
I have tried it and it seems to be fine, to my ears, but is there a better way? different resistor values? whatever you and your Spice model suggests? :-)
Thanks for any help.
Regards, Kevin.

  Volhout said  
This is what my simulation shows, and it's pass band (the audio you should hear) has been verified by measuring frequency response using the PLAY TONE.
Note this filter is 14kHz (not 20kHz) since that was giving the best results for me.

The 44kHz is really far down in my test setup, and my 2 Picomite VGA 1.7 boards.
The 1k termination is not dominant, you still get acceptable frequency response when terminating with the input of an audio amplifier (10k or 50k) and with a headset (600ohm or 32 ohm).


 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4226
Posted: 06:41pm 22 Apr 2024
Copy link to clipboard 
Print this post

Hi Kevin,

If anything than use L and R through 470 ohm resistors (not 220 ohm) to the one single filter stage. That will work since the 2 PWM channels work synchronously (they switch simultaneous on one of the edges of the PWM).

But I cannot predict what will happen if you feed this mono system with so called "spatial audio". It is used in some 80's music, where L and R are in counter phase. In real stereo this sounds a bit like audio being ultra wide (no mono component, only extreme left and right). In real mono, you would get almost silence. But in this digital mixing, you will still get a mono sound. And maybe that is what you actually want.
If you are interested in music playing on this device. For MMbasic sound, this is not straightforward to do (anymore) since Peter took out that functionality.

Regards,

Volhout
PicomiteVGA PETSCII ROBOTS
 
Bleep
Guru

Joined: 09/01/2022
Location: United Kingdom
Posts: 509
Posted: 07:38pm 22 Apr 2024
Copy link to clipboard 
Print this post

HI Harm,
Which functionality is that, I'm currently able to play compressed WAV music files ok? with Play wav filename, this is on a LCD version, not VGA.
Ok great, I'll use 2x 470 Ohm resistors driving one filter, I'm not worried about "spatial stereo" ;-)
Regards Kevin.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6783
Posted: 09:10am 23 Apr 2024
Copy link to clipboard 
Print this post

The function of playing in mono. Using mixing resistors should be fine - the PWM outputs are always a stereo pair. I suppose that ideally you should extract the audio via filters before mixing it, but if you are trying to keep board space down that won't be an option.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024