electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
go to the radio page Live at electro-music.com radio 1 Please visit the chat
  host / artist show at your time
today> Sorry, no program tonight. Chez Mosc
 Forum index » DIY Hardware and Software » Lunettas - circuits inspired by Stanley Lunetta
Lunetta power supply noise - (edit: possibly solved)
Post new topic   Reply to topic Moderators: mosc
Page 1 of 1 [9 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
ianbax



Joined: Apr 20, 2022
Posts: 42
Location: Sheffield, UK

PostPosted: Wed Oct 12, 2022 4:26 am    Post subject: Lunetta power supply noise - (edit: possibly solved)
Subject description: Power supply propagating through mixer
Reply with quote  Mark this post and the followings unread

I've been playing with the active mixer design on the logic noise series

https://hackaday.com/2015/07/02/logic-noise-ping-pong-stereo-mixers-and-more/

which uses a 4069 (I'm actually using a 4049 because that's what I have but I don't think it makes much difference - happy to be corrected)

But I've found that - unlike passive mixing - as soon as I introduce this chip I start to get a low-level "chirping" digital noise which is my clock generator (4093 NAND oscillators with large capacitors) being amplified. It's very low level and not audible at all when the oscillators are on but in gaps between it's definitely there.

If I passively mix it disappears. So it's something to do with using the 4049 as a summing amplifier.

I know lunettas aren't hi-fi but it's really annoying to fall at this final hurdle. I know I can passively mix but it's not ideal if you have more than one oscillator going and they start to interact. Perhaps that's just the nature of it. Would a 'proper' op amp in place of the 4049 make a huge difference?

Is there a basic concept I'm missing - a bypass capacitor or something? Intuitively it feels like something to do with shared grounds like the switching noise is in the power supply? When I first built my power in I put a big capacitor across the rails to stop ripple but that doesn't seem to be having an effect.

Thanks in advance! Any help gratefully received.

Last edited by ianbax on Tue Oct 18, 2022 2:53 am; edited 1 time in total
Back to top
View user's profile Send private message
ianbax



Joined: Apr 20, 2022
Posts: 42
Location: Sheffield, UK

PostPosted: Thu Oct 13, 2022 1:57 am    Post subject: Reply with quote  Mark this post and the followings unread

So I did some tinkering with the circuit last night and may have solved my problem. Just in case anyone turns up this thread looking with a similar problem here's what I did.

I had a good read up on this thread:

https://electro-music.com/forum/topic-55327.html

and this page of schematics

http://www.all-electric.com/schematic/simp_mix.htm

(number 3 - simple active mixer with attenuation)

I intended to get an op amp at some point (noting long and good explanations of using or not using virtual ground on the thread) but tried it anyway with the 4049 I had to hand.

The clock noise I had bleeding through was cancelled once I re-inverted the output - trial and error but what's Nicolas Collins rule - if it works and doesn't smoke then don't worry if you don't understand it?

Guesses:

Some sort of phase cancellation going on?

Something to do with impedance? I did find that the cancellation was improved if the first inverter used 100k for feedback and input resistors and the second a pair of 1k resistors.
Back to top
View user's profile Send private message
ianbax



Joined: Apr 20, 2022
Posts: 42
Location: Sheffield, UK

PostPosted: Fri Oct 14, 2022 8:42 am    Post subject: Actually power supply to blame
Subject description: Alternative DC adapter suggestions?
Reply with quote  Mark this post and the followings unread

Wrong on all counts.

It turned the gain right up on my output mixer yesterday and there was the noise again.

So I started unplugging modules one by one - including the 'clock' module that I thought was the source of the noise.

The noise was still there but now settled down into a steady oscillation.

It's the (admittedly very cheap) switching AC-DC 5v power supply I'm using.

I still don't know why it's the mixer circuit that's set it off particularly - the gain involved I guess.

So now I have a load of questions about power supplies - what will be quietest?

I'm thinking a higher end AC-DC adapter - a power brick style one - at a higher voltage (9v, say) put through a LM7805 regulator. Do folks reckon that would cure the switching noise coming though? There's a couple of designs floating about with a protection diode and large cap to cut ripple. It seems straightforward.

Related to this - I read the LM7805 can supply about 1.5A max. How do I go about measuring - or at least estimating - how much each lunetta 'module' is consuming. I've got a case with room for 10 so I guess I need to be around 100ma per module to stay within bounds (annoying actually - my cheap DC adapter is rated for 3A which I thought would be plenty).

And before someone says it - I know 5v is the lower limit for CMOS BUT I've said before, I wanted to interface easily with Arduino further down the line, so it makes sense that my logic = high is 5v.
Back to top
View user's profile Send private message
zaphod betamax



Joined: Nov 27, 2020
Posts: 62
Location: sarnia

PostPosted: Fri Oct 14, 2022 10:30 am    Post subject: Reply with quote  Mark this post and the followings unread

Do you have power supply decoupling, both .01u and 1nf caps. (per chip)
Back to top
View user's profile Send private message
ianbax



Joined: Apr 20, 2022
Posts: 42
Location: Sheffield, UK

PostPosted: Fri Oct 14, 2022 11:18 am    Post subject: Reply with quote  Mark this post and the followings unread

zaphod betamax wrote:
Do you have power supply decoupling, both .01u and 1nf caps. (per chip)


Yes, I'd seen that advice on the starting out with lunetta thread. Although I went for 100nf across the pins.

I also have a large (100uf) across the rails on each module where the power goes in.

I don't think it's that though - I unplugged everything except my breadboarded mixer (this schematic #3 http://www.all-electric.com/schematic/simp_mix.htm) and the noise was still there.

I think it's just the crappy cheap switching power supply. I tried a 9v 'regulated' one that I bought for guitar pedals back in the day from Maplin (for UK readers) which is a lot more substantial. I don't think it's a transformer based supply (this was only like, 2008 or something) but just a lot better built evidently. No audible noise, even at crazy mic level gain on my mixer.

I also tried it with a 12v power brick I had and the result was the same. At high gain, a bit of noise - hum and hiss - but not an audible oscillation.

I think my first port of call will just be a better power supply - looking at this one https://thepihut.com/products/mean-well-5v-4a-20w-power-supply-gst25a05-p1j

Mean Well seem to be a good name?

Sorry for starting a long thread about a problem that turned out not to be what I thought. I can't see an option to close it or mark it as done or something.
Back to top
View user's profile Send private message
blue hell
Site Admin


Joined: Apr 03, 2004
Posts: 24423
Location: The Netherlands, Enschede
Audio files: 297
G2 patch files: 320

PostPosted: Fri Oct 14, 2022 1:14 pm    Post subject: Reply with quote  Mark this post and the followings unread

ianbax wrote:
Sorry for starting a long thread about a problem that turned out not to be what I thought. I can't see an option to close it or mark it as done or something.


No problem really .. but if you'd want so ... I think you can edit your first post in this thread (including the title of it)?

_________________
Jan
also .. could someone please turn down the thermostat a bit.
Posted Image, might have been reduced in size. Click Image to view fullscreen.
Back to top
View user's profile Send private message Visit poster's website
zaphod betamax



Joined: Nov 27, 2020
Posts: 62
Location: sarnia

PostPosted: Fri Oct 14, 2022 4:57 pm    Post subject: Reply with quote  Mark this post and the followings unread

I picked up some blowout 5V regulated PSUs for $1.50CAN,
took the chance and got 6 of them.

Switching and regulated, they are clean as a whistle (for switching PSUs)
and have barely any HF hash on my B&K scope.

When I put my CD4093BE oscillators on the breadboard and in oscillation,
they generate way more hash than the PSU.

As the hash is quite high frequency, I used a .1uF and .001uF and this really mitigates the hash I see on the scope.

The circuits I run are all 5V single sided, but with the decoupling caps it gets rid of the noise.

I agree to get a high quality switching power supply.
Back to top
View user's profile Send private message
ianbax



Joined: Apr 20, 2022
Posts: 42
Location: Sheffield, UK

PostPosted: Tue Oct 18, 2022 5:20 am    Post subject: Reply with quote  Mark this post and the followings unread

Thanks Zaphod - I'm going to be liberal with the capacitors on each module.

I bought the Mean Well supply linked above and it was marginally less noisy but definitely still there (at a lower frequency so even more noticeable to the ear!)

Final roll of the dice I dug out a 12v power brick (also marked switching but for whatever reason quieter) and breadboarded up a LM7805 to provide the steady 5v I need.

The problem there is I don't know what solved the problem! But I now have a quiet power line when nothing is sounding.

When I move off breadboard I'll probably follow these instructions https://www.youtube.com/watch?v=7vA24EC8d6s to add diode protection and filtering caps.
Back to top
View user's profile Send private message
Grumble



Joined: Nov 23, 2015
Posts: 1311
Location: Netherlands
Audio files: 30

PostPosted: Thu Oct 20, 2022 5:42 am    Post subject: Reply with quote  Mark this post and the followings unread

I have powered active audio monitors connected to my pc, and I use a glassfiber to decouple the inputs from my pc because they tend to hum/hiss caused by creeping current from the pc.
That worked remarkably well, until I rearranged the cables of my setup what reintroduced the noise.
It appeared that the usb supply for the glassfiber to DAC module caused the noise, so changing the usb out connector cured the noise problem.
So the lesson is: if you experience noise, changeing the usb connector can make a difference 😀👍🏻

_________________
my synth
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Moderators: mosc
Page 1 of 1 [9 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » Lunettas - circuits inspired by Stanley Lunetta
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use