[[File:Gotek standard.jpg|thumb|right|Standard Gotek drive]][[File:Custom Gotek drive.jpg|thumb|right|Custom Gotek drive by [[Rodrik Studio]]]][[File:Gotek external.jpg|thumb|External GOTEK for a Schneider CPC 6128 with Centronics cable, 3D printed top cover and splitter cable to connect to the original 5V from the monitor]][[File:Gotek-internal.jpg|thumb|Internal GOTEK with 3D printed frame and 26/34 pin adapter PCB]] == About the GOTEK == GOTEK is a floppy simulator drive emulator which works with the CPCcan be directly attached to computers instead of a normal floppy drive. The drives are popular and cheapadditions to many 80s and 90s computers including the Amstrad CPC.
The basic Gotek has a 7-segment 2 digit display which shows the currently selected disk image, a USB socket for a USB memory stick, and 2 buttons to choose previous and next image.
There are additional mods that can be boughtadded:
* speaker (to simulate the sound of the read/write head stepping as heard in a real drive)
* eject button
* LCD/OLED display (this shows more information including the name of the image)
To be useful on The most recent version of the CPC they need:* appropriate firmware uploaded to them GOTEK (eSFRKC30.gAT4. HxC or FlashFloppy35, based on the AT32F435 chip)* 5v power (an old PC power supply can be used)* a ribbon cable to connect it to usually already comes with OLED display and rotary encoder but is also more expensive than the CPC (e.g. an old PC floppy cable which has both 3.5" and 5.25" connectors)basic models.
If In addition to the GOTEK you have also need * 5V power (e.g. USB power supplies will work - or you can use the technical ability then itmonitor's easy to install 5V power output with a Y-splitter cable)* a 34pin ribbon cable to connect it to the CPC (e.g. an old PC floppy cable which has both 3.5" and 5.25" connectors)* connector cable to update firmware onto of the Gotek, if not, then you can buy Gotek drives with pre-installed GOTEK (depends on firmware.type)
CPC Disk images are put onto a USB drive which is then plugged into the front of the Gotek. On the GOTEK a disk image is selected (via buttons or rotary encoder) and then the GOTEK behaves almost exactly as if it is a normal drive connected to the CPC with the disk being inserted.
Now the Gotek behaves as if it There is only a normal small difference compared to a real drive with older models: the disc motor signal is not connected internally to the CPCGotek. This means the ready signal will be active even if the disc motor is off. The new model SFRKC30.AT4.35 can pass the motor signal and reacts (delayed if wanted) to it for the ready signal. See below for FlashFloppy firmware.
There is a difference compared to a real The GOTEK can replace the internal drive: of the disc motor signal is not connected internally to the Gotek664/6128, e.g. This means the ready signal will be active even if the disc motor internal drive is offbroken. Or it can be used as the external drive B. It can even work as a 3.5" or 5.25" drive for example with Parados or VDOS.
==HxC Floppy Emulator firmwareFirmware Update ==
Before the GOTEK can be used with the Amstrad CPC it needs to be flashed with a custom firmware. The process depends on the type and firmware and is documented on the homepages of the respective firmwares (see below). ===HxC Floppy Emulator firmware=== There is a version of the [https://hxc2001.com HxC Floppy Emulator ] firmware that can be used on the Gotek. It must be purchased from the HxC website and can then be installed and used.
The firmware supports multiple computers and their disk image formats as well as the HFE v1 & v3 file formats.
Once the firmware has been installed into a Gotek it can be updated through the USB memory stick.
===FlashFloppy firmware===
[https://github.com/keirf/FlashFloppy FlashFloppy] is a free probably the most popular firmware for the Gotek written GOTEK. It's well supported by the author Keir Fraser. Although free, Keir welcomes donations to and [https://wwwgithub.macmillan.org.ukcom/ Macmillan Cancer Support charity in the UKkeirf/flashfloppy/blob/master/COPYING completely free].
The firmware supports multiple computers and their disk image formats.
As of today the Firmware installation is more easy than HxC firmware can be installed via and only needs a special USB -A to USB-A cable into a Gotek and it can be updated through the USB memory stickuse of the original software of the microcontroller vendor to install the firmware. The process is very well documented on the FlashFloppy wiki.
To best attach Once installed further updates can be performed via the Gotek to any CPC, use the following FF.cfg setting: # Floppy-drive interface mode interface = shugart # Host platform host = unspecified # Pins 2 & 34 output (drive->host) manual configuration pin02 = high pin34 = rdy # Rotational offset of disk after a track change track-change = realtime # Rotational offset of disk after draining a write to Flash write-drain = realtime # Index pulses suppressed when RDATA and WDATA inactive? index-suppression = yes # Milliseconds from head-step start to RDATA active. head-settle-ms = 12 # Milliseconds delay from motor-on to drive readyUSB memory stick. motor-delay = 200
On the CPC, the following FF.cfg setting can be recommended:
<pre>
# Floppy-drive interface mode
interface = shugart
# Host platform
host = unspecified
# Pins 2 & 34 output (drive->host) manual configuration
pin02 = high
pin34 = rdy
# Rotational offset of disk after a track change
track-change = realtime
# Rotational offset of disk after draining a write to Flash
write-drain = realtime
# Index pulses suppressed when RDATA and WDATA inactive?
index-suppression = yes
# Milliseconds from head-step start to RDATA active.
head-settle-ms = 12
# Milliseconds delay from motor-on to drive ready.
motor-delay = 200
</pre>
The rest of the settings can be used to your liking as they depend on preference and not on hardware emulation.
== Models ==
The best Gotek to buy currently (12/22) is the Model SFRKC30.AT4.35.
This model features a Artery AT32F435 APU and as well a motor jumper. This completes the emulation as it simulates the motor spinup time.
You should get one with Rotary encoder and with 128x64 oled display.
The first firmware This model features a Artery AT32F435 APU and as well a motor jumper. This completes the emulation as it simulates the motor spin-up time. They are usually offered with correct support for RDATA line release Rotary encoder and with OLED display. On the CPC also the AT32F415 models can be a good alternative. They are cheaper and can be upgraded with rotary encoder and OLED display. For full details on which models to use and which to avoid, see here:[https://github.com/keirf/flashfloppy/wiki/Gotek-Models Gotek models on Flashfloppy wiki] ==Physical connection== ===CPC 464 / DDI=== You can directly connect the GOTEK to the DDI-1 cable connector however you would need to cut off the noses on the bottom of the cable - or you use a short IDC extension cable to avoid cutting of the noses. Please keep in mind that the DDI-1 is powered by the original FD-1 3" drive so you still need the FD-1 or need to power the DDI-1 via an alternative method.38 ===CPC 664 / 6128 external=== A 34 pin IDC floppy cable as used in old PCs is perfect. If it even has a 5.25" edge connector you can use it directly. For German Schneider/Amstrad 6128 models you will need a Centronics connector instead of the edge connector. The 6128 Plus also needs a Centronics connector but with a slightly different pinout. [[Image:Floppy_Cable.png|600px|centre]] For full details look here: [[DIY:Floppy_Drives#Multi-Adaptor_Cable_for_External_Floppies_.2F_HxC_emulator]] ===Replacing the drive in a CPC 664 / 6128 or 4FD-1=== As connections are slightly different from a 3.7 (both 5" drive the connections to the GOTEK need to be released modified to replace a 3" disk drive in the original 664/6128 or FD-1 case. Also, as the size of nowa GOTEK is different from a 3" drive a (usually 3D printed)frame is required to hold the GOTEK in place. Firmware 3 * adapt the 26 pin floppy cable of the CPC to fit to the 34 pin connector on the GOTEK - [[DIY:Floppy_Drives#Adaptor_Cable_for_Internal_Floppies_.37 2F_HxC_emulator|26 to 34 pin adapter]]* switch 5V and 412V on the power connector as otherwise you would fry your GOTEK with 12V* set the jumper on the GOTEK from S1 to S0.6a have * put the GOTEK into a bug that prevents (3D printed) frame to properly fit into the 3" drive slot ''Note: If you remove the 3" drive from the CPC it no longer needs the 12V power supply. This means you can now use a single 5V power supply to work correctlyrun your CPC, including the MP-1 or CTM640 for the 464. The older '' ====adapters==== There are prebuilt adapters that can be plugged into the rear of the GOTEK and provide connectors for the 3" connector cables. These can usually be bought on Ebay. Alternatively DIY adapters can be done easily. '''Make 100% sure that you don't accidentally connect the 12V to the GOTEK as this will definitely fry your GOTEK.''' [[Image:Internal_HxC_Cable.png|600px|centre]] ====Gotek models such mod==== If you don't plan to use the GOTEK on any other machine than the CPC you can also make a few modifications to the GOTEK directly and can use the original cables without modifications or adapters. # cut the pin that is labelled as SFR1M44-U100K5V on the GOTEK. Either the whole pin on the side of the drive, SFRM72-U100 so only 3 pins remain or SFRC922Da little more subtle on the backside of the connector so there's a gap between the pin and the PCB. This ensures 12V is no longer fed into the GOTEK. # make a connection from pin 1 to pin 4 of the power connector on the backside of the PCB to connect the GOTEK to the 5V coming from the CPC. # optionally: remove the first 4 pairs of the 34pin connector. Either just cut the pins or desolder them if you have the equipment. This step is not mandatory as you can just connect the cable to the outer most part of the connector. # make a small bridge on the backside of the GOTEK PCB between pin 8 and 10. # optionally: cut the trace on the PCB next to pin 10. Alternatively remember to NEVER close S0 on the GOTEK (or cut the S0 pins). # set the jumper on the GOTEK to S1 Now you can connect the original cables directly to the GOTEK as if it was built for the CPC. <gallery>gotekmod1.jpg|pins to cutgotekmod2.jpg|new connectionsgotekmod3.jpg|cables attached</gallery> ==HXC Manager==
For more details on which models to use Despite its name this software works with both FlashFloppy and which to avoide, see here:[https://githubHxC firmware.com/keirf/flashfloppy/wiki/Gotek-Models]
To connect Especially when using the gotek to the CPC, you can directly connect it to the DDI-1 cable connector (you would need to cut off the noses on the bottom of 3 digit display the cable)[https://norecess464. It can work both as A drive (no 3" drive required) or as drive Bweebly. It can even work as a 3.5" or 5.25" drive for example with parados or VDOS. Please be aware that you cannot use an unmodified DDIcom/hxc-1 together with the Gotek without a normal 3" FDmanager-1 drivev4. That is because the FD-1 delivers the 5V power html HxC Manager] offers a great alternative to the DDI-1 organise and without it, it simply does not get any power mount DSK images. You can select 20 images and assign them to run20 slots which you navigate via the up/down buttons on the GOTEK.
There is no cablemode required - neither for the CPC464 nor for 664/6128 external disk connector[[File:Hxcmanager.jpg|thumbnail|none]]
==Related==
* [[HxC_Floppy_Emulator|HxC Floppy Emulator]]
* [[FlashFloppy]]
* [[ABBA_switch|ABBA switch - switch drive A to B and B to A]]
* [[Guide_on_how_to_connect_a_3.5#Primary_drive_setting_.28OPTIONAL.29|Forcing drive B to be Drive A]]
==Links==
* [https://github.com/keirf/FlashFloppy FlashFloppy on github]
* [https://github.com/keirf/flashfloppy/wiki/Gotek-ModelsGotek models on Flashfloppy wiki]* [https://norecess464.weebly.com/hxc-manager-v4.html HxC Manager]
* [https://hxc2001.com/ HxC Floppy Emulator Homepage]
* [http://www.cpcwiki.eu/forum/applications/cubeios-fat16fat32-rom-for-the-cpc's-with-xmass/ OS-Support]
* [https://youtu.be/QSLcgWLRztE Un Gotek sur CPC 664/6128 sans rien démonter] by [[Rodrik Studio]]
* [https://youtu.be/E3raN1yi54c L'ultime Gotek que j'ai dessiné pour CPC] by [[Rodrik Studio]]
[[Category:Peripherals]] [[Category:DIY]][[Category:DATA Storage]] [[Category:Emulator]]