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 
Live streaming at radio.electro-music.com

  host / artist show at your time
  mosc Back on the air tonight - Twyndyllyngs
Please visit the chat
 Forum index » DIY Hardware and Software
Convert 0-5V logic to another range
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 1 of 1 [7 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
tonewill



Joined: Aug 21, 2009
Posts: 128
Location: England

PostPosted: Tue Jun 04, 2013 1:50 am    Post subject: Convert 0-5V logic to another range Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Visit poster's website
Uncle Krunkus
Moderator


Joined: Jul 11, 2005
Posts: 4760
Location: Sydney, Australia
Audio files: 52
G2 patch files: 1

PostPosted: Tue Jun 04, 2013 5:30 am    Post subject: Reply with quote  Mark this post and the followings unread

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. Smile

_________________
What makes a space ours, is what we put there, and what we do there.
Back to top
View user's profile Send private message Visit poster's website
tonewill



Joined: Aug 21, 2009
Posts: 128
Location: England

PostPosted: Tue Jun 04, 2013 7:01 am    Post subject: Reply with quote  Mark this post and the followings unread

Thanks very much! I just happen to have a few 3906s here. I've attached a picture of my breadboard just to show that I am trying this Wink.

I haven't connected anything to the input yet, I wanted to make sure that it didn't interfere with the drum machines internal triggers first and I need to disable the MIDI converter from another project.

I measured some constant voltage between the output and -14V and between the output and 0V. One was around 5-6V the other around 8V.

Will dig out the MIDI to gate converter now and post my results.

Thanks again.


DSC01331.JPG
 Description:
 Filesize:  441.34 KB
 Viewed:  35 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

DSC01331.JPG


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



Joined: Mar 20, 2012
Posts: 1507
Location: Chicago
Audio files: 14

PostPosted: Tue Jun 04, 2013 7:54 am    Post subject: Reply with quote  Mark this post and the followings unread

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 Smile


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
View user's profile Send private message
tonewill



Joined: Aug 21, 2009
Posts: 128
Location: England

PostPosted: Tue Jun 04, 2013 8:18 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Visit poster's website
elmegil



Joined: Mar 20, 2012
Posts: 1507
Location: Chicago
Audio files: 14

PostPosted: Tue Jun 04, 2013 8:32 am    Post subject: Reply with quote  Mark this post and the followings unread

Sorry, I misunderstood that part....
Back to top
View user's profile Send private message
tonewill



Joined: Aug 21, 2009
Posts: 128
Location: England

PostPosted: Tue Jun 04, 2013 9:33 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Moderators: jksuperstar, Scott Stites, Uncle Krunkus
Page 1 of 1 [7 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
e-m mkii

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