Discussion in "Electronics" started by    vivitern    Nov 7, 2017.
Tue Nov 07 2017, 09:33 AM
#1
I own a used Clavia ddrum4 SE drum module. It employs a fairly advanced technique to detect the position of the hi-hat; on the stand is mounted a magnet, and in the hi-hat pad is a Hall effect sensor circuit.

It’s exceedingly difficult to find working hardware for the module, so a number of years ago someone reverse engineered the circuit and posted it online. I have tried to replicate the circuit on a breadboard, with one exception: I couldn’t find a retailer selling the original sensor model, so I tried my best to find a replacement unit with characteristics that are compatible with the original. I fear I have failed, because the test circuit isn’t working. I am not an electrical engineer; I only know enough to be dangerous and I’m in over my head. Let me walk through the details:

here is the circuit that was posted: Hall effect sensor circuit

the “508” is a Micronas HAL 508
I substituted a TT electronics Optek OH180U
the ddrum4 SE unit provides +4.75V on the ring of the connection jack, ground is sleeve (tip is for the piezo trigger)
I have confirmed that simply placing a 10K pot across +4.75 and ground (ring and sleeve) lets me control the hi-hat position. It’s extremely touchy with a narrow range; if I bridge a 10K fixed in parallel and recalibrate the unit (a built-in function to set the “closed” point) it makes it slightly more responsive…anyways, the point is I have confirmed the head unit works.
in the circuit, ddrum must have fine-tuned the 10K trim pot at the factory and then sealed it, because users’ pictures show it covered with glue. I’ve tried adjusting it all over the place and recalibrating often with no success.
I've double-checked pinouts for everything, especially diode polarity, op-amp pins and Hall effect sensor pins too.
So my questions:

can a real electrical engineer look at the HAL 508 and the Optek OH180U and see if they’re in the ballpark? Perhaps my choice of replacement Hall sensor is just completely wrong. The 508 is a unipolar switching sensor, on typically at 18 mT, off at 16, hysteresis 2. The OH180U is also unipolar switching, on at 18mT, off at 14, hysteresis 4. I've used some fairly strong magnets...not rare-earth, but some stacked together. It should be enough to get something out of it. I tried both N and S by the way. =) Perhaps I should be making a test circuit to see if the magnets are triggering the sensor? (Links appreciated!)
I’m really confused about the circuit itself; in that there are only two leads (+4.75V and ground) provided even for the op-amp supply. I’m assuming that it’s forming a parasitic load on the voltage based upon the magnet distance—which the unit measures—but that’s its supply too. Can someone explain what this should do? I’ve tried to match the design to a number of basic op-amp circuit designs on the web, but almost all of them have a separate output, so I don’t grok this pattern.
It’s also conceivable that the circuit was reverse engineered improperly…I’ve looked at the pictures that were taken, and tried hard to trace everything to confirm correctness. The problem is, the guy didn’t take apart or damage his unit (obviously! it still worked) so it’s possible we missed a connection. Does this circuit look “really close” to something familiar, but is messed up a little bit?
I traced the original op-amp’s unit 2 circuit, and it looks like they didn’t terminate it properly—the output is wide open and in+/in- are tied to ground. I terminated my unit 2 circuit properly with 10K resistors from in+ to supply and ground, output to in- like mentioned here. Is it possible that me changing this design would influence the first circuit? I don’t think so, but I’m grasping at straws without a formal education in electronics so…
Thanks so much in advance for any help.

EDIT:

This is the link to the op-amp: http://www.kynix.com/Parts/3951498/NJU71044RB2.html. I used version (a) because I don't have a negative supply.

responding to Scott: I was very confused about the choice of Hall effect sensor as well. The sensor data sheets clearly state that they are switched sensors, i.e. on/off. However, the Clavia documentation (and several other sources) state that there are at least 8 levels of magnet position sensor detection. It's actually also implied that they interpolate between these, most likely in software. But 8 levels is quite a bit more than 2! =)

At the bottom, I am attaching some relevant pictures of the working device someone disassembled, in case that gives anyone a Eureka! moment.

I assumed the zener diode is a pop protection for when the 1/4" stereo cable is inserted into the jack; the contacts kind of jump until the cable is all the way in.

I also assumed the capacitor between signal and ground acted like a low-pass filter, but I don't really get how it plays with the op-amp. I kind of thought you'd want a high-pass filter to smooth a noisy sensor; having a magnet move close to this circuit by means of me pushing my foot on a pedal is pretty much the definition of low frequency so why would we filter that?

responding to Russell: great questions...let me try to elucidate some things (but claim ignorance on many others!)...

The ddrum4 SE brain is powered from 120VAC; literally a two-prong US polarity plug. Inside it must have a regulated power supply of some sort...I'm reluctant to open the unit because if I break something I'm pretty much toast on fixing it. (I did open it; see below).

The connection between the hi-hat pad/controller and the brain is a tip-ring-sleeve 1/4" stereo cable. That's it. Only three wires. One is definitely common signal ground, and another is also well-known...

The way that pad trigger interfaces almost always work, is that you have a piezo device attached to a metal plate covered with rubber. The physical hit of a stick causes a voltage spike across the common ground (in my case, the sleeve) and the trigger signal wire (in my case, the tip). This signal goes through an amplifier gain stage which is fed into an ADC. The ADC is scanned at a very high rate, so the unit can take slope readings of the change in signal over time in order to produce an accurate "note on" MIDI message—which includes "velocity" or signal strength—before the piezo trigger spike actually peaks. The ADC is most likely 10-bit, since their product literature claims "more than 1000 levels of velocity" (even though MIDI is only 7-bit, internally they apparently use 10).

Additionally, ddrum specifically designed the interface such that a standard 2-wire (mono) 1/4" cable can be used on this input, in case it's just a normal pad trigger. That means that the device works fine if the ring (middle wire of 1/4" stereo) is connected to sleeve (common ground)! When I measure potential across ring to sleeve, it's +4.75 V.

But what's most puzzling is this: the Hall effect sensor circuit—with the LM358 amplifier—is both powered by and communicates its output with the same two wires...sleeve (ground) and ring (+5 V).

I'm guessing some things here—again, I'm not an electrical engineer—I'm assuming that they're probably using another ADC to measure voltage across ring and sleeve. They probably have a +5 reference voltage in a comparator circuit (or some other scaling device) to detect how far this circuit above drops the +5 it's being given. Maybe that's the trick...the circuit is supposed to drop the voltage, but only by a small amount so as not to make the op-amp fail below nominal supply voltage?

Or perhaps...forgive me if I'm talking utter nonsense here...don't resistors drop both voltage and current? So maybe the circuit acts like a power sink, consuming a variable amount of current based on the distance of the magnet? If that's the case, then maybe they're somehow using an ADC to measure the current draw of the circuit?

Without opening her up, that's pretty much all I can surmise. I know for a fact that it senses the position of the magnet with two wires, and those same two wires act like ground and supply for the op-amp that's part of the circuit. I know if you bridge that supply to ground, nothing bad happens and if it's in hi-hat mode it acts as if the magnet is infinitely far away (this could be a software mode though). I know I can get a trim pot across the supply and ground to make varying levels, although the reaction band is very narrow. I could try to estimate that range if that would be useful to someone.

It's starting to sound like I should open up the main module and try to trace the circuitry and get more information.

...and I did...it's a fair amount of surface mount stuff, traces on both sides, routing all around and then over a cable to the main board. I took pictures, but I don't think I can figure out what's happening. The hi-hat jack is J10.

The interface/trigger input panel: hi-hat interface board
http://www.kynix.com/BlogImage/11.7.9.jpg
The wires from the original controller: wires from original controller

The original circuit board: original circuit board

Identifying the Hall effect sensor: Hall sensor type
Tue Nov 07 2017, 07:13 PM
#2
> It employs a fairly advanced technique to detect the position of the hi-hat;

This is not a music based website, so can you explain what a hi-hat is,
and why you would want to detect its position.

