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 
 Forum index » DIY Hardware and Software
simple saw to triangle shaper
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 1 of 1 [17 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
numbertalk



Joined: May 05, 2008
Posts: 992
Location: Austin, TX
Audio files: 5

PostPosted: Wed Dec 03, 2008 9:52 am    Post subject: simple saw to triangle shaper Reply with quote  Mark this post and the followings unread

In another thread someone was looking for a triangle-to-saw converter and someone mistakenly posted a saw-to-triangle circuit, which was actually a snippet from a larger circuit (the Obesifier - http://home.comcast.net/~sbernardi/elec/og2/og3_obesifier.html - see page 3). What I'm wondering is, if I just wanted to use the saw-to-tri converter circuit for my own purposes, looking at the diagram I'm attaching, I could eliminate R36A & R8, keep the rest of this snippet of circuit and get a triangle wave from the output of the TL71, right?

Another question is I see the Obesifier expects a 10Vp-p saw input - looking at the component values here would this sub-circuit work just as well with smaller saw waves?


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

circuit.jpg


Back to top
View user's profile Send private message
Dave Kendall



Joined: May 26, 2007
Posts: 421
Location: England
Audio files: 3

PostPosted: Wed Dec 03, 2008 3:21 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hi,

Well, here's a funny thing - I'm looking for the same thing, to drive saw animators in some experimenting........ small world isn't it? Smile

I found this this while googling away. It's dead simple and low parts count.
I might only need one OPA, i.e. the first + second stages, as I want to turn a 0V to+7V (ish) saw into a 0V to +5V tri.

Haven't tried it yet, but I might get around to breadboarding it tonight - fingers crossed.......

cheers,
Dave
Back to top
View user's profile Send private message
richardc64



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

PostPosted: Wed Dec 03, 2008 3:52 pm    Post subject: Re: simple saw to triangle shaper Reply with quote  Mark this post and the followings unread

numbertalk wrote:
...someone mistakenly posted a saw-to-triangle circuit...


Gee, who could've made such a mistake? Laughing

But yeah, R36A and R8 are part of the rest of the Obesifier and aren't needed for triangle conversion. I don't know how it would behave with a lower level sawtooth In.

Here's another, even simpler circuit. I don't know how good it is.


saw2tri2.gif
 Description:
 Filesize:  3.85 KB
 Viewed:  28692 Time(s)

saw2tri2.gif



_________________
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
yusynth



Joined: Nov 24, 2005
Posts: 1314
Location: France

PostPosted: Thu Dec 04, 2008 8:40 am    Post subject: Reply with quote  Mark this post and the followings unread

richardc64: You'd gain in replacing the 1N4148 by a Schottky diode with a low direct voltage drop.
_________________
Yves
Back to top
View user's profile Send private message Visit poster's website
numbertalk



Joined: May 05, 2008
Posts: 992
Location: Austin, TX
Audio files: 5

PostPosted: Thu Dec 04, 2008 9:12 am    Post subject: Reply with quote  Mark this post and the followings unread

Thanks for all the info. Some things to breadboard when I'm ready. Dave, how did your breadboarding go?

I actually kind of took this and ran with it from a posting ericcoleridge made on the thread about AndyR1960's ARP Odyssey VCO circuit, (http://electro-music.com/forum/topic-28604-125.html) so I'd be adding it to that, as I would also find a triangle wave useful in LFO mode. So not only will it not be a 10Vp-p wave but it also won't be centered around 0V. This is all fine - I can add DC offset and amplify the signal from the VCO output with an external module if necessary, I just hope I don't have to do that before feeding it to one of these wave shaper circuits. It would be nice to simply tap off of the saw outs and feed those into a couple these simple circuits and add a tri outputs to the panel from there.
Back to top
View user's profile Send private message
numbertalk



Joined: May 05, 2008
Posts: 992
Location: Austin, TX
Audio files: 5

PostPosted: Thu Dec 04, 2008 9:22 am    Post subject: Reply with quote  Mark this post and the followings unread

Yves, do you have a part # you'd recommend for this diode?

Thanks!

yusson wrote:
richardc64: You'd gain in replacing the 1N4148 by a Schottky diode with a low direct voltage drop.
Back to top
View user's profile Send private message
yusynth



Joined: Nov 24, 2005
Posts: 1314
Location: France

PostPosted: Thu Dec 04, 2008 10:03 am    Post subject: Reply with quote  Mark this post and the followings unread

numbertalk wrote:
Yves, do you have a part # you'd recommend for this diode?

A 1N5711 or a BAT41 or a BAT83 should do the trick !
You may also use a germanium diode AA117, AA119, OA95...

_________________
Yves
Back to top
View user's profile Send private message Visit poster's website
numbertalk



Joined: May 05, 2008
Posts: 992
Location: Austin, TX
Audio files: 5

PostPosted: Thu Dec 04, 2008 10:09 am    Post subject: Reply with quote  Mark this post and the followings unread

Thanks!

quote="yusson"]
numbertalk wrote:
Yves, do you have a part # you'd recommend for this diode?

A 1N5711 or a BAT41 or a BAT83 should do the trick !
You may also use a germanium diode AA117, AA119, OA95...[/quote]
Back to top
View user's profile Send private message
Dave Kendall



Joined: May 26, 2007
Posts: 421
Location: England
Audio files: 3

PostPosted: Wed Dec 31, 2008 8:19 am    Post subject:
Subject description: Edited with new info
Reply with quote  Mark this post and the followings unread

Hi all.

I finally got around to wiring up the circuit below. It works well, but the input saw needs to be *exactly* centred around 0V for it to work glitch-free. The saw I was working with is a bit odd (+14V to +5V !), so I used an offset/scaler to centre it and bring it up to±5V.

The glitch filter part of the circuit removes a tiny spike at the top of the triangle. The output buffer is essential, as any load distorts the waveform. It can still be trimmed out, but a buffer is a good idea anyway.

Even with careful trimming of the offset, there is still a slight "flat top" on the triangle, which I couldn't trim out.

(PS my camera is up the swanee, so no scope traces for now....) Smile

cheers,
Dave
(edited to correct info on the glitch filter)


sawtotri.gif
 Description:
 Filesize:  4.09 KB
 Viewed:  799 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

sawtotri.gif


Back to top
View user's profile Send private message
Dave Kendall



Joined: May 26, 2007
Posts: 421
Location: England
Audio files: 3

PostPosted: Fri Jan 02, 2009 2:34 pm    Post subject:
Subject description: Adapted Flexible saw-to-tri circuit.
Reply with quote  Mark this post and the followings unread

Hi All.

I tested both circuits posted in the thread - they are both extremely sensitive to offsets, and both require a saw centred around 0V as the input. I added an inverting offset trimmer to deal with this.
I couldn't trim out the "flat top" from the first circuit, and the second one has a nicer triangle, and only uses 2 OP amp stages instead of 3 (with the added offset) so I tested an adapted circuit based on the second one.
Originally its output was fully negative going only, so again an offset was added.

Advantages: it will take a positive-going saw, or one centred around 0V, (and probably a negative-only saw) it has variable gain, and will output a Triangle anywhere from negative going only, to centred, to positive going, depending on the setting of T4.
Disadvantages: The trimmers pretty much all interact, and to set it up, you really need an oscilloscope....

Put the scope on the output of the left OP amp, and set T1 so that the saw is centred around 0V. Then set T2 to give the desired gain - say, a 10V swing. (note; after testing with an EFM VCO4E saw (0V to +7.5V), T2 in the prototype was replaced with a 150K resistor.)
Then put the scope on the main output, and adjust T3 to get a nice triangle. If the triangle is lopsided, with one ramp longer than the other, adjust T1 and then T3 again until it's symmetrical. The setting of T1 is crucial to getting rid of a glitch, that shows up as a "step" or "spike" at the bottom of the triangle.
T4 has a very small effect on the triangle symmetry/glitch, so set that to get the desired offset (centred or positive), and then finally re-trim T1/T3 if necessary.
To cut down on the number of trimmers, you could install a temporary pot or trimmer in place of T4, trim it for the desired offset, and then replace with a pair of fixed resistors. T1/T3 will probably need a tiny final tweak.

This was tested by component substitution on perfboard, using ±15V, and seemed stable after leaving it on for several hours. Opamps used were TL072.

If anyone has spotted anything I missed, or has any suggestions, please post!

Enjoy, and Happy New Year to you all. Smile

cheers,
Dave
(edited for typos)


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

NEW_SAW_to_TRI.jpg



Last edited by Dave Kendall on Fri Jan 02, 2009 4:58 pm; edited 2 times in total
Back to top
View user's profile Send private message
ericcoleridge



Joined: Jan 16, 2007
Posts: 889
Location: NYC

PostPosted: Fri Jan 02, 2009 3:10 pm    Post subject: Reply with quote  Mark this post and the followings unread

I don't think this one has been posted yet, so here goes:

CGS VCO (with Voltage Controlled Saw to Tri + Sine)

This circuit, from the CGS VCO (lower left corner of schem) has voltage control over shape/symetry and uses just one op-amp (plus 1 op-amp for Sine conversion). It works independent of the VCO core; I've tested it on it's own, and it works great.
Back to top
View user's profile Send private message
Dave Kendall



Joined: May 26, 2007
Posts: 421
Location: England
Audio files: 3

PostPosted: Fri Jan 02, 2009 6:03 pm    Post subject: Reply with quote  Mark this post and the followings unread

Quote:
I don't think this one has been posted yet, so here goes:


Interesting..... it looks very like the upper half of one stage of the Serge triple waveshaper. http://www.cgs.synth.net/synth/serge/tws.html

I've got some EFM WAV 1Bs that are *almost* identical in their waveshaping sections. link to docs

Both use an LM3900 quad Norton amp.
Eric - did you try subbing regular TL07xs, or stick with the LM3900?

cheers,
Dave
Back to top
View user's profile Send private message
ericcoleridge



Joined: Jan 16, 2007
Posts: 889
Location: NYC

PostPosted: Fri Jan 02, 2009 7:27 pm    Post subject: Reply with quote  Mark this post and the followings unread

Very Happy
Last edited by ericcoleridge on Fri Jan 02, 2009 7:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
ericcoleridge



Joined: Jan 16, 2007
Posts: 889
Location: NYC

PostPosted: Fri Jan 02, 2009 7:27 pm    Post subject: Reply with quote  Mark this post and the followings unread

Dave Kendall wrote:

Interesting..... it looks very like the upper half of one stage of the Serge triple waveshaper. http://www.cgs.synth.net/synth/serge/tws.html


Not surprising, considering many of Ken Stones projects are related to Serge circuits.

Dave Kendall wrote:

Both use an LM3900 quad Norton amp.
Eric - did you try subbing regular TL07xs, or stick with the LM3900?


This seems to be a very popular IC in Serge circuits, the 3900.

I didn't try anything besides the 3900.
Back to top
View user's profile Send private message
numbertalk



Joined: May 05, 2008
Posts: 992
Location: Austin, TX
Audio files: 5

PostPosted: Sun Jan 18, 2009 6:29 pm    Post subject: Reply with quote  Mark this post and the followings unread

I emailed with Ken Stone about this part of his VCO circuit and he suggested using a precision rectifier circuit for this and approved of this one:

http://hem.bredband.net/bersyn/VCO/Saw%20to%20tri-sin%20W.gif

For those of us who lack protoboarding skills there's even a PCB image:

http://hem.bredband.net/bersyn/VCO/Saw2tri-sine_L.pdf

And component placement:

http://hem.bredband.net/bersyn/VCO/Saw2tri-sine_K.pdf

It's a quad board but you could obviously trim your P-n-P and etch a single circuit.

Here's further description of this circuit from his web site:

I developed this circuit, with the Moog 921B VCO as inspiration. It uses the classic one-transistor approach for folding the sawtooth wave into a triangle wave. But I added a special RC-network to cancel the glitch that comes from the less-than-instant reset time of the saw wave. I also replaced the emitter follower transistor with an op-amp buffer. This was necessary to get the output voltage up to 10 volts peak to peak. In addition, the circuit was adapted for +-15 volts supply, instead of Moog's +12 and -6.
The triangle to sine converter consists of two transistor pairs from a CA3046 array. Properly adjusted, this gives a very good sine wave. It sounds much cleaner than the diode-limiters that many synths use to approximate a sine wave. Again the emitter follower is replaced by an op-amp.

Last edited by numbertalk on Mon Feb 09, 2009 6:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
JovianPyx



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

PostPosted: Mon Jan 26, 2009 3:37 pm    Post subject: Reply with quote  Mark this post and the followings unread

http://home1.gte.net/res0658s/fatman/saw_to_tri_converter.html
_________________
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
fonik



Joined: Jun 07, 2006
Posts: 3950
Location: Germany
Audio files: 23

PostPosted: Thu Mar 11, 2010 1:14 am    Post subject: Reply with quote  Mark this post and the followings unread

...necroposting... (i love this word)

actually not that simple. anyways, yesterday i built this in spice during my lunch brake after reading jim patchell's ideal diode circuit. it will work with falling/rising ramp, even with only going positive ones (that's what i need it for). however, i've had no chance to listen to it right now.

Posted Image, might have been reduced in size. Click Image to view fullscreen.

_________________
Posted Image, might have been reduced in size. Click Image to view fullscreen.
cheers,
matthias
____________
Big Boss at fonitronik
Tech Buddy at Random*Source
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 1 of 1 [17 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
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