- 7 months ago
Mostly just showing the progress I made the past couple days. If needed I could make a detailed video on the internal workings, but you can also just read the mod page with details & code: https://www.evilturtle.nl/projects/yamaha-e-70-ex-2-modding
Category
🤖
TechTranscript
00:00Right, so I am all ready to test this power supply.
00:05I have put LEDs on here prior.
00:09I think that was two months ago that I did this.
00:14And other than that, I recapped this.
00:18I'm going to put the power supply here for now.
00:21So I have something to power this.
00:24I do think I will eventually replace this with a power supply of my own making.
00:31Simply because newer and modern components are a bit more reliable, stable and higher quality.
00:40Instead of 50 year old power supply electronics.
00:45So yeah, now it's time to get back to the rack.
00:49What I first need to get working is the keyboard scanning.
00:58It is 15 volt.
01:00In fact, all the logic is 15 volt, which is really unfortunate.
01:04I was really hoping it was 5 volts.
01:06But, well, backers can be choosers I guess.
01:08And, yeah, I'm gonna need to make an interface to connect this to Arduino or an Atmega for MIDI.
01:23Once I've got that working and I've got some waveforms coming out of this, I can start doing the rest.
01:33Okay, the beast is powered on.
01:38And I connected some testing wires to upper 1 and the C nodes for the keyscan.
01:47So I can put a little diode in there.
01:50And also the two 8 foot outputs of the two oscillators.
01:57And having put in the diode, yes, that indeed looks like stuff is happening.
02:06If I remove the diode, it stops happening.
02:12So, yay, stuff is happening.
02:15Now as you can see when I zoom in, we have the keyscanning up here.
02:21It's kind of an interesting pattern.
02:25And we have the waveform below here.
02:28And you can see the serial processing in action.
02:31Where it's all just little pulses.
02:34And if I zoom out again, you can actually see the waveform.
02:38Okay, so it's getting even more fun.
02:41So, there are four stages.
02:49Stage 1 and 2 are the important ones.
02:53Stage 1, I explained before.
02:56All the node terminals are pulled down to minus 15.
03:01And any octave terminals that are connected via a key are then also pulled down.
03:08So, then the chip knows, okay, that octave is being played.
03:13Then for the nodes, what it does, it actually pulls the octave terminal back up.
03:20And then it checks the node terminals to see which one have been pulled up from minus 15 to ground.
03:30So, it's a bidirectional system.
03:35Okay, I'm actually very much in luck.
03:38I was thinking the signals that the keyscanner sends to the rest of the circuitry are way, way simpler to
03:47replicate.
03:48And I would just bypass the keyscanner just entirely.
03:53Of course, the reason I was not actually wanting to do that, because that would involve soldering on these very
04:03rare Yamaha ICs.
04:06Which kind of is a big no-no.
04:09But I discovered that all the signals that I need are going through all these jumpers.
04:17Which is incredibly convenient, because I could just cut these through and connect my own controller to it.
04:24Of course, with transistors to change the levels to the 15 volt.
04:29That would be very non-invasive.
04:33And if I ever want to go back, I can just reconnect these jumpers again.
04:40Right, I had to do some sneaky things.
04:43Um, a fit Arduino on here.
04:46It's bolted in place to this metal plate over here.
04:50Turns out these are M3 screws, so that saves.
04:52I tried a few positions here and there on the board, but ultimately I want it here.
04:56Because when this board is in the rack, it still needs to be accessible.
05:02I want to be able to push a USB connector in there, so I can program the thing whilst not
05:09taking apart the entire tower of power.
05:11There is one problem, however.
05:14The Arduino runs on 5 volts, as you may know.
05:17The Yamaha, in this case, this board only has 15 volts.
05:25Or specifically, minus 15 volts.
05:28No, I was thinking, well, I could use minus 15 as ground and the ground as positive 15.
05:35Of course, I need to regulate it down to a lower voltage.
05:39I could use the internal voltage regulator of the Arduino.
05:44Yeah, but then I realized something about the ground.
05:48The USB port.
05:50If I were to connect my USB port to my computer,
05:54there's suddenly a 15-volt difference between it and my computer.
06:00And I'm not sure how well that will fare for the USB.
06:06Or for the Arduino in general.
06:09Since I'm no longer using the keycoder,
06:11I can actually use the keyboard scanning pins on the big connector and thus on the motherboard
06:22for other purposes.
06:25In this case, I've reused CL, which has a jumper over here that I removed.
06:33And I've instead connected a yellow, correct color code, wire for 5 volts to the 5-volt input of the
06:43Arduino.
06:45That way, I can also connect it here on the motherboard and then the Arduino is situated correctly.
06:56Right, the procedure of making a little daughterboard for the voltage conversion has begun.
07:02Okay, almost done, but I didn't realize the LM52-4s are sticking out a little bit.
07:11They're a little bit longer than the sockets.
07:13So I had to put another socket in a socket to fit the last one in.
07:32I almost forgot to add the connection and the switch for the MIDI.
07:38So this switch disconnects the MIDI from the serial port.
07:45So when you're programming for USB, it doesn't mess things up.
07:49I think it's about ready.
08:06Never mind me.
08:08Just installing the PCB.
08:15Okay, mildly terrifying, but I've installed the PCB with the Arduino.
08:19I've programmed the Arduino to play a 440.
08:26And, well, I mean, I'm seeing sine waves from both the waveform generators.
08:35So I've just got to measure the frequency now.
08:37I've got a low-pass filter and see if I can extract the actual sine waves.
08:44Okay, I've looked up some testing wires because it's impossible to get the probes in there.
08:49And here we have the clock that the Arduino is receiving.
08:54It seems to have a little bit of DC wobble.
08:57I'm not sure what's up with that, but the minimum is around 300 millivolts.
09:03The maximum around 3.8 volts.
09:07So, and it's, yeah, 37 kilohertz more or less.
09:11So that is perfect.
09:14This is the clock that gets sent to the Arduino for the external interrupt.
09:22And this is one of the signals going to the rest of the circuitry in the E70.
09:32And, let's see.
09:34So that's, it's been around 800 millivolts to minus 8.8 volts.
09:45Would be nice if that was minus 13 volts, huh?
09:50Yeah, I'm gonna need to check some things.
09:53Because I don't think I actually have any sound yet.
09:57First mistake spotted, I just noticed in this diagram.
10:00Signals when nothing is sent are at minus 15.
10:04And minus is always at ground.
10:08So I got that inverted.
10:12But that should be fixable in software.
10:15Okay, the CLP, the channel processor memorizes the data every 12 microseconds.
10:21Because it's 12 times 1 microsecond channels.
10:25So I need to guarantee the pulse width is that big.
10:31Okay, doing some analysis.
10:34Added connections to all the op amp outputs.
10:38And going through them.
10:39They're all good.
10:41This is what they're supposed to look like.
10:42Except for one.
10:44Which is a TLO81.
10:46Which should have enough slew rate, I believe.
10:48But I think I may have misread something.
10:50Because this looks like it's way too slow.
10:58Right, I feel incredibly stupid right now.
11:00I accidentally defined the output pins as inputs.
11:06So basically what I was doing with my digital writing.
11:10Because I'm using port manipulation.
11:13Is setting pull-up and pull-downs basically.
11:17Via the MOSFETs in the output pins.
11:21Rather than actually outputting signals.
11:24Now I've set these to output.
11:25It actually looks perfectly fine.
11:29This is how it should be.
11:31So we've got 5 volts coming from the Arduino.
11:33And we have around minus 14 coming from the op amps.
11:39Hey, I only wasted 3 days on this.
11:43I guess something is being played.
11:46It doesn't sound like A440.
11:51But something is happening now.
11:54So, progress.
11:56Why do I always make things fart?
12:02What the hell?
12:03Well, I don't know about you.
12:04That sounds like a clean note.
12:09It's a little bit out of tune.
12:11But that's probably because the master oscillator doesn't have the tune knob connected.
12:16It says A4, which is an octave too high.
12:21But, uh, it is clean.
12:24Yeah, so I kept the note clearly playing.
12:27But, um, for some reason note off won't work.
12:31It was working before.
12:33It was giving me some trouble.
12:36I was putting everything through the logic analyzer.
12:40It's coming out of the Arduino.
12:43And, um, yeah, I just see the notes being played here.
12:50Okay, I know why I get all the weird random garbled notes.
12:54It's because, um, this is quite sensitive for, uh, changes in ground.
13:01Turning it off and then on too quickly again,
13:04this seems to mess up the, uh, digital, uh, circuitry.
13:08So, by being a little bit more patient and waiting for everything to settle,
13:13uh, and shut down and then turning it on again,
13:16that definitely seems to stabilize things.
13:19Because I'm getting a consistent note every single time now.
13:24Progress.
13:24But I still can't get the note off to work for some reason.
13:28Alright, looking at this, um, I think here is the moment of power on.
13:33I had to kind of time it by turning things on with my toe and pressing record on this.
13:40But I think we have, uh, power on over here.
13:43And some random garbage happens.
13:46We have the Arduino turning on here.
13:49And it takes around two seconds for the actual clock to start.
13:53Before that there's some garbage happening there.
13:56So I should be able to see it here.
13:59Okay.
13:59Arduino's doing stuff.
14:01We got some notes sending out.
14:02And then I see here on the, uh, four notes channels.
14:09Those are, uh, what amounts to high for the Yamaha.
14:13These are all low.
14:15Okay.
14:15That's correct.
14:16And then it stops sending.
14:20Now it's working.
14:22Okay.
14:23So it does indeed seem I need to send the, um,
14:32SL reset code every eight cycles of, uh, of the T counter.
14:43That didn't work at all before, but it works now.
14:47Okay.
14:48We have an, uh, sort of an A4 turning on and off.
14:56I guess it's gonna work.
14:57I'm gonna do the big toe.
14:58I'm gonna do the big toe.
15:00I'm gonna do the big toe.
15:12Ignore the G.
15:13That's just 50 Hertz bleeding through.
15:19I think it's finally starting to work.
15:27Okay.
15:28Built-in optocoupler.
15:29And now sending MIDI data from Reaper via my auto audio interface.
15:37Through the optocoupler.
15:39To the Arduino.
15:41To the E70.
15:42And as you can hear, it is working.
15:46Now I do wonder what happens when I do this.
16:00The third note seems to cut off when this note cuts off.
16:04So.
16:05Okay.
16:05It's getting a little bit annoying.
16:08So.
16:09There's still a bit of a weird issue with note off.
16:13Maybe due to the data shift on the note off.
16:17But hey.
16:19It's working for 95% I'd say.
16:23Oops.
16:24I just noticed another issue.
16:32Okay.
16:33So the C notes are the wrong octave.
16:36Yeah.
16:36That's because it has a very weird arrangement for the C notes.
16:39So.
16:40I figured I would get that wrong.
16:44And I did.
16:44So I need to fix that too.
16:47Okay.
16:4790% there.
16:49Right.
16:50So the E70 is now midified.
16:53Details and instructions will be on the deep dive and mods page on my website.
16:58See comments below.
17:02And have fun modding.
17:04See you next episode.