打造一個基于單片機的“USB“密鑰
最近一直在學(xué)習(xí)單片機C語言,自從看了電影“超能查派”后,就一直想仿制一個里面的那個USB密鑰,所以最近研究了下,做出了這么一個東西,經(jīng)過本作品學(xué)到了不少東西
本文引用地址:http://www.ex-cimer.com/article/201610/307236.htm所用單片機:AT89C51 下載方式:AVR_ISP
做本作品的用意是來學(xué)習(xí)I2C通訊,所以程序方面,在網(wǎng)上找了許多類似功能的程序,然后嘗試刪減修改其功能,比較不同來學(xué)習(xí),最終終于實現(xiàn)了想要的功能,也算對I2C有了初步的了解。
采用24C08儲存密碼,然后采用單片機進(jìn)行讀取,對比密碼是否符合,考慮到美觀問題,所以將此IC封裝在了USB插頭里,所以得先拆一個USB插頭,去除內(nèi)芯:

由于手頭沒有卡尺,所以用普通刻度尺完成封裝的測量


采用熱轉(zhuǎn)印法制作一塊PCB
使用激光打印機打?。?/p>


熨斗加熱

轉(zhuǎn)印效果還是不錯的:

腐蝕(使用的TB上買的藍(lán)色環(huán)保腐蝕劑,有人說是過硫酸鈉,我也不確定):



裁剪成型 :

將所需原件焊上(為避免USB觸點氧化,所以需要鍍錫,然后進(jìn)行打磨):
評論