>I traced the original op-amp’s unit 2 circuit, and it looks like they didn’t
> terminate it properly—the output is wide open and in+/in- are tied to ground.
>I terminated my unit 2 circuit properly with 10K resistors from in+ to supply and >ground, output to in- like mentioned here. Is it possible that me changing this >design would influence the first circuit?
The output of an op-amp can be left open, and grounding both inputs
is probably correct for the LM358 .
Your changes are okay though.


Can you post a link to the original thread.

The OH180U looks like a good substitute detector.
The NJU71044RB2 seems to be a video amplifier, is your link correct ?


[ Edited Thu Nov 09 2017, 03:15 AM ]

Get Social

Information

Powered by e107 Forum System

Conversation

ExperimenterUK
Mon Jan 07 2019, 03:31 AM
@REVOCATUS please post in the AVR forum
Mon Dec 24 2018, 09:25 AM
REVOCATUS MATEMU
sorry I mean referee boards for player substitution
Mon Dec 24 2018, 09:24 AM
REVOCATUS MATEMU
hi am.looking how to build referee by using Atmega 328 and its codes
Sat Dec 15 2018, 01:45 PM
Arslan ayoub
Hii ,, can I get the simulation of numeric keypad lock on proteus
ExperimenterUK
Mon Dec 03 2018, 05:17 PM
Please post questions in the forum. The chat box is for chat
Mon Dec 03 2018, 06:43 AM
help!me!
help! I don't understand busy flag!
Sun Dec 02 2018, 08:01 PM
ile
hello
Mon Nov 12 2018, 05:58 AM
Pavan_user
i have seen your replica of I2C programming using AT89C51 but i am unable to understand the "ack_bit" variable usage ...looks like it is always 1...can you elaborate how acknowledgment is working....
bgk3678
Tue Nov 06 2018, 02:36 PM
kindly any one give solution for my problem
ExperimenterUK
Mon Nov 05 2018, 09:48 PM
Pins high is the normal state. You need a program to set them low

Downloads

Comments

garfield0929
Sun Jan 20 2019, 12:48 AM
servprov
Thu Jan 17 2019, 06:44 AM
marcomilazzo
Wed Jan 16 2019, 04:21 PM
sandhyashree
Wed Jan 16 2019, 04:04 PM
SONACHAI1234
Sun Jan 06 2019, 08:14 AM
manan.gulyaani
Tue Jan 01 2019, 07:58 AM
etech
Sun Dec 30 2018, 07:44 PM
NeilC
Sun Dec 23 2018, 07:39 PM

Online

Guests: 54, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38039
Newest member: garfield0929
Forum Activity
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Jan 06 2019, 10:37 PM
Which 8051 chip are you using ?
SONACHAI1234 Avatar
Posted By SONACHAI1234
Sun Jan 06 2019, 08:21 AM
Hi,By mistakenly i burn rx program in my 8051 micr...
ExperimenterUK Avatar
Posted By ExperimenterUK
Wed Dec 19 2018, 06:27 PM
Nobody knows?sifirsekizThe problem is that you are...
sifirsekiz Avatar
Posted By sifirsekiz
Wed Dec 19 2018, 12:15 PM
sifirsekiz Avatar
Posted By sifirsekiz
Sun Dec 16 2018, 11:13 PM
Guys pleaseeeee :((
sifirsekiz Avatar
Posted By sifirsekiz
Sat Dec 15 2018, 07:09 PM
HiThe pulse-sensor-amped has an analogue output.Th...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sat Dec 15 2018, 07:01 PM
HiThe pulse-sensor-amped has an analogue output.Th...
sifirsekiz Avatar
Posted By sifirsekiz
Sat Dec 15 2018, 09:02 AM
and ı have pulse sensor one out but anolog use 805...
sifirsekiz Avatar
Posted By sifirsekiz
Sat Dec 15 2018, 08:56 AM
HiMembers can supply code and diagrams if they wan...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Dec 14 2018, 11:54 PM
HiMembers can supply code and diagrams if they wan...