QLUB Adapter - Initial Release...

Nagging hardware related question? Post here!
Post Reply
User avatar
vanpeebles
Commissario Pebbli
Posts: 2816
Joined: Sat Nov 20, 2010 7:13 pm
Location: North East UK

Re: QLUB Adapter - Initial Release...

Post by vanpeebles »

martyn_hill wrote:Hi!
XorA wrote:I have vanpeebles bugging me to support this in sQLux, is there a guide of what needs done?
Yes, he's a bit like that, isn't he :-)
I saw that!! :lol:


martyn_hill
Aurora
Posts: 909
Joined: Sat Oct 25, 2014 9:53 am

Re: QLUB Adapter - Initial Release...

Post by martyn_hill »

Hi Chr$!
Chr$ wrote:What equivalent PNP bi-polar high-speed switching transistor is suitable instead of a ZTX-510? I'm a noob looking at datasheets and none of the PNP transistors I can find are quite the same. ZTX-510 seems to be a tricky one to find.
I typically use an online resource such as the following to find substitute transistors:
https://alltransistors.com/crsearch.php ... caps=TO226

In this application, a lower 'transition frequency' would suffice, as long as the maximum voltage and power dissipation specs are as good or higher than the 510. The ZTX-550 for example.

The gain (hfe) of any substitute is equally non-critical here as we're driving the transistor in its saturated mode and not trying to drive a lot of current - the NET is only expected to source around 24mA, and with the 47ohm current limiting series resistor, even a short (e.g. if you insert or remove the Jack plug while the line is being driven) would still only require the transistor to source a little over 100mA of (collector) current in to Gnd.

In short, the criteria for any substitute is pretty loose...

All that said, I didn't have too much trouble sourcing the ZTX-510 itself when I last tried, but that was a few months ago...


martyn_hill
Aurora
Posts: 909
Joined: Sat Oct 25, 2014 9:53 am

Re: QLUB Adapter - Initial Release...

Post by martyn_hill »

vanpeebles wrote:I saw that!! :lol:
Couldn't resist - sorry, Pete :-)


User avatar
vanpeebles
Commissario Pebbli
Posts: 2816
Joined: Sat Nov 20, 2010 7:13 pm
Location: North East UK

Re: QLUB Adapter - Initial Release...

Post by vanpeebles »

Hehe, I can see real potential in some kind of mini file server as a means of providing base QL users a way to run files without having floppy drives etc. I’m currently thinning out my QL collection to equip my friends with QLs for the first time, but straight away I run into the usual problem of expansions etc. Floppies are long in the tooth now for people who don’t have any.


User avatar
RalfR
Aurora
Posts: 871
Joined: Fri Jun 15, 2018 8:58 pm

Re: QLUB Adapter - Initial Release...

Post by RalfR »

ZTX-510 is discontinued from "Diodes Incorporated".
ztx510-1165219.pdf
(75.04 KiB) Downloaded 137 times


4E75 7000
User avatar
Peter
QL Wafer Drive
Posts: 1953
Joined: Sat Jan 22, 2011 8:47 am

Re: QLUB Adapter - Initial Release...

Post by Peter »

Chr$ wrote:What equivalent PNP bi-polar high-speed switching transistor is suitable instead of a ZTX-510? I'm a noob looking at datasheets and none of the PNP transistors I can find are quite the same. ZTX-510 seems to be a tricky one to find.
It is not necessary to use a bipolar transistor. If I had to design a board for Martyn, I would use a suitable P-channel MOSFET like the IRLML2244TRPBF and abandon the 1K, 3.9K and 10 K resistors altogther. If it has to be a TO-92 case, the less efficient TP0606 MOSFET should also do that job.

Edit: To be precise, at least the 1K resistor must be removed when using a MOSFET, and left open. Also removing the 3.9K and 10K resitors is optional, those would be replaced by a wire connection.
Last edited by Peter on Fri Jan 08, 2021 10:25 am, edited 1 time in total.


User avatar
Chr$
QL Wafer Drive
Posts: 1304
Joined: Mon May 27, 2019 10:03 am
Location: Sachsen, Germany
Contact:

Re: QLUB Adapter - Initial Release...

Post by Chr$ »

Thanks Martyn/Peter.

I nabbed 3x Teensy++ 2.0 quite cheaply from a seller in Spain (for his last one he put the price up massively - or an algorithm did).

And I've just been able to work out how to program it and after a bit of trial and error yesterday and this evening, that all seems to have gone fine. Quite chuffed about that. Now to making the circuit.


https://QXL.WIN
Collector of QL related computers, accessories and QL games/software.
Ask me about felt pads - I can cut them to size and they have proved excellent for mdv data recovery.
User avatar
Pr0f
QL Wafer Drive
Posts: 1298
Joined: Thu Oct 12, 2017 9:54 am

Re: QLUB Adapter - Initial Release...

Post by Pr0f »

Chr$ wrote:What equivalent PNP bi-polar high-speed switching transistor is suitable instead of a ZTX-510? I'm a noob looking at datasheets and none of the PNP transistors I can find are quite the same. ZTX-510 seems to be a tricky one to find.

BC559 works on a standard QL, I suspect any good PNP switching transistor - the frequencies are not huge, nor are the currents - you want to find low VCE saturation numbers, good HFE (DC gain) in the spec sheet of any candidate for replacement.


martyn_hill
Aurora
Posts: 909
Joined: Sat Oct 25, 2014 9:53 am

Re: QLUB Adapter - Initial Release...

Post by martyn_hill »

Hi again everyone!

For those of you preparing to build the QLUB Adapter, a heads-up :-)

After some troubleshooting Danielle's build, we discovered that the timing of the network packets sent by the microcontroller was all screwed.

We eliminated a number of possible causes - his hardware build was fine and we couldn't initially find anything different between (my) working adapter and his non-working unit.

Until, that is, we compared versions of the Arduino IDE and the 'Teensyduino' libraries - both of which have long since revved in versions since I downloaded them back in 2017...

Seems that something in either the compiler tool-chain or the later Teensyduino libraries has changed and the current QLUB firmware (v2.1f) will need revision to accommodate those changes. I had already in mind a rewrite of the firmware and will do so against the latest available IDE/Teensyduino libraries - but not for a couple of weekends.

In the meantime, should you wish to proceed with your QLUB build, you have two options:

a) Find and download the legacy Arduino IDE v1.8.0 (still available from Arduino) AND the legacy Teensyduino installer v1.35 - which I couldn't find online, but I have a copy on my harddrive... You can then just use the existing firmware source and compile/flash the Teensy board as per the instructions. OR...

b) I have the raw HEX code of the firmware as compiled with the older tool-chain which you can directly flash to the Teensy. Read-up the Arduino docs for how to directly flash with the HEX code - its pretty straightforward :-)

I'm not sure whether I can post the legacy Teensyduino Installer here, so perhaps option b) is best. With that in mind, I attach the raw HEX matching version v2.1f of the firmware.
QLAN-USB_v21f.ino_IDE180_TDv135.zip
(15.45 KiB) Downloaded 160 times
Thanks to Danielle for both being the first early-adopter and also for sparing me 2 hours of his precious weekend to troubleshoot together!

Happy Monday :-)


User avatar
M68008
Trump Card
Posts: 223
Joined: Sat Jan 29, 2011 1:55 am
Contact:

Re: QLUB Adapter - Initial Release...

Post by M68008 »

martyn_hill wrote:b) I have the raw HEX code of the firmware as compiled with the older tool-chain which you can directly flash to the Teensy.
Thank you Martyn, the adapter started working well after I uploaded this version of the firmware!

There was a change in the Teensyduino library which might be the cause of the different timings, I sent you a PM with the details.

After a SBASIC->SuperBASIC conversion of the emulator-side file-transfer program, it also runs on a Sinclair ROM in Q-emuLator.


Post Reply