| Author |
Message |
tonewill
Joined: Aug 21, 2009 Posts: 135 Location: England
|
Posted: Tue Jun 04, 2013 1:50 am Post subject:
Convert 0-5V logic to another range |
 |
|
Hello, I wonder if someone can help please:
First, my electronics knowledge is not great, so please bear that in mind.
I want to convert a 0-5V logic signal to a short -14-0V pulse. I have access to a -14V power rail.
In case that isn't clear, I have a highly liquid MD24 that converts MIDI note off/on signals to a logic 0-5V signal. It stays at 5V for as long as the note is held, but I want just a short pulse each time a note is played, and at a different voltage range.
I do not know the exact length the pulse should be, I can experiment but it's just a trigger pulse so let's say, I don't know, a few milliseconds.
I have some transistors, caps and resistors here to play with.
I appreciate any help,
Many thanks. |
|
|
Back to top
|
|
 |
Uncle Krunkus
Moderator

Joined: Jul 11, 2005 Posts: 4761 Location: Sydney, Australia
Audio files: 52
G2 patch files: 1
|
Posted: Tue Jun 04, 2013 5:30 am Post subject:
|
 |
|
Someone might jump in and correct me here, (I'm just going with a gut feeling) or at least tweak my idea a bit. Feel free.
But,...
I think you want a PNP transistor (2N3906 comes to mind, or something similar)
The collector goes straight to the 0V line.
Your input comes through a resistor (10K?) into the base.
The emitter goes through another resistor (10K?) to the -14V line.
Off the junction of the emitter and resistor, connect another resistor (2K?)
After the 2K output resistor, put a cap (330nF?) to the -14V line, and the output comes off the junction between the 2K and the 330nF cap.
It may not be exactly right, but that's what I'd start playing with on the breadboard to get started.
It'll be interesting to see how far out I am on this idea. Hopefully we'll both learn something.  _________________ What makes a space ours, is what we put there, and what we do there. |
|
|
Back to top
|
|
 |
tonewill
Joined: Aug 21, 2009 Posts: 135 Location: England
|
|
|
Back to top
|
|
 |
elmegil

Joined: Mar 20, 2012 Posts: 2179 Location: Chicago
Audio files: 16
|
Posted: Tue Jun 04, 2013 7:54 am Post subject:
|
 |
|
I think the way uncle describes it, that would end up being normally -14 with a pulse going up to gnd.
I would arrange the PNP such that the resistor was connected to the collector side, and you take the output (into the cap to generate a pulse) from the junction of the resistor and the transistor. That way you're normally connected to ground (when the transistor is cut off) and then go negative when you get the gate in to the base.
The other stuff to make a pulse out of a gate sounds right but I haven't thought about it very far at this moment.
I'm assuming you have the MIDI -> gate part already worked out, and that's what's feeding the base of the PNP. Edit: duh, need to read the entire thread, of course you have that taken care of
Edit 2: the more I think about it the more I think maybe we have current flowing the wrong way here too. Maybe should be the way he described except -14 on collector and gnd after resistor from emitter.
Might be useful to simulat it here: http://www.falstad.com/circuit/ |
|
|
Back to top
|
|
 |
tonewill
Joined: Aug 21, 2009 Posts: 135 Location: England
|
Posted: Tue Jun 04, 2013 8:18 am Post subject:
|
 |
|
Thanks elmegil:
| Quote: | | I think the way uncle describes it, that would end up being normally -14 with a pulse going up to gnd. | That's the way it needs to be for this machine.
I tested with a +5V input signal but nothing happened. Will need to investigate more. I have no java plugin for that site, will look into that though as it sounds like a good idea if it allows you to create a virtual circuit and test it.
In case it's relevant, I don't need to pull up/down (not sure which term is correct here) to -14V myself, just need to add a brief 0V. I can trigger all the sounds manually by applying 0V to all the trigger points so I know that works, but the pulse needs to be short or the sounds sustain until you remove the 0V, and it gets pulled (up/down) to -14V again.
Thanks gain chaps. |
|
|
Back to top
|
|
 |
elmegil

Joined: Mar 20, 2012 Posts: 2179 Location: Chicago
Audio files: 16
|
Posted: Tue Jun 04, 2013 8:32 am Post subject:
|
 |
|
| Sorry, I misunderstood that part.... |
|
|
Back to top
|
|
 |
tonewill
Joined: Aug 21, 2009 Posts: 135 Location: England
|
Posted: Tue Jun 04, 2013 9:33 am Post subject:
|
 |
|
I connected one side of a micro-switch to 0V, the other side to a 100n capacitor and a 100k resistor. The other side of the resistor I connected to -14V (pull-up or down, you tell me!) and the other side of the capacitor I connected to each sound trigger input one by one and tested by pressing the switch. This triggers the sounds beautifully and as they should be.
Converting the 5V logic didn't work at all for me, not sure why. Anyway, I'm going to have to leave it for now and look at it again later.
Thanks for all your help chaps. |
|
|
Back to top
|
|
 |
|