electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links  |  Store
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
Analog Or Gate?
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 1 of 1 [15 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
corex



Joined: Mar 02, 2010
Posts: 100
Location: Las Vegas

PostPosted: Wed Jun 27, 2012 10:23 am    Post subject: Analog Or Gate?
Subject description: How to pass the greater of two signals?
Reply with quote  Mark this post and the followings unread

I have a problem where I would like to pass the greater of two signals, a kind of "analog or". It seems to me that this has come up before, but search fails me. Anybody have a schematic, or even a better keyword?
Back to top
View user's profile Send private message
JingleJoe



Joined: Nov 10, 2011
Posts: 789
Location: Lancashire, England
Audio files: 14

PostPosted: Wed Jun 27, 2012 11:03 am    Post subject: Reply with quote  Mark this post and the followings unread

Two diodes should do.
simply make a diode based OR gate, with a pull down resistor on the end, that will pass analogue voltages above the diode voltage.

_________________
As a mad scientist I am ruled by the dictum of science: "I can't really be certain but I think I might have an idea"


Green Dungeon Alchemist Laboratories
Back to top
View user's profile Send private message
corex



Joined: Mar 02, 2010
Posts: 100
Location: Las Vegas

PostPosted: Wed Jun 27, 2012 11:55 am    Post subject: Reply with quote  Mark this post and the followings unread

I'm looking for something a little more sophisticated; the diodes will have a voltage drop and won't pass bipolar signals.
Back to top
View user's profile Send private message
JovianPyx



Joined: Nov 20, 2007
Posts: 1079
Location: West Red Spot, Jupiter
Audio files: 123

PostPosted: Wed Jun 27, 2012 2:51 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hmm... A comparator monitors the two voltages. The voltages are then passed through two transmission gates of a 4066 which is controlled by the comparator and the logically inverted output of the comparator. Of course, that puts limitations on the range of voltages it will pass. I.e., you can expect to pass a range of +15 to -15 through a transmission gate. The transmission gates outputs are connected together to form a single output. May need resistors on the xmission gate outs, not sure.
_________________
FPGA Synth Stuff
FatMan Mods
dsPIC Synth Stuff
I am formerly known as ScottG here

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



Joined: Dec 29, 2006
Posts: 1165
Location: australia
Audio files: 4

PostPosted: Wed Jun 27, 2012 5:33 pm    Post subject: Reply with quote  Mark this post and the followings unread

This is what you need...............maybe
http://electro-music.com/forum/topic-21851.html
Back to top
View user's profile Send private message Visit poster's website
brock



Joined: May 26, 2011
Posts: 75
Location: Canada

PostPosted: Wed Jun 27, 2012 10:00 pm    Post subject: Reply with quote  Mark this post and the followings unread

JovianPyx wrote:
Of course, that puts limitations on the range of voltages it will pass. I.e., you can expect to pass a range of +15 to -15 through a transmission gate.


There may be an error here. The limitation is you cannot pass +15V to -15V through a CD4066, but if you use a DG403 it should work okay.

If you are comparing audio or periodic inputs you probably want some kind of peak detectors or envelope followers on the input signals for the comparator control.
Back to top
View user's profile Send private message
JovianPyx



Joined: Nov 20, 2007
Posts: 1079
Location: West Red Spot, Jupiter
Audio files: 123

PostPosted: Thu Jun 28, 2012 6:22 am    Post subject: Reply with quote  Mark this post and the followings unread

Not sure if it's an "error", more of a memory lapse - I couldn't remember the part number you cited. However, I think that the technique would work, no?
_________________
FPGA Synth Stuff
FatMan Mods
dsPIC Synth Stuff
I am formerly known as ScottG here

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



Joined: Mar 02, 2010
Posts: 100
Location: Las Vegas

PostPosted: Thu Jun 28, 2012 9:18 am    Post subject: Reply with quote  Mark this post and the followings unread

Thanks guys!

The comparator + switch combo sounds like a workable approach. I didn't know about DG403, but looking over the datasheet it does seem more appropriate than the 4066. (For onlookers: the 4066 switches analog signals up to +/-7.5V peak, whereas the DG403 will switch signals up to +/-15V ptp.)

I'll do some experiments along these lines.
Back to top
View user's profile Send private message
brock



Joined: May 26, 2011
Posts: 75
Location: Canada

PostPosted: Thu Jun 28, 2012 9:28 am    Post subject: Reply with quote  Mark this post and the followings unread

The concept will work no problem. I think Aries may even have made a module like this in their analog switch which, if I recall correctly, could be controlled with an analog voltage. High probability of memory lapse on my part with that guess/memory though as that's going back a long time.
Back to top
View user's profile Send private message
wmonk



Joined: Sep 15, 2008
Posts: 483
Location: Enschede, the Netherlands
Audio files: 12

PostPosted: Sun Jul 01, 2012 2:48 pm    Post subject: Reply with quote  Mark this post and the followings unread

There is the YuSynth Min/Max that does this.
Easy to build and a module I love.

http://yusynth.net/Modular/EN/MINMAX/index.html

_________________
Weblog!
Kits for synthesiser modules in Europe
Back to top
View user's profile Send private message Visit poster's website
PHOBoS



Joined: Jan 14, 2010
Posts: 1003
Location: Moon Base
Audio files: 254

PostPosted: Mon Jul 02, 2012 6:34 am    Post subject: Reply with quote  Mark this post and the followings unread

wmonk wrote:
There is the YuSynth Min/Max that does this.
Easy to build and a module I love.

http://yusynth.net/Modular/EN/MINMAX/index.html

hadn't noticed that one before, great I'll put it on the todo list. Cool

_________________
"My perf, it's full of holes!"
http://phobos.000space.com/
http://www.acidtrash.com/
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
corex



Joined: Mar 02, 2010
Posts: 100
Location: Las Vegas

PostPosted: Mon Jul 02, 2012 9:42 am    Post subject: Reply with quote  Mark this post and the followings unread

wmonk wrote:
There is the YuSynth Min/Max that does this.
Easy to build and a module I love.

http://yusynth.net/Modular/EN/MINMAX/index.html

Thanks! It's nice to have a couple of options, and this looks like a completely different approach.
Back to top
View user's profile Send private message
corex



Joined: Mar 02, 2010
Posts: 100
Location: Las Vegas

PostPosted: Mon Jul 02, 2012 11:14 am    Post subject: Reply with quote  Mark this post and the followings unread

TL071/072/074 should be okay instead of LM324 in the YuSynth circuit, right?
Back to top
View user's profile Send private message
JingleJoe



Joined: Nov 10, 2011
Posts: 789
Location: Lancashire, England
Audio files: 14

PostPosted: Mon Jul 02, 2012 2:29 pm    Post subject: Reply with quote  Mark this post and the followings unread

corex wrote:
TL071/072/074 should be okay instead of LM324 in the YuSynth circuit, right?

That depends, how close to the rails do you need them to operate? I've had trouble with them TL07X's when operating at input voltages near the supply rails. They aren't designed for that, unlike the LM324 which can go all the way to the negative supply because it is designed for single supply operation. Input voltage ranges are the main concern here.

_________________
As a mad scientist I am ruled by the dictum of science: "I can't really be certain but I think I might have an idea"


Green Dungeon Alchemist Laboratories
Back to top
View user's profile Send private message
corex



Joined: Mar 02, 2010
Posts: 100
Location: Las Vegas

PostPosted: Tue Jul 03, 2012 12:26 pm    Post subject: Reply with quote  Mark this post and the followings unread

JingleJoe wrote:
corex wrote:
TL071/072/074 should be okay instead of LM324 in the YuSynth circuit, right?

That depends, how close to the rails do you need them to operate? I've had trouble with them TL07X's when operating at input voltages near the supply rails. They aren't designed for that, unlike the LM324 which can go all the way to the negative supply because it is designed for single supply operation. Input voltage ranges are the main concern here.

That makes sense, yeah. I looked over both datasheets and that was all that really stood out to me -- that the LM324 is meant for single-sided rail-to-rail operation. For my purposes, I think I don't care about rail-to-rail so that answers that.
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 1 [15 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
Niio2

Please support our site. If you click through and buy from
our affiliate partners, we earn a small commission.


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