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

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


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


熨斗加熱

轉印效果還是不錯的:

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



裁剪成型 :

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

c語言相關文章:c語言教程
單片機相關文章:單片機教程
單片機相關文章:單片機視頻教程
單片機相關文章:單片機工作原理
評論