What happened with Miracle Piano rev-engineering?

Discuss technical or other issues relating to programming the Nintendo Entertainment System, Famicom, or compatible systems. See the NESdev wiki for more information.

Moderator: Moderators

nocash
Posts: 1494
Joined: Fri Feb 24, 2012 12:09 pm
Contact:

What happened with Miracle Piano rev-engineering?

Post by nocash »

Have there ever been any attempts to rev-engineer to the Miracle Piano?

Aside from NES/SNES versions it has been also sold for PC, Amiga, Macintosh, and Genesis - all versions using the same keyboard (and differing only by the included software and connection cable). In so far, the keyboard should be quite popular and not too rare.

Some things that are known are found here:
http://pianoeducation.org/pnompfaq.html#manuals - midi messages described in owner's manual
http://pianoeducation.org/pnompfaq.html#Repairing - complete/official schematics
looks perfect for rev-engineering and emulation. Only a few important details are missing: The BIOS-ROM dump and SOUND-ROM dump, and details about the sound generator.

A nice and simple thing to start with would be having a photo (or scan) of the piano's mainboard.

Would be interesting to know if the two ROMs are having sockets (would make it easier to dump them), and if they are stored on ROMs or EPROMs (or in worst case: if the BIOS is located on-chip in the CPU).
And, if there are different PCB version ore stickers on the ROMs (theoretically all pianos should be identical, no matter if it's a NES or PC keyboard, but considering the miracle's lifetime, there might be several revisions).

There seem to be two ASICs on the PCB that might be easy to guess how they work. And the sound generator, which may be harder. It is reportedly made by "Thomson SGS" (aka "SGS Thomson"), and the schematic is calling it "J004" (which looks more like an odd abbreviation than like a valid component name). Maybe the real chip has some more text on it, allowing to identify it, or even to find a datasheet for it.

Anybody having one of those piano keyboards & could take photos of it's mainboard & chipet?
User avatar
Dwedit
Posts: 5188
Joined: Fri Nov 19, 2004 7:35 pm
Contact:

Re: What happened with Miracle Piano rev-engineering?

Post by Dwedit »

Here's a couple of photos of the board, click for full image (Huge files, ~7MB)

Image

Image

If anyone really needs the raws (NEF format) for some reason, I could upload them too.

Edit: Hard to put it back together, those leds sticking out need to be perfectly lined up, along with the rear ports.
Edit again: DAMMIT, those LEDS just don't want to go through the holes. I don't know if this thing will ever snap back into place.
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!
nocash
Posts: 1494
Joined: Fri Feb 24, 2012 12:09 pm
Contact:

Re: What happened with Miracle Piano rev-engineering?

Post by nocash »

Cool, many thanks for the pics!

The sound chip is actually called "J004" made by STmicroelectronics (aka SGS Thomson's newer name). But there seems to be no datasheet for it :-(

And BIOS is badged "STW 12-90, 800522, OS-1.10, C/S 87EC" the 4 lines are probably meaning date, part number, version, checksum. If it's version 1.10 then there should be also some other version(s) out there.
Edit again: DAMMIT, those LEDS just don't want to go through the holes. I don't know if this thing will ever snap back into place.
Oops, sorry for getting you into that. I hope there's some trick to get it back together!
Before you do - how are chances that you could dump the socketed 28pin BIOS ROM?
(In case you have an EPROM burner or other tools for dumping ROMs/EPROMs).
(I guess you won't be too motivated to desolder & dump the 32pin sound ROM?).

I am wondering if there is a special BIOS version for the SNES. Nintendo seems to have been quite strict that SNES controllers must send a controller ID code (in the 13th..16th bit of the serial data). Maybe the newer piano versions are doing that too (although the 8032 CPU is maybe a bit too slow to shift-out more than 8bits at reasonable speed, so SNES software may encounter lost bits when trying to the ID; if there's one at all).

EDIT: Is it possible to lift the black plastic that the LEDs are sticking in? Maybe that could help to get them well aligned.
User avatar
Dwedit
Posts: 5188
Joined: Fri Nov 19, 2004 7:35 pm
Contact:

Re: What happened with Miracle Piano rev-engineering?

Post by Dwedit »

Sorry, I don't have any Rom dumping/burning equipment (or even a soldering iron for that matter).
But my Miracle also has a broken right speaker that works only if I power off and on really fast a few times. Any ideas?
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!
nocash
Posts: 1494
Joined: Fri Feb 24, 2012 12:09 pm
Contact:

Re: What happened with Miracle Piano rev-engineering?

Post by nocash »

Dwedit wrote:Sorry, I don't have any Rom dumping/burning equipment (or even a soldering iron for that matter).
Okay. Hope somebody else will get them dumped someday. For now it's nice to know that the chips are there, and that they are quite easily accessible.
Did you got the case re-assembled? And do you have some hints for other people how to get it together?
Dwedit wrote:my Miracle also has a broken right speaker that works only if I power off and on really fast a few times. Any ideas?
Sounds like a dirty switch or potentiometer - but, the miracle doesn't have any analog volume/equalizer regulators (only digital volume push buttons). The power switch itself shouldn't affect the right speaker (if it does then it must be some odd side-effect).
The headphone socket has two built-in switches (for muting speakers when headphone is connected), maybe these switches are dirty. You could try to insert/remove a headphone a bunch of times, maybe that changes something. If it does, then some (small amount of) contact spray in the headphone socket might also help.
User avatar
Dwedit
Posts: 5188
Joined: Fri Nov 19, 2004 7:35 pm
Contact:

Re: What happened with Miracle Piano rev-engineering?

Post by Dwedit »

What's strange is that I think the headphone jack also has the bad right channel at the same time. My memory may be rusty, but I think that's happening too.
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!
lidnariq
Site Admin
Posts: 11716
Joined: Sun Apr 13, 2008 11:12 am

Re: What happened with Miracle Piano rev-engineering?

Post by lidnariq »

Maybe there's something funny at the audio amplifier IC? or DAC?
I don't have any good guesses where to try, other than using an oscilloscope to find where the audio disappears. But that requires at least a block diagram of the PCB.
sleepy9090
Posts: 81
Joined: Fri Aug 22, 2008 10:04 am

Re: What happened with Miracle Piano rev-engineering?

Post by sleepy9090 »

interesting topic, I have a miracle piano system still in the box and all the necessary materials required for desoldering and dumping, I'm in the last 3 weeks of this semester, so if no one beats me to it I might get a chance over Christmas break to dump them.
nocash
Posts: 1494
Joined: Fri Feb 24, 2012 12:09 pm
Contact:

Re: What happened with Miracle Piano rev-engineering?

Post by nocash »

> I have a miracle piano system still in the box and all the necessary materials required for desoldering and dumping
Cool, I'll try to remind you in case you forget it :-)

> I think the headphone jack also has the bad right channel at the same time.
That might be worth testing. Same for the RCA output. If they are all having the same problem then it must be something between the connectors and the J004 sound chip. The sound-engine schematic (see above link) is nicely showing where the right audio is routed through (J004 --> U10 --> U4D --> U3A --> U2A --> connectors).
If it's sometimes working, and sometimes not, then it might be a broken soldering point somewhere near those components (you might spot that when closely looking at the soldering points). That would be very easy to repair: just one tap with the soldering iron - or as you don't have one - you could maybe even fix it by squeezing the solder back together with your fingernail (never tried that method, but it might temporarily fix the problem).
User avatar
Dwedit
Posts: 5188
Joined: Fri Nov 19, 2004 7:35 pm
Contact:

Re: What happened with Miracle Piano rev-engineering?

Post by Dwedit »

Finally got the thing reassembled! YAY!

For the next guy who has to get the motherboard back into the case:
Get the ports in the back through the holes in the case. Raise the back side (where the ports are) as much as you can, make sure the screw holes are lined up, and lower the front and back together, then hopefully it goes back in cleanly with a snap sound. Make sure none of the LEDs are bent before you do this, bend them back if they are bent, insertion attempts will bend them.
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!
Near
Founder of higan project
Posts: 1553
Joined: Mon Mar 27, 2006 5:23 pm

Re: What happened with Miracle Piano rev-engineering?

Post by Near »

> Here's a couple of photos of the board

Dear god. I could buy one of these and have a lifetime supply of resistors o.O
User avatar
Dwedit
Posts: 5188
Joined: Fri Nov 19, 2004 7:35 pm
Contact:

Re: What happened with Miracle Piano rev-engineering?

Post by Dwedit »

Looks like there's diodes, capacitors, and inductors in there too, not just resistors. But there are 121 of them!
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!
Lord Nightmare
Posts: 131
Joined: Wed Apr 05, 2006 10:12 am
Location: PA, USA
Contact:

Re: What happened with Miracle Piano rev-engineering?

Post by Lord Nightmare »

We need dumps of the socketed firmware ROM at U17 (27c256 32KB EPROM, version 1.10 in the picture, there are likely others also needing dumps) and we need a dump of the soldered-down 32-pin mask ROM at U12, which holds the instrument sample data. The mask rom as pictured is a 128KB S631001-200 mask ROM, which should be dumpable as if it was a 27c010 eprom assuming the schematics are correct.

LN
"When life gives you zombies... *CHA-CHIK!* ...you make zombie-ade!"
User avatar
koitsu
Posts: 4201
Joined: Sun Sep 19, 2004 9:28 pm
Location: A world gone mad

Re: What happened with Miracle Piano rev-engineering?

Post by koitsu »

I had some official source code (printed, on paper) given to me for what appears to be the Genesis Miracle Piano software, back in 1997 or so. It's in C, and I think it's just an instrument/sample table (basically a big struct), but I'm not completely sure. I could provide a picture/scan of one of the pages (and all the rest if someone wanted) if anyone found it useful.
Lord Nightmare
Posts: 131
Joined: Wed Apr 05, 2006 10:12 am
Location: PA, USA
Contact:

Re: What happened with Miracle Piano rev-engineering?

Post by Lord Nightmare »

Koitsu: It may or may not end up being useless, but I'd love to get a copy of that.

LN
"When life gives you zombies... *CHA-CHIK!* ...you make zombie-ade!"
Post Reply