As explained in the previous post, I modified my Sangean ATS 909 receiver by equipping it with a digital RDS output. May it now be told in pictures.
Of course everything had to start from reading some service manuals and data sheets. Energy drinks were also necessary. Yes, I colored the board schematic with color pencils for ease of use!
I figured I would need four separate outputs from the decoder (data, clock, quality bit, and ground) so I chose a 4-pin mini-DIN plug in one end of the cable. The other end is a familiar DB-25. Data is input via the parallel port's ACK, BUSY, and Paper Out pins; I picked a random GND pin for the ground.
The RDS circuit is hidden under the corner of an RF shielding plate. It would have been tedious and mistake-prone to remove the shielding, so I just used my precision soldering skillz and left all the wires outside the plate. Now the chip was wiretapped.
The front cover has a mini-DIN-sized placeholder-looking feature that I used for this purpose. Probably it was related to the speaker's airflow though. I hotglued the 4-pin connector in place. Holes in the control board came in handy when wires needed to be taken through.
The socket fits nicely in the front cover. I had to remove the Sangean logo from its place but hotglued it back next to the connector. (If something else looks dissimilar to the classic ATS 909, it's because I've also replaced the default backlight LEDs with super bright ones!)
I'm relieved the radio still works! Next it will be time to test the connection. It won't happen until my cheap parallel-to-USB converter arrives in the mail, since my laptop is new enough not to have a parallel port.
But even now already, when I wiggle the connector around, the speaker audio gets superimposed by data! Of course this isn't exactly what's supposed to happen since it means I've shorted a connection, but OMG! It's audible and even more evident in the oscillogram:
Update: The converter (idVendor=1a86, idProduct=7584) arrived, but apparently it just emulates a USB printer and low-level parallel bit-banging is not even possible. So I took the thing apart and built a simple twin-channel voltage divider in place of its internals that I then attached to a stereo phone jack (all parts salvaged from an old radio). Data goes to left channel, clock to the right; I'll just have to ignore the quality bit.
I connected this to the sound card's line in and behold! The clearest possible data and clock signals on separate channels!
There is slight crosstalk, probably via ground since I used quite small resistors for the voltage divider. But the data is good:
This means I can completely comment out my software clock recovery and PLL. I rolled the FM dial and logged some stations.
Now I'm going to bed.
![[Image: The schematic diagram with the part containing the RDS decoder chip magnified. The chip has 16 pins, 4 of which are encircled and labeled Qual, Data, Ground, and Clock.]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUXpgcyZeQN-RXg5qFKVHusRWY8bbOQyo0zcZMSSYKrTq3VuJr_4RmXaVV_43MW8HDE7sNGQyp8sleGDFdY8E5lPBW1W37dxlctSYZLDIaxLvAd6Wrwz0iAWp_YY1IBvOO7zWTb8IdIM3v/s320/path4119.png)
![[Image: Oscillogram showing a signal alternating rougly between two states, with a lot of noise superimposed.]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCwBsBZxbldi2kj0X70n1FPq3CzEXS_fJ79avMB9cdxWh218Z-YyBw5li1QDuNDd-riGFmaufVzyYEX5Qa197F0jZVlHuG5x1Fv0_6M5vKqrNmXobhrTRT36U1kPkuc0gE7mACr0ariUqj/s450/dataa.png)
![[Image: Schematic diagram of the cable and connector setup with a voltage divider. Pins 10 and 12 of a DB-25 are connected to arbitraty points A and B, respectively, via 1 k-ohm resistors. Point A and B are both connected to point C via 200 ohm resistors each. Point C is connected to pin 23 of the DB-25. Points A and B are connected to terminals 1 and 2 of a 3.5mm socket, respectively.]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvLkvon4u5aRTFIEGkjJYcxHsA_pG-FQ_7moiZ4rXlz3nKMaiBeYK96rGUPS-Rj7jiimDfHPrNYwE_tNsk-ZKxvL0Xmn-8shzj-EYldCLzhnW6aV-1jvQ9kOfbhIGF8PaUFF3KnnqWg23B/s320/voltdiv-schematic.png)
![[Image: The above voltage divider in a series of photos, showing how it fits inside the casing of a parallel port printer adapter.]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRRfSRyYjO-ssZx3cCf4oOND9q-jvrJk0XMkYIP7e2FPJO4Gms4AxTS332dJmbkUdaPLodZ-9bowBDy4BIag9qB0nSu3A1UUGZlsFEmUFXJL8_YnlhIPjovex1YQgKB-x_xdOMTKsmx4gD/s320/voltdiv.jpg)
![[Image: A two-channel oscillogram. One channel shows a square wave with regular transition intervals, the other one transitions only at some transition points of the first one.]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiA8HzuyjF1tectW2iwsz_VM9JCXZimkpLiM3oyvAZmYc8rRS6yOJVD3UBBUXrtCLHdocW4AD9zsWiOvICUAXA2ubU-pGREm3eZmfjYzhUQn_UED54pK2vgG4d6qkKhG9Ammb_UUdtdXH8D/s450/signals.png)
![[Image: Screenshot of a terminal and a small GUI window. The terminal is showing a stream of text describing RDS information. The little window is showing the text YLEYKSI and Muistojen bulevardi.]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeX4MZ3sKUwXPwWmDBNfjnekHdmS81c-_MCfgxOllMpNl5WS0xomTuqB7R9Pe0wjEs_tv9ZnlRvA-8G1IgtHk0yt5vBQE5PKR5izGnChCpCrr_8N4X9jCSvBYf7khyrmD-BjPxPLzBmIqN/s320/Screenshot+-+11082012+-+01%253A07%253A19+PM.png)
