Make Gnuk USB Token by STM8S Discovery Kit

2011-05-14

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
Parts needed for Gnuk USB Token

STM8S Discovery Kit

STM8S Discovery Kit

I buy it at Akizuki, and it costs 750 JPY.

http://akizukidenshi.com/catalog/g/gM-03457/

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.

IR Receiver Module

I buy it at Akizuki, and it costs 100 JPY for two.

http://akizukidenshi.com/catalog/g/gI-03292/

USB Cable

I buy it at AkibaOO, it costs 74 JPY (at that time). Similar products are available at 100-yen shop.

USB Cable

Case of TopValu Mint Tablet

I buy it at Aeon, it costs 78 JPY. We only use the case. Eat the mint before use.

USB Cable

http://www.topvalu.net/items/detail.php?id=102

Making the token

(1) Cut USB cable

Cut USB cable

(2) Remove some parts from the case

Remove some part from the case

(3) Split STM32 part of STM8S Discovery Kit

Split STM32 part of STM8S Discovery Kit

(4) Remove USB connector from STM32 part of STM8S Discovery Kit

Remove USB connector from STM32 part of STM8S Discovery Kit

(5) Cut two edges of STM32 part of STM8S Discovery Kit

Cut two edges of STM32 part of STM8S Discovery Kit

(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.

Make STM32 part of STM8S Discovery Kit as small as possible

(7) Make USB connector as thinner

Make USB connector as thinner

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

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.

Connect IR module to STM32 part of STM8S Discovery Kit (optional)

(10) Put the board into the case

Put the board into the case (1) Put the board into the case (2) Put the board into the case (3) Put the board into the case (4)