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
poster
 Forum index » DIY Hardware and Software
Twin-T oscillator
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 1 of 2 [28 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Goto page: 1, 2 Next
Author Message
alkopop79



Joined: Aug 21, 2008
Posts: 52
Location: London

PostPosted: Sat Apr 13, 2013 5:15 am    Post subject: Twin-T oscillator
Subject description: drum synth oscillator
Reply with quote  Mark this post and the followings unread

I'm trying to build a twin-T oscillator for synthesising drum sounds. The LM741 heats up pretty quickly and the circuit hardly oscillates even when the feedback is at 100 per cent. Even with an LM386 amp I hardly get anything (though I can see some oscillation on the scope). The circuit gets 10ms 5V pulses from an Arduino. Does the TL071/2 run from single supply? Can it replace the LM741?

[img]http://www.flickr.com/photos/alkopop79/8644385451/[/img]


twin_t.png
 Description:
 Filesize:  40.55 KB
 Viewed:  482 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

twin_t.png


Back to top
View user's profile Send private message
elmegil



Joined: Mar 20, 2012
Posts: 2179
Location: Chicago
Audio files: 16

PostPosted: Sat Apr 13, 2013 6:27 am    Post subject: Reply with quote  Mark this post and the followings unread

Have you checked to see if the chip is bad, by putting in another one?

TL072 does not operate single supply. LM324 does, but it's a quad chip. I believe LM321 would be the single amp version, but I've not used them.
Back to top
View user's profile Send private message
blue hell
Site Admin


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

PostPosted: Sat Apr 13, 2013 6:33 am    Post subject: Reply with quote  Mark this post and the followings unread

welcome alkopop79

The speaker ... I'd not directly drive a speaker from an opamp .. if you want a speaker in the box make a separate power amp for 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
JovianPyx



Joined: Nov 20, 2007
Posts: 1988
Location: West Red Spot, Jupiter
Audio files: 224

PostPosted: Sat Apr 13, 2013 8:15 am    Post subject: Reply with quote  Mark this post and the followings unread

As Blue Hell said - the speaker - it's a very low impedance load and could easily cause the problem. As Blue suggests, better to run the speaker from a separate amplifier.
_________________
FPGA, dsPIC and Fatman Synth Stuff

Time flies like a banana.
Fruit flies when you're having fun.
BTW, Do these genes make my ass look fat?
corruptio optimi pessima
Back to top
View user's profile Send private message Visit poster's website
richardc64



Joined: Jun 01, 2006
Posts: 679
Location: NYC
Audio files: 26

PostPosted: Sat Apr 13, 2013 8:56 am    Post subject: Reply with quote  Mark this post and the followings unread

It still wouldn't work.

For single supply, almost any op amp would work in this circuit IF the (+) input is biased to 1/2V+. (Which some mistakenly call a virtual ground.) Triggers should then be capacitor-coupled in.

_________________
Revenge is a dish best served with a fork... to the eye
Back to top
View user's profile Send private message Visit poster's website
JovianPyx



Joined: Nov 20, 2007
Posts: 1988
Location: West Red Spot, Jupiter
Audio files: 224

PostPosted: Sat Apr 13, 2013 9:21 am    Post subject: Reply with quote  Mark this post and the followings unread

It's possible that the signal generator symbol might be intended to account for the required bias. I can't really tell for the symbol in the circle.

However, the signal generator also indicates 500 mHz which is .5 Hz. I suppose that this filter is intended to operate at very low frequencies?

_________________
FPGA, dsPIC and Fatman Synth Stuff

Time flies like a banana.
Fruit flies when you're having fun.
BTW, Do these genes make my ass look fat?
corruptio optimi pessima
Back to top
View user's profile Send private message Visit poster's website
Scott Stites
Janitor
Janitor


Joined: Dec 23, 2005
Posts: 4127
Location: Mount Hope, KS USA
Audio files: 96

PostPosted: Sat Apr 13, 2013 9:57 am    Post subject: Reply with quote  Mark this post and the followings unread

JovianPyx wrote:
It's possible that the signal generator symbol might be intended to account for the required bias. I can't really tell for the symbol in the circle.

However, the signal generator also indicates 500 mHz which is .5 Hz. I suppose that this filter is intended to operate at very low frequencies?


Looks to me that the signal generator is there to provide input pulses at a 0.5 Hz rate (as an illustration, I guess, of what it takes to ring the thing).

Like mentioned before, if it's single supply, it would need an artificial ground (1/2 Vcc) and (again) drive the speaker from a second amplifier.

_________________
My Site
Back to top
View user's profile Send private message
alkopop79



Joined: Aug 21, 2008
Posts: 52
Location: London

PostPosted: Sat Apr 13, 2013 12:31 pm    Post subject: Reply with quote  Mark this post and the followings unread

Thanks for all the replies! I did further simulation and indeed, without virtual ground it won't work. THe circuit can be found here:


https://www.circuitlab.com/circuit/g52648/twin-t-with-trigger/

You can open it in the editor and play with it. The time domain simulation will even draw a nice kick drum. Eventually I found a sail splitter circuit here:

http://tangentsoft.net/elec/bitmaps/vgrounds/rdiv.png


However, when I build the circuit on the breadboard, it doesn't work. With 9V DC supply instead of getting 4.5V, 0V and -4.5V I get 9V, 4.5V and 0V. It seems as if the caps weren't even in the circuit. I checked the polarity and the value of the caps and even used different ones. Still don't get any virtual ground, the circuit acts as a voltage divider. A photo of the breadboard circuit:

http://www.flickr.com/photos/alkopop79/8646491414/

It's beyond me why doesn't it work. Any ideas?
Back to top
View user's profile Send private message
elmegil



Joined: Mar 20, 2012
Posts: 2179
Location: Chicago
Audio files: 16

PostPosted: Sat Apr 13, 2013 12:46 pm    Post subject: Reply with quote  Mark this post and the followings unread

Are you using the "virtual ground" (yes I know I'm abusing the term) as your reference to see +/- 4.5V? If you're using "real ground" then what you describe is exactly what you would expect, yes?
Back to top
View user's profile Send private message
alkopop79



Joined: Aug 21, 2008
Posts: 52
Location: London

PostPosted: Sat Apr 13, 2013 1:13 pm    Post subject: Reply with quote  Mark this post and the followings unread

It's working. I was a dumbass: the ground of the multimeter has to go to the junction, the middle ground of the circuit. Indeed, from a 9V supply I get 4.5V, 0V and -4.5V. I changed the 741 to a TL072 and it works! So far I've only checked it with an oscilloscope and it very much looks like an analog drum!
Back to top
View user's profile Send private message
alkopop79



Joined: Aug 21, 2008
Posts: 52
Location: London

PostPosted: Sat Apr 13, 2013 1:13 pm    Post subject: Reply with quote  Mark this post and the followings unread

elmegil wrote:
Are you using the "virtual ground" (yes I know I'm abusing the term) as your reference to see +/- 4.5V? If you're using "real ground" then what you describe is exactly what you would expect, yes?



Erm, yes. Embarassed
Back to top
View user's profile Send private message
elmegil



Joined: Mar 20, 2012
Posts: 2179
Location: Chicago
Audio files: 16

PostPosted: Sat Apr 13, 2013 1:45 pm    Post subject: Reply with quote  Mark this post and the followings unread

I've done even more foolish things and even owned up to them here, so don't feel too bad Very Happy
Back to top
View user's profile Send private message
alkopop79



Joined: Aug 21, 2008
Posts: 52
Location: London

PostPosted: Sat Apr 13, 2013 2:19 pm    Post subject: Reply with quote  Mark this post and the followings unread

Tried it with the amp but unfortunately it distorts the crap out of the signal.
Back to top
View user's profile Send private message
alkopop79



Joined: Aug 21, 2008
Posts: 52
Location: London

PostPosted: Sat Apr 13, 2013 2:20 pm    Post subject: Reply with quote  Mark this post and the followings unread

alkopop79 wrote:
Tried it with the amp but unfortunately it distorts the crap out of the signal.


Failed to mention, it's an LM386.
Back to top
View user's profile Send private message
alkopop79



Joined: Aug 21, 2008
Posts: 52
Location: London

PostPosted: Sat Apr 13, 2013 3:01 pm    Post subject: Reply with quote  Mark this post and the followings unread

Is it possible that the amp distorts because it gets -4.5V to 4.5V signal? It's a single supply amp though.
Back to top
View user's profile Send private message
Scott Stites
Janitor
Janitor


Joined: Dec 23, 2005
Posts: 4127
Location: Mount Hope, KS USA
Audio files: 96

PostPosted: Sat Apr 13, 2013 5:28 pm    Post subject: Reply with quote  Mark this post and the followings unread

alkopop79 wrote:
Is it possible that the amp distorts because it gets -4.5V to 4.5V signal? It's a single supply amp though.


Well - I have yet to play with one of those buggers, but, according to the data sheet, it's a bit more than possible. Data sheet says absolute maximum input voltage is +/-0.4V.

Also, if you're powering the op amp from single supply, I think you will want to couple through a capacitor to the LM386 to get rid of any voltage offset.

_________________
My Site
Back to top
View user's profile Send private message
Thomas_Henry



Joined: Jul 24, 2009
Posts: 170
Location: N. Mankato, MN
Audio files: 3

PostPosted: Sat Apr 13, 2013 6:36 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hi Gang,

My suggestion would be to jettison the op-amp altogether and use a transistor as the gain element for the Twin-Tee. That's exactly what I did for the Sirius Metronome published in Nuts & Volts in January. I too used the 386 for the output stage. It all worked out quite nicely with a very satisfying woodblock sound.

http://www.nutsvolts.com/forums.html?/magazine/article/january2013_Henry

Click the mouse icon to preview the article.

Thomas Henry
Back to top
View user's profile Send private message
alkopop79



Joined: Aug 21, 2008
Posts: 52
Location: London

PostPosted: Sat Apr 13, 2013 8:11 pm    Post subject: Reply with quote  Mark this post and the followings unread

Thanks, neat circuit! I will give it a try! What's the difference between the LM380 and the LM386?
Back to top
View user's profile Send private message
-minus-



Joined: Oct 26, 2008
Posts: 787

Audio files: 13

PostPosted: Sat Apr 13, 2013 9:27 pm    Post subject: Reply with quote  Mark this post and the followings unread

Why is 'virtual ground' abusing the term? Can someone explain this?
Back to top
View user's profile Send private message
elmegil



Joined: Mar 20, 2012
Posts: 2179
Location: Chicago
Audio files: 16

PostPosted: Sat Apr 13, 2013 10:41 pm    Post subject: Reply with quote  Mark this post and the followings unread

I believe (though Richard can correct me if I misunderstood his comment) that it's because the true "virtual ground" is when you hold one of your op amp inputs at ground and it forces the other one to also be at ground potential even though they're not shorted.
Back to top
View user's profile Send private message
Scott Stites
Janitor
Janitor


Joined: Dec 23, 2005
Posts: 4127
Location: Mount Hope, KS USA
Audio files: 96

PostPosted: Sun Apr 14, 2013 1:16 pm    Post subject: Reply with quote  Mark this post and the followings unread

I actually decided to subscribe to N&V because I know TH has actually published a string of articles there.
_________________
My Site
Back to top
View user's profile Send private message
alkopop79



Joined: Aug 21, 2008
Posts: 52
Location: London

PostPosted: Mon Apr 15, 2013 9:51 am    Post subject: Reply with quote  Mark this post and the followings unread

I've made a tiny workbench split power supply on a piece of strip board with a plug for the adapter. Super handy!

https://plus.google.com/photos/101922570428775677855/albums/5867116777743457841/5867116927902916626?banner=pwa

The supply has pins for GND, V+, split V+, midpoint and V-.
Back to top
View user's profile Send private message
alkopop79



Joined: Aug 21, 2008
Posts: 52
Location: London

PostPosted: Fri Apr 26, 2013 11:20 pm    Post subject: Reply with quote  Mark this post and the followings unread

Friends,

the circuit works! It's pretty amazing, I get massive kicks on the output. However the circuit audibly 'buzzes' when I touch a pot. Also, the it tends to distort at higher frequencies and it's pretty noisy. Any ideas how to fix that?

https://soundcloud.com/alkopop79/twin-t-percussion-osc
Back to top
View user's profile Send private message
sonic



Joined: Dec 02, 2010
Posts: 106
Location: Victoria BC

PostPosted: Thu Aug 22, 2013 7:24 pm    Post subject: Reply with quote  Mark this post and the followings unread

I hope nobody objects to me resurrecting this thread. alkopop79 I tried to build your circuit but I'm having some problems and I wonder if anyone can give me some pointers. I used LM324N instead of LM741. I also had no 3.9M resistors and I used 3.3M. Apart from that I think I used everything the same. I get a basic kick sound but the Twin-T part seems to do nothing to filter the signal. No change when I tweak the pot, or even if I remove those parts of the circuit.

I guess either the substitutions I made are no good, or I have made some kind of rookie mistake in the build. The problem is that I don't understand how the current should be flowing and what I should be testing for in different parts of the circuit in order to debug.

The 555 trigger circuit is on the left side of the breadboard. On the right there is the 'virtual ground' circuit (yes yes I know. grumble grumble) at the top. Underneath the LM324N is the non-functioning Twin-T section. The main power supply is a 9V battery. Perhaps I should be building and studying a simpler RC filter in order to understand better what the circuit should be doing.

I've been kicking around here for a while but took an extended hiatus from electronics and am still to all intents and purposes still a total newb. Any assistance at all would be greatly appreciated. I am not necessarily fixated on this particular circuit. My plan is to make some kind of crude drum machine and I have a shedload of LM324N. Twin-T seems like a great way to make a kick sound. I will make a new thread for my project once it starts to take shape.


bpsXxaQ.jpg
 Description:
 Filesize:  649.17 KB
 Viewed:  166 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

bpsXxaQ.jpg


Back to top
View user's profile Send private message
elmegil



Joined: Mar 20, 2012
Posts: 2179
Location: Chicago
Audio files: 16

PostPosted: Thu Aug 22, 2013 9:44 pm    Post subject: Reply with quote  Mark this post and the followings unread

I'm far away from anything to test with right now, but I'd expect the 3.3 to have more impact than the op amp. Do you have any 560k resistors? Put one in series and see if it improves anything, that should get you close to 3.8M....
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 1 of 2 [28 Posts]
View unread posts
View new posts in the last week
Goto page: 1, 2 Next
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software
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