Let’s Build (Retro Edition): The TZXDuino Reloaded

Looking for cool projects to use with my MSX (and other vintage computers) I found the TZXDuino. It is basically a small board that combines the Arduino, a micro SD card slot and a phone jack to play digital copies (TZX files) of tapes and load programs on those computers.

I’m specially interested in the Edu Arana’s TZXDuino Reloaded available here. That version uses the Arduino Nano and SMD components to build the capability to load and play TZX, CAS, TSX and other files for the ZX Spectrum, MSX, Amstrad and other vintage computers.

Decided to build one for me and play with it using the retro computers. As usual I’m documenting all the steps taken to build and configure it here so others can use.

The PCB

This time I went a step further and asked PCBWay to build a nice black version of the board. As usual I had to buy 5 and now I have 4 additional boards laying around here (let me know if you need one!). 🙂

As you can see the board is based on surface mounted components and for those of you looking for a project to improve soldering skills from through-role components to SMD this is a great project.

The Arduino Nano board is soldered on the left side of the board and it is used to power the circuit. There is also the option to install a dedicated USB connector on the top right corner, something I’ll not do in my build.

The board also uses a 744050D logic chip and a LM386M amplifier that is activated/deactivated by a SMD switch that is installed on the bottom right corner of the board.

The rest of the components are the 0805 SMD capacitors, leds and resistors as well as the two jacks dedicated to the sound output and remote.

We also have holes to mount a OLED 0.96 128×64 display and places for the micro SD slot and control buttons (located on the top of the board).

Here is the complete Bill of Materials for reference:

PartValuePackageLink to Buy
ACTREDCHIP-LED0805AliExpress(*)
C1100nfC0805AliExpress(**)
C2100nfC0805(**)
C310ufC0805(**)
C447nfC0805(**)
C6100nfC0805(**)
C5220uf (ECA-0JM221)CPOL-EUE1.8-4 (only with amp)AliExpress
IC14050DSO16AliExpress
IC4LM386M-1SO08 (only if amp required)AliExpress
POWERMICRO-USB-B(or connect directly from Nano)Optional
PWRGREENCHIP-LED0805(*)
R110R R0805AliExpress(***)
R2330RR0805(***)
R3330RR0805(***)
R51kR0805 (adjust to your needs 1k-10k)(***)
S1SWITCH-DPDTSMDAYZ0202AliExpress
SD1TF-HOLDERTF-PULLAliExpress
X1STEREOJACK 3.5mmSTX3100AliExpress
X2STEREOJACK 2.5mmPJ-204BAliExpress
PLAYPUSH BUTTONB3F-31XXAliExpress(****)
DOWNPUSH BUTTONB3F-31XX(****)
ROOTPUSH BUTTONB3F-31XX(****)
STOPPUSH BUTTONB3F-31XX(****)
UPPUSH BUTTONB3F-31XX(****)
M1ARDUINO NANOAliExpress

All Gerber files needed to manufacture the board are available on Edu’s GitHub here. You can just download the zip file and use the PCBWay website to order.

Build Process

To install the SMD components I used a Yaxun 902+ hot air station and unleaded solder paste. I just placed a small amount of paste in the cleaned contacts and used the hot air gun with 30% adjusted flow to heat the pads.

The solder paste is great to kind of “glue” the SMD components to the board and avoid to have them flying around when the air flow starts.

After some time (and some mistakes – I lost one of the LEDs) here is the result.

The hardest part is definitely the micro SD slot. The contacts are super tiny and you cannot use the hot air gun the same way you use with the other components. There are parts in plastic to hold the card in place that just melt down if you use the hot air. I ended up using the solder iron with care and checked a few times to remove all solder bridges.

I used two rows of header pins to prepare the Arduino Nano for soldering.

To test the whole system and replace components if needed I decide to use a piece of a 8 pin socket to connect the OLED screen. After validate the whole circuit and ensure everything is working ok I’ll use stands and solder the screen to the board just above the chips. Here is the board with the Arduino and the part of the socket already soldered.

Software

During the build I found out that there are basically two versions of the “firmware”. Those are actually Arduino sketches that implement all the functionality. The ArduiTape version, that is managed by Duncan Edwards is available here (note that at the time of this writing the link on Edu’s page is broken).

The version I’m using in my build is the MaxDuino, maintained by Ricardo Molina and available on GitHub here (beta and version archives here).

To use the MaxDuino implementation just clone the GitHub repository in your PC, install the required libraries and upload the code to the Arduino Nano using a micro USB cable. Here are the steps you need to use:

  1. If required install the Arduino IDE using the Microsoft Store. Just run the Microsoft Store and search for Arduino.
  2. Connect a micro USB cable to the Arduino and plug it to your PC.
  3. Open the Arduino IDE and configure the board. As I’m using an Arduino Nano clone, I selected the Atmega328P (Old Bootloader) option and selected COM3. You may need to use other COM ports depending on your configuration.
  1. Click on the Tools menu and select Manage Libraries, install the SDFat (1.1.4), and SoftI2CMaster (2.1.7). Ensure you are using the versions I mentioned in the parenthesis. I tried with a new SDFat version and got errors (had to roll back).
  2. Click File, Open and then navigate to where you cloned the GitHub repo. Select the MaxDuino_v1.XX.ino. In my case I initially installed the 1.75 version, so my file was MaxDuino_v1.75.ino.
  3. You will see all the tabs that form the solution. Go to userconfig.h and change the first line according to the configuration you are using for the Arduino board and the OLED screen. In my case I’m using an Arduino Nano with the OLED1306_128_64, 0,96″. So the option is 7. the first line of my userconfig.h file is the following:
  1. Now verify and upload the sketch.

The board will boot and you will see a message saying No SD Card displayed on the OLED screen.

Final Product

Here are a few pictures of the final product already with the acrylic box available on Thingiverse here.

References

Here is the list of references and websites I used to build the TZXDuino:







6 thoughts on “Let’s Build (Retro Edition): The TZXDuino Reloaded

Add yours

      1. Yes, shipping from Brazil would be expensive. I’ll give JLCPCB a try, they are cheaper than PCBWay for UK orders.
        Thanks, AndyP

        Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Website Powered by WordPress.com.

Up ↑

%d bloggers like this: