Solid State Microdrive Cartridge?

Nagging hardware related question? Post here!
User avatar
bwinkel67
QL Wafer Drive
Posts: 1202
Joined: Thu Oct 03, 2019 2:09 am

Re: Solid State Microdrive Cartridge?

Post by bwinkel67 »

xelalex wrote: Tue Jan 09, 2024 9:35 pm ...you would also need to detect when to read and write. For this you have to check whether the erase coil is emitting a field, and as soon as it does, start reading what the tape head is emitting. Once the erase field is gone, you then switch back to replaying the data into the tape head. Seems all a bit involved, proper alignment could be difficult, and it might be very hard to get it working reliably. But would sure be cool.
I'm not sure this would be an issue. As long as you detect writes, since you are dealing with a digital format, there is no need to erase anything, as that's just an artifact of a physical magnetic tape.


User avatar
bwinkel67
QL Wafer Drive
Posts: 1202
Joined: Thu Oct 03, 2019 2:09 am

Re: Solid State Microdrive Cartridge?

Post by bwinkel67 »

Chris_68 wrote: Tue Jan 09, 2024 8:44 pm Hi,

I might be wrong but the tape in an ordinary audio cassette is 3.8mm and just 1.9 mm or maybe 2mm for a QL same as smaller cassettes used for dictaphones
I have a micro cassette recorder and I'll have to look at its head. The tape size for the QL isn't that much smaller than a normal cassette since the 3.8 mm size has to accommodate two tracks, one for each side.


User avatar
xelalex
Bent Pin Expansion Port
Posts: 94
Joined: Thu Aug 04, 2011 9:55 am

Re: Solid State Microdrive Cartridge?

Post by xelalex »

bwinkel67 wrote: Tue Jan 09, 2024 11:51 pm I'm not sure this would be an issue. As long as you detect writes, since you are dealing with a digital format, there is no need to erase anything, as that's just an artifact of a physical magnetic tape.
Not quite. Checking the erase coil would not be done for erasing anything, but to actually detect when to write. In this setup, it's the only way how we can discriminate between reading and writing, since we don't have access to the R/W line of the Microdrive bus.


User avatar
bwinkel67
QL Wafer Drive
Posts: 1202
Joined: Thu Oct 03, 2019 2:09 am

Re: Solid State Microdrive Cartridge?

Post by bwinkel67 »

So I looked this up online and found pictures of a normal cassette player (https://www.tapehead.org/en/reparatie/d ... tcs-370-r/) and a micro cassette player (https://www.tapehead.org/en/microcassette-info/) that used the same head. Here I've cut/pasted the closeup of each tape head with the player:

Normal cassette player:
cassette.png

Micro cassette player (the closeup here came from a different picture of the same player):
microcassette.png

I did have a spare tape head that was removed from a cassette deck a long time ago, and it measure about 8.1 millimeters. On two of my spare case, it fits in easily on MDV2 and you have to squeeze it in gently into MDV1...these were both UK cases. My US QL is at work so I haven't been able to try it on that. So for some reason, MDV1's opening is slightly smaller. I also have an old Sharp micro cassette recorder and an old telephone answering machine, both packed away in the attic and will find them to measure their head. Hoping that there might be smaller than 8.1 millimeter heads out there.


User avatar
bwinkel67
QL Wafer Drive
Posts: 1202
Joined: Thu Oct 03, 2019 2:09 am

Re: Solid State Microdrive Cartridge?

Post by bwinkel67 »

xelalex wrote: Wed Jan 10, 2024 6:53 am Not quite. Checking the erase coil would not be done for erasing anything, but to actually detect when to write. In this setup, it's the only way how we can discriminate between reading and writing, since we don't have access to the R/W line of the Microdrive bus.
Oh interesting. I guess I was under the impression there would be no signal coming out of the head for reading (or at least a low power signal, not strong enough to disrupt the content of the tape) and it would require amplification of that signal for the reading of information on the QL end. I expected, upon writing, a stronger signal would be sent through the tape head and the erase feature was there just to clear the tape of any cross-talk signals. On some older cassette recorders, the erase head was separate and just a magnet and I know you could record on the tape if that was broken (I had one like that) but the quality wasn't as good.

One thing I will try is hooking my old cassette recorder to my computer via a cassette adpater and seeing if I can not only play audio from the computer to the cassette recorder (what the adapter was intended for) but also see if I can capture audio (i.e. hitting the record button) back on the computer.

[Edit: found this on Quora https://www.quora.com/Is-it-possible-to ... -recording]


User avatar
Pr0f
QL Wafer Drive
Posts: 1308
Joined: Thu Oct 12, 2017 9:54 am

Re: Solid State Microdrive Cartridge?

Post by Pr0f »

That was also my understanding - that if the QL was writing data - it would be present on the head, and would not be there if we were reading - it would expect the tape to be providing it.

Since the QL would normally spin up the tape before attempting to write anything, and as I understand it - it needs to find already written markers on the tape, it would always be in the 'reading state' initially. You won't know a write is coming from the point of view of a cartridge, until it actually starts to write the tape (either as a format or write of a file). Some buffering would therefore have to be done to avoid missing any data, but since the entire capacity of a cartridge is only some 120K - this could potentially be handled.

So presumably the sequence:

Spin up motor
Wait for tape markers
If tape marker detected - cartridge is formatted, if no tape markers - cartidge not formatted - throw an error (for real tapes)
If writing - wait for gap and start writing blocks
if reading - wait for gap and start reading blocks

This is a gross over simplification of course - but that's my understanding of it.


User avatar
xelalex
Bent Pin Expansion Port
Posts: 94
Joined: Thu Aug 04, 2011 9:55 am

Re: Solid State Microdrive Cartridge?

Post by xelalex »

Pr0f wrote: Wed Jan 10, 2024 11:13 am You won't know a write is coming from the point of view of a cartridge, until it actually starts to write the tape.
That's correct. While the QL is reading, the smart cart plays data through its head into the head of the Microdrive (replay mode). When the QL writes, the smart cart reads data with its head from the head of the Microdrive (record mode). Now to distinguish between reading and writing by using only the smart cart head, we could switch it to record mode whenever we're done replaying a sector header or record, to see whether the QL is starting to write. This may work for normal write operations, where only the record of a sector is overwritten. A format however may start at any given moment, while the smart cart may still be in replay mode. I think using the erase field would make switching between replay and record more accurate, in particular since the erase field gets activated slightly before the write activity starts.


User avatar
bwinkel67
QL Wafer Drive
Posts: 1202
Joined: Thu Oct 03, 2019 2:09 am

Re: Solid State Microdrive Cartridge?

Post by bwinkel67 »

Pr0f wrote: Wed Jan 10, 2024 11:13 am That was also my understanding - that if the QL was writing data - it would be present on the head, and would not be there if we were reading - it would expect the tape to be providing it.
I would think for reading vs writing, there would be a voltage passing through the magnetic coil in either instance, but for reading it would be low, to allow for picking up the magnetic pattern on the tape, and for writing it would be high, to change the pattern. Am I thinking of that incorrectly? Is the magnetic pattern on the tape strong enough for no voltage to be required on the coil to pick it up?
Since the QL would normally spin up the tape before attempting to write anything, and as I understand it - it needs to find already written markers on the tape, it would always be in the 'reading state' initially. You won't know a write is coming from the point of view of a cartridge, until it actually starts to write the tape (either as a format or write of a file). Some buffering would therefore have to be done to avoid missing any data, but since the entire capacity of a cartridge is only some 120K - this could potentially be handled.
Since this is done computationally, buffering would not be an issue. Also, the assumption would be, whatever solid state computing mechanism is deployed, it would be fast enough to adjust accordingly. Again, what we are talking about is emulating the properties of a magnetic tape electronically (i.e. however it is stored as data, it would provide the equivalent of magnetic signals through the sold-state micro-cartridge's magnetic head form the computing platform's end).
So presumably the sequence:

Spin up motor
Wait for tape markers
If tape marker detected - cartridge is formatted, if no tape markers - cartidge not formatted - throw an error (for real tapes)
If writing - wait for gap and start writing blocks
if reading - wait for gap and start reading blocks

This is a gross over simplification of course - but that's my understanding of it.
So it seems that first the QL's microdrive mechanism reads the tape (presumably to see if it is dealing with formatted media). Then, if it's about to write, presumably the voltage on the coil would change. On the emulated micro-cartridge end that voltage change would be detected and used to start capturing bits to collect in writing on the virtual tape. I guess the thing to better understand is, when writing, how are the high vs low signals represented and how do those compare to voltages (if any) when reading (i.e. are there any voltages passed to the coil when reading).

For physical magnetic media, when writing, it is being changed by the high/low voltages of the coil, whereas when reading, it is not. So do those low (or non) voltages differ, or is it just that a lack of voltage leaves the tape in a certain state that the erase head left it in (note that I have doubts that is the case, which I will articulate at the end). In that case, reading the tape and writing a low signal to the tape would be identical and make it trickier for detecting read vs write. Perhaps there is some time delta that signals that you are in a write mode (i.e., once a high signal for writing is detected, the next low is assumed to be a low until it stays low for long enough to be back into read-mode).

Here is why I have my doubts. In the previous post I pointed to a Quora post where it said that you could record audio without the erase head. It might not sound as crisps, since the randomness of the remnants of the previous recording could impact the new one (i.e. the magnetic material is all over the place and one pass of recording has to orient it properly and so if you erase, everything is oriented uniformly making that process cleaner). One way to test that is to remove the erase head and record no audio onto a tape that already has audio. If silence is being written in analog, should the original recording remain? It's not a perfect experiment because "silence" may not mean a complete lack of recording in the analog domain, but would the previous signal be stronger than if you record a conversation? Perhaps "silence" could be represented by turning off the mic by plugging in a 3.5 mm cable without a mic on the end (I used to do that to clean a tape as a kid to erase it more cleanly). Something to try.

Unfortunately I don't have the technical know-how to build such a solid-state drive at the moment (not that I'm not willing to learn). However, I think what I can build is an audio version of that using a cassette car adapter, a cassette deck, my computer, and a Python script that can scan for any input on the mic channel. I've done that before when doing a neat experiment to create an in-between translator that allowed my ZX81 to transfer a program into my TRS-80 Pocket Computer. The ZX81 would save to the computer, where a Python script was monitoring the input mic to recognize a decidable level change and started recording, then followed by translating it to the TRS-80 PC-1 format as a wave file, and sent it automatically to the TRS-80 Pocket Computer that was listening on the audio port. I got it to work pretty easily. So stay tuned for that in the next few months (I'll create a video on that).

I would need help in developing a solid-state micro cartridge. What platform is small enough and powerful enough to be able to connect to a magnetic tape head and read and write signals to it, and fit into such a small form-factor, etc... I think it could be a cool project and the end result would be a neat solid-state reproduction of a micro cartridge that could be plugged into a QL (or Spectrum) and behave as a flawless cartridge with no read/write errors. It wouldn't be any better than a vDrive (i.e. just as slow), so the need for it isn't necessarily there, but still, would be cool to develop such a thing. It would be better than the Smart Media floppy disks that were created in the 90's for cameras (i.e. Flash Path), since those needed floppy drivers to deal with that medium -- the solid-state micro-cartridges would behave exactly as actual cartridges with no change to the QL.


User avatar
bwinkel67
QL Wafer Drive
Posts: 1202
Joined: Thu Oct 03, 2019 2:09 am

Re: Solid State Microdrive Cartridge?

Post by bwinkel67 »

I have a Panasonic micro-cassette recorder https://www.amazon.com/Panasonic-Microc ... 00855ZODA/:

61NiFAXyMiL._AC_SL1500_.jpg

Measured its head an it is only about 5 millimeters, so they do make them smaller. Where to source them though, I don't know.


Post Reply