Yamaha TYU-30 Fun-Keyboard (polyphonic squarewave toy keyboard with key lighting)
Yamaha TYU-40

Yamaha TYU-30

This small squarewave toy keyboard from 1985 (concluded by CPU number) has only 1 main voice sound (piano) and 4 rhythms, but it has a key lighting function to learn keyboard play.
Like Yamaha PC-100 not the keys itself but a row of small LEDs above them light up, but instead of fragile PlayCards the musics are stored on ROM cartridges. The nicely warm sound resembles Letron MC-3, but timbres are not identical. A bit annoying is that the volume can not be set lower than medium ambient volume due to the coarse 3 step volume switch.

main features:

model TYU-30, ser.no.129147

notes:

The manual I downloaded from Yamaha claims that this instrument originally came with 2 music cartridges, but my specimen from a fleamarket had only the "CARTRIDGE A" with 10 nicely arranged polyphonic melodies. So I later bought a 2nd specimen on eBay (keys painted red by a kid) that came with "CARTRIDGE B" (but no A) and a plastic microphone. The hardware is relatively simple with only a CPU and no complex analogue stuff. A bit annoying is the battery alarm, that honks a thin beep every minute or so when no note is played.

To play keyboard, select the "rhythm play" mode with the "music" switch. The preset sound is always a simple squarewave piano. You can choose one of 4 rhythms (without any accompaniment); the very electronic percussion sounds like an MC-3. The tempo can be adjusted between very low and fairly high, but starting a rhythm always switches it back to default. The transpose +/- buttons have no wraparound and also affect held notes, which can be used as a sound effect.

The others modes are for the built-in musics and key lighting. Unlike with Casio ROM-Pack keyboards, here only 1 LED lights up to show the key to be pressed, but no 2nd flashing LED indicates which note comes next. In "free tempo" mode the instrument waits until the correct note is played, while in "melody cancel" mode the accompaniment of the song simply continues, while you can play any notes to it (monophonic) on the keyboard. The accompaniments of the songs contain additional simple preset sounds made from multipulse squarewave with different volume envelopes; there is an e-bass (for bass), musicbox (for arpeggio chords) and violin (for obligato/ 2nd voice). They contain neither vibrato nor tremolo and resemble MC-3 preset sounds. The 'musicbox' has an unusual glassy timbre. Unfortunately none of them can be used for manual play.

It took me quite long to understand why the thing often had refused to start melodies and other times didn't, until I read in the manual that to get the musics to play, you must first press the key with the melody number and while still holding that key press and release the "start/ stop" button. (Sorry, previously even me explained this wrongly.) This reminds me much of  my Atari 8 bit homecomputer reset button sequence for cassette loading, but for operating a children toy this is really a little hard and rather resembles the procedure for unlocking the child lock function of a badly designed VCR. When you select "*" instead of a number, the instrument plays all songs from the cartridge in a sequence.
cartridge A (CB-05739)
  1. Frère Jaque
  2. Londonderry Air
  3. I've Been Working On The Railroad
  4. Aloha Oe
  5. Beautiful Dreamer
  6. Little Brown Jug
  7. Chopin's Nocturne
  8. On The Beautiful Blue Danube
  9. Twinkle Twinkle Little Star
  10. Auld Lang Syne

ROM="Y2165 3, 55255A" (8 pin DIL)
cartridge B (CB-05740)
  1. Oh Susanna
  2. La Paloma
  3. Michael, Row The Boat Ashore
  4. Cielito Lindo
  5. When The Saints Go Marching In
  6. Brahms' Cradle Song
  7. Bach's Minuet
  8. Ode To Joy
  9. Jingle Bells
  10. Silent Night

ROM="Y2156 9, 55215A" (8 pin DIL)
Although squarewave based, the demos sound surprisingly good. They may be based on Yamaha's PlayCard sequencer engine and permit obligato with quite high timing resolution, which gives some arrangements a sort of human touch that is rarely heard in simple toy keyboards. The reason for this may be specialized playback hardware inside its CPU, which appears to be an LSI constructed from scratch as gate logics where noname keyboards often used cheap generic microcontrollers running choppy software loops with uncontrolled latency. In TYU-30 during crash (or switching other songs to 'waltz') the polyphony channels can run out of sync, which shows that the algorithm treats them (unlike e.g. the ProTracker sequencer) as independent tasks with own relative timing that is not bound to a slow common rhythm clock. The implementation is at least as good as Casio ROM-Packs.

question: Does anybody know if other cartridges beside the above A and B were released for Yamaha TYU-30? The numbers above the left keys count from 1 to 15, which lets me conclude that cartridges with up to 15 melodies were at least planned for it. But the downloaded manual does not tell anything beside that the instrument was shipped with 2 cartridges.
 

circuit bending details

The Yamaha TYU-30 is based on the single-chip CPU "YM2214" (crystal clocked @ 514kHz). The power amp IC is "LA4142 5F2" (9 pin SIL).
Its internal sound generator resembles the DSG YM2163 but has no sawwave. The main and accompaniment voices seem to be all made from fairly complex symmetric multipulse squarewaves with linear volume envelopes. Unlike DSG this e.g. includes a remarkable glassy timbre.

TYU Music Cartridge pinout

The TYU Music Cartridge was Yamaha's apparently first shortlived attempt of replacing their somewhat flimsy PlayCards to compete with Casio ROM-Packs in toy grade mini keyboards. But by lack of success it disappeared so quickly that no additional cartridges are known.

The cartridges of Yamaha TYU-30 contain a special ROM (8 pin DIL) with 4 pin bus for a kind of serial interface. Known are only the ROMs "Y2165 3" (Cartridge A), "Y2156 9" (Cartridge B) and "Y2411" (internal ROM of Yamaha TYU-40). This cartridge pinout (pins counting from left to right) was concluded from TYU-30 PCB photos and the YM2214 pinout.
 
TYU-30 cartridge pinout:
 
cartridge pin name purpose rom ic pin
1 VSS ground 0V 1
2 /SY sync? 2
3 /AD data? 4
4 CK clock in 8
5 DO data out? 7
6 VDD supply voltage +5V 5

The YM2214 cartridge port signals look very crude, so I suspect a rather primitive protocol, taylored to match the internal structure of the LSI. ROM pin 8 (CK) receives a buffered version of the main clock. Pins 2, 5, 7 stay high for most of the time and there are only very short lo pulses at the start of each note or beat during song playback. The count of pulses (up to 8?) varies, but there are no gaps in between, which hints to unary coding (like a clock strike or mechanical phone dial) instead of normal binary data. Shorting pins during song playback sounds some wrong notes like with mandolin ring.

keyboard matrix

The matrix layout of this keyboard is a mess; particularly the only 25 keys are in almost random order grouped 5x5. Because the CPU seems to be a simple LSI, possibly this was done as a lookup table for simplifying chord generation in the demo songs. Fortunately I had a schematics photo fragment of TYU-40 to see the key order, which else would have been very hard to figure out by hand. The control panel has independent matrix pins, although some outputs can theoretically also be used for keys, but 2 glitches are different and pin 17 behaves like a mixture of pin 23 and 27 when used as key output. Instead of diodes there are only 100 Ohm resistors used for the panel. Empty places do nothing. As eastereggs I found a matrix place muting the main voice and one turning it into a loud distorted buzzy organ-like tone, and closing multiple contacts selects additional rhythms.

This keyboard matrix is based on my own examination, the key order on photo fragments of Yamaha TYU-40 schematics.
18 B1
19 B2
20 B3
21 B4
22 B5
9 F1
10 F2
11 F3
12 F4
13 F5
 
CPU pin
in 1
in 2
in 3
in 4
in 5
in 6
in 7
in 8
in 9
in 10
in / out
 
o
F2
o
F#2
o
F3
o
F#3
o
D3
-
-
-
-
-
out 1
23 N1
o
G2
o
G#2
o
G3
o
G#3
o
E3
R.
waltz
F.
rhythm play
-
main voice
toot
-
out 2
24 N2
o
A2
o
A#2
o
A3
o
A#3
o
D4
R.
swing
F.
auto play
tempo
+
transposer
+
-
out 3
25 N3
o
B2
o
D#3
o
B3
o
D#4
o
E4
R.
rock
F.
free tempo
tempo
-
transposer
-
start/stop
out 4
26 N4
o
C3
o
C#3
o
C4
o
C#4
o
F4
R.
latin
F.
melody cancel
-
-
-
out 5
27 N5
o
G2
o
G#2
o
G3
o
G#3
o
E3
R.
waltz
F.
rhythm play
-
main voice
mute
-
out 6
14 D1
o
A2
o
A#2
o
A3
o
A#3
o
D4
R.
swing
F.
auto play
tempo
+
transposer
+
-
out 7
15 D2
o
B2
o
D#3
o
B3
o
D#4
o
E4
R.
rock
F.
free tempo
tempo 
-
transposer
-
start/stop
out 8
16 D3
o
(C3+F2?)
o
(C#3+F#2?)
o
(C4+F3?)
o
(C#4+F#3?)
o
(F4+D3?)
R.
latin
F.
melody cancel
-
-
-
out 9
17 D4

The input lines are active-low, i.e. react on GND. Any functions can be triggered by a non- locking switch in series to a diode from one "in" to one "out" pin. The 25 key lighting leds employ a separate matrix of in and out pins named like their corresponding key pins, each wired from an LB to LN pin (see pinout YM2214).
 

legend:

"o"
= keyboard key
underlined
= function needs locking switch (i.e. stays active only so long the switch is closed)
R.
= preset rhythm
F.
= function switch
orange
background 
= easteregg (unconnected feature)
grey
background
= unconnected doublet

  • additional rhythms
    Like in classic home organ drum machines, closing multiple rhythm switch contacts (pin 9->{14..17} ) selects additional rhythms. Releasing some of them does nothing (rhythm stays the same) unless a different rhythm contact is closed. This may be a design flaw from old code or LSI design patterns, or that originally a longer multi-contact rhythm slide switch was planned here. Install 4 buttons or a longer slide switch to use this.
  • main voice mute & -toot
    A locking switch at pin 12->14 mutes the main voice (does not affect demos) while closed. Even stranger and more interesting is its twin at pin 12->24; installing a locking switch here makes the main voice roar at full volume and prevents its decay (like an organ) so long it is closed. The tone sounds buzzy and strongly distorts with polyphonic play. I suspect that technically the envelope is rapidly retriggered (like mandolin ring) with the speed of key matrix scanning, which causes this strange behaviour. The purpose is unknown - likely a bug or test mode.

    Unfortunately this is the only main voice change I could find. Apparently it is impossible to assign a different preset sound (e.g. from the sound palette of songbank accompaniments) to the main voice. Even in songs it always stays 'piano'.

pinout YM2214 (GHS-6)

The Yamaha YM2214 (40 pin DIL) is the CPU of the toy keyboards Yamaha TYU-30 and TYU-40. Its internal squarewave sound and percussion generator superficially resembles the DSG YM2163; so it has a time slice DAC and is 4 note polyphonic, but there seems to be no waveform DAC inside, so instead of sawtooth it can only output various multipulse squarewaves with simple volume envelopes. The employed multipulses look symmetic, so their bit loop may be generated by counting the same bit sequence alternatingly forward and backward. The IC has a 4 pin bus to read external music ROMs and outputs for key lighting LEDs. But the 5x5 key matrix supports only 25 keys in a very messy order. The control panel matrix is separate. Stubborn behaviour during shitshot tests hint that it is an LSI made from gate logics with very little software control.

This pinout is based on partial photos of Yamaha TYU-40 schematics and my own examination of the TYU-40.
 
pin name purpose
1 Vss ground 0V
2 IC reset
3 X2 clock out
4 X1 clock in (514kHz)
5 CK clock out buffered (to music rom pin 8)
6 DI (to music rom pin 7)
7 /AD (to music rom pin 5)
8 /SY (to music rom pin 2)
9 /F1 panel matrix in 
10 /F2 panel matrix in
11 /F3 panel matrix in
12 /F4 panel matrix in
13 /F5 panel matrix in
14 /D1 panel matrix out
15 /D2 panel matrix out
16 /D3 panel matrix out
17 /D4 panel matrix out
18 /B1 key matrix in
19 /B2 key matrix in
20 /B3 key matrix in
pin name purpose
21 /B4 key matrix in
22 /B5 key matrix in
23 /N1 key matrix out
24 /N2 key matrix out
25 /N3 key matrix out
26 /N4 key matrix out
27 /N5 key matrix out
28 LN1 led matrix
29 LN2 led matrix
30 LN3 led matrix
31 LN4 led matrix
32 LN5 led matrix
33 LB1 led matrix
34 LB2 led matrix
35 LB3 led matrix
36 LB4 led matrix
37 LB5 led matrix
38 VDD supply voltage +5.2V
39 A01 melodic audio out 
40 A02 percussion audio out 

I measured at the clock pin on oscilloscope 2.3 us (would be roughly 435 kHz). The crystal is labelled "CSB 514P2, (M) F", which according to other Yamaha schematics likely means 514 kHz.

During shitshot on clock or ROM pins the YM2214 only makes the polyphony channels of the demo songs run out of sync or with wrong preset sound, rhythm, transpose or tempo, but it has no complex behaviour during crash. Particularly it is impossible to assign the main voice to anything else than the hardwired 'piano' sound, which hints that the YM2214 is an LSI made from gate logics with only very little software control.

Yamaha TYU-40

This bad joke of 1986 (concluded by CPU number) was the successor of the nice Yamaha TYU-30. While features are almost identical, to cut cost its Music Cartridges were replaced with 3 fake "Music Card" dummies, those only hold down 2 buttons in the cartridge slot by 2 protruding pins to start 18 songs from an internal ROM. Very unusual for mini keyboards is that this thing has a pitchbend wheel (which simply changes CPU clock rate).
 
(Old eBay photo; my specimen lacks all the shown accessories.)

Unlike the TYU-30, the TYU-40 is black and exactly rectangular (nothing has rounded corners); also the sliders are vertical and it generally resembles closer the style of PortaSound non-toy keyboards. The placement and design of the acryl covered card slot is a naughty imitation of the ROM- Pack slot of Casio PT-82.

Due to strong similarities with TYU-30 I only explain here the differences.

different main features:

notes:

I bought this keyboard with the Music Cards missing, but since they were dummies, I simply made my own ones from 2 pieces of sheet plastic, some screws (for the pins) and hotglue. Also the battery spring was rusted off by leaked battery remains, and the analogue pitchbend potentiometer suffers from dirt and the inaccuracy of its mechanical centring spring, thus the pitch tends to vary after releasing the pitchbend wheel.

There exist exactly 3 cards with the following melodies:

music card 1

  1. Beat It
  2. Just The WaY You Are
  3. We've Only Just Begun
  4. Days Of Wine & Roses
  5. Flashdance
  6. Endless Love

music card 2

  1. Michael, Row The Boat Ashore
  2. Oh, Susanna
  3. La Paloma
  4. When The Saints Go Marchin' In
  5. Frère Jacques (Brother John)
  6. Londonderry Air

music card 3

  1. I've Been Working On The Railroad
  2. Twinkle, Twinkle, Little Star
  3. Auld Lang Syne
  4. Joy To The World
  5. Jingle Bells
  6. Silent Night
(I downloaded the manual to identify them.) Due to they are all built into the internal ROM, there is no way to expand this library.
 

hardware details

The Yamaha TYU-40 hardware is basically identical with Yamaha TYU-30 (analysis see here) but instead of the cartridge slot it has (much like Casio EP-20) only one built-in music ROM "Y2411". The pitchbend is implemented by controlling the clock rate of an LC oscillator (IC "LC4969"). The power amp IC is "NJM 386S, JRC 6002" (9 pin SIL).
This is the ROM pinout of Y2411 (from partial TYU-40 schematics photo).


 
pin name purpose
1 VSS ground 0V
2 /SY sync?
3 S1 bank select 1
4 S0 bank select 0
5 /AD data out?
6 VDD supply voltage +5V
7 DO data out?
8 CK clock in

Pin 3 and 4 are pulled lo by 2 buttons in the fake Music Card slot to switch between 3 songbanks (both hi = off). In opposite to the 15 left keys in TYU-30, the songs of TYU-40 are selected through the 6 rightmost keys (key 25 stays "*" to play all), which hints that the protocol was designed to polls every key for theoretically up to 24 songs per cartridge.

 
 removal of these screws voids warranty...    
WarrantyVoid
back to tablehooters collection
 
 
back