This document shows that how you can make your own hardware of Gnuk USB Token by yourself. For software installation and configuration, see README of Gnuk distribution.
Note that it requires some skill of electronics and handicraft.
I assume you make two, one for yourself, and another for your friend.
Enjoy making Gnuk Token!
Parts needed
Part | Price (JPY) |
STM8S Discovery Kit | 750 * 2 |
Consumer IR Receiver Module (Optional) | 100 for two |
USB Cable | 74 * 2 |
Case of TopValu Mint Tablet | 78 * 2 |
Header pin, wire, soldering | alpha |
Total | 1904 + alpha |

Consumer IR Receiver Module (Optional)
Gnuk support PIN input by Consumer IR transmitter such as TV remote controller. If you want to use the feature, you need to add Consumer IR Receiver Module.
I use the one named PL-IRM2161-C438 of Akizuki Denshi.

I buy it at Akizuki, and it costs 100 JPY for two.
USB Cable
I buy it at AkibaOO, it costs 74 JPY (at that time). Similar products are available at 100-yen shop.

Making the token
(6) Make STM32 part of STM8S Discovery Kit as small as possible
Rasp off the edges so that it can fit the case. You should be careful enough for static electricity. I cover the board (especially STM32F103) by aluminum foil when I rasp off the edges.
Note that never remove C14. It is no problem to break the parts of SB1 and SB2.

(8) Connect header pin and USB cable to STM32 part of STM8S Discovery Kit

Signals at the USB connector are like :
Top View D- --v o []<--- Vcc o O <--- GND --^ D+
Signals of the USB cable are:
Connector Signal Cable color ------ (of this product) Standard USB cable ||] | GND ========= Transparent Black ||] | D+ ========= Gray Green ||] | D- ========= White White ||] | Vcc ========= Red Red ------
Signals of the header pin at CN5 is like this:
1 Vdd (3.3V) 2 --- (no pin) 3 TDO 4 TCLK 5 TMS 6 TDI 7 GND 8 nRST
When you rasp off the edge as small, the connection of pin 7 (GND) might be lost. In this case, you need to connect a wire to this pin to GND on the board.
(9) Connect IR module to STM32 part of STM8S Discovery Kit (optional)
See PIN input support for STM8S Discovery Kit for the connection.
