Author Topic: Problem with comparator circuit for drum machine triggers  (Read 386 times)

0 Members and 1 Guest are viewing this topic.

Offline belzrebuthTopic starter

  • Frequent Contributor
  • **
  • Posts: 487
  • Country: gr
Problem with comparator circuit for drum machine triggers
« on: April 11, 2023, 02:30:14 pm »
I'm trying to mod a Yamaha MR10 drum machine to have trigger inputs and I've got a problem with the circuit I'm using.
This drum machine has a peculiarity that is it needs -9V triggers and it has no positive power supply rail so it's a bit trickier to deal with.
The individual sounds are also triggered by some trigger pads on the front so when the individual triggers are not firing they need to sit at 0V (more on this later) in order for the pads to send their -9V pulses.
I tried to make a circuit hoping to make all this work and I came with what is attached below.
The circuit takes a positive pulse which is isolated from the drum machine power supply just in case the trigger inputs are coming from a grounded source.
The positive pulse short the collector to -9V where the emitter is attached.
The collector is at the non-inverting of the opamp and that essentially brings the comparator low because the (-) input of the opamp sits at about -4.5V so we've got a nice -9V trigger.
It works as a simulation as well but it doesn't work in real-life.
All I get is a very short pulse of about 5V at the output of the opamp which is not enough to trigger the sounds.
I'm more worried about the amplitude the width of the pulse is irrelevant in this case (should have been about the same length as the trigger input thought).
Any ideas of what might be going on here?
I attached a schematic of the drum machine section as well although I get the same behavior with the outputs of the opamps disconnected from the base of the input transistors.
« Last Edit: April 11, 2023, 02:40:45 pm by belzrebuth »
 

Offline Terry Bites

  • Super Contributor
  • ***
  • Posts: 2504
  • Country: gb
  • Recovering Electrical Engineer
Re: Problem with comparator circuit for drum machine triggers
« Reply #1 on: April 12, 2023, 10:26:29 pm »
True - you don't actaully need the comparator. But if you want clean pulses and some output drive for a cable, its a good idea.
The TL022 has a total output swing of abut 5V.
Check your sim with a real load on the opamp
Consider using a real comparator or single supply opamp.
Note that you don't need an opto. You can use a level shifter instead- much cheaper.
Any small signal transitors will do. I should work out at about $2 per channnel including the comparator.

BTW
Add some hysteresis as shown, you'll avoid false triggers.


« Last Edit: April 16, 2023, 01:37:32 pm by Terry Bites »
 

Offline Kim Christensen

  • Super Contributor
  • ***
  • Posts: 1699
  • Country: ca
Re: Problem with comparator circuit for drum machine triggers
« Reply #2 on: April 13, 2023, 12:41:10 am »
I don't know why you'd need a comparator anyway. Why not something like this:
(You could maybe eliminate R1, R2, and Q1 and drive the trigger directly with the opto if it has enough current gain)
« Last Edit: April 13, 2023, 12:51:50 am by Kim Christensen »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf