




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、光電鼠標(biāo)改裝成掃描儀有沒有想過光電鼠標(biāo)也可以改裝成掃描儀?其實(shí)這是可能的,光電鼠標(biāo)里面有個(gè)CCD器件,雖然只有16x16 像素,但是移動鼠標(biāo)時(shí),就可以“掃描”一整片區(qū)域。有個(gè)國外的DIY狂人就做了這種改裝。筆者也想試試這個(gè)新奇的想法,就吧鼠標(biāo)拆了。結(jié)果發(fā)現(xiàn)不能成功。根本原因:人家用的是Agilent的光電鼠標(biāo)傳感器,但是我用的是OM02的。Agilent那顆有個(gè)I2C接口,連幾根線到并口上,就可以用I2C接口讀出里面的內(nèi)容。OM02也有I2C接口,不過這個(gè)接口只能在test mode下使用,但是芯片資料上沒有寫出進(jìn)入test模式的方 法。Front ViewSymbolIODescriptio
2、nTCLKX!XY_LEDRE FAREFBo16noPDRBINVddGHDRQSCAGHDROSCBxg Yi?Y3oX and Y axis quadrature outputsXY_LEDoLED contiol141210RBINLED output contiolROSCAf ROSCBOil chip oscillator frequency controlVdd5.0 voir DC power supplyGNDSystem groundREFA. REFBInternal referencePDIPower down pili, active high9TCLKISeria
3、l port clock for testing modeTIOI/OSerial data br resting mode要是知道怎么進(jìn)入test mode就可以實(shí)現(xiàn)掃描的功能了。Optical mouse camAre you using an optical mouse right now? Ever wanted to see your desktop through the eye on the bottom of it? Me neither, I already know I have to clean my desktop :-)People get bored sometim
4、es, and when I get bored I sometimes open up stuff to find out what makes it tick. One time, I did this with an old optical mouse. Well, a mouse only has 2 chips inside: the optical sensor and a chip for the usb/ps2-interfacing. I looked up the datasheet of the optical sensor (which is an ADNS2610)
5、and it told me the sensor has a tiny 18x18 CCD, which can be read out using the serial port(the one which normallyinterfaces to the PS2/USB-chip).So I start Visual Basic (I usually do my stuff under Linux, but I,m no star at using anything graphical like QT or GTK, so for this quickndirty project I
6、fell back in my old habits) and hack something up using a few wires to the trusty ole parallel port. The result: crisp lo-res b&w imaging :-)As you can see, the mouse was over some text with an e in it.One of the more obvious features of a mouse, however, is that it can detect movement. Combine this
7、 with the just-aquired imaging features, and we havea ghetto b&w handscanner. This is a scanned piece of a receipt:I can understand you can t wait to have such a handy scanner yourself. And now, you can! The software is downloadable here. The software works on mice which use an ADNS-2610 optical sen
8、sor, recognisable by the eight pins, the sun-like mark and the text A2610. I,ve seen this sensor in most cheap optical mice that arent too old. To hook it up, check out the pinout in the datasheeet, then on the PCB cut the traces running from the sensors SCK- and SDIO-pins to the rest of the mouse.
9、Then connect the sensor, using a diode, to a parallel port, like this:pp:adns-2610:25GND12+SDIO51| -+SCKPlug in the USB/PS2-plug (or apply 5V to the Vcc-pin of the sensor), run the software and you should be OK.I got a few questions about whether it would be possible to get the image from the USB or
10、 PS/2-port of the mouse, so you can view the image of an unmodified mouse. The answer is: In theory, it could be possible, if the microcontroller between the port and the sensor-IC supports some kind of pass-through-mode so you can use it to talk directly to the sensor. In practice though, I don,t k
11、now of any chip that supports that kind of mode, so the answer wouldhave to be: Nope, as far as I know, it cant be done.By the way, if you search for datasheets, it seems that Agilent has spun off their optical division to a new company called Avage ( HYPERLINK /pages/home/ /pages/home/).Mails about
12、 thisJoshua Wise mailed me about an optical sensor chip with A2050 on it. Seems the chip is compatible with the A2051, which in itself isnt directly compatible with the ADNS2610, but the basic idea of reading the pixels of the CCD is the same. Joshua created a program for Linux to read out the senso
13、r. Another note: Some mice have the Vcc of the sensor switched by the microcontroller; if you try this hack with such a mouse youll need to connect the Vcc directly to the sensor chip.Carsten Gross mailed me:Hi,Im working on an university project and Im using your webpage as base for my idea to use
14、an optical mouse as motion sensor for a model car.I removed the original optics of the mouse and replaced it with a lens with f=4,6 mm. To check wether the image of the world (as seen by the mouse sensor) is focussed Im using a modified Linux version of the software downloadable on your page: as my
15、mouse has a ADNS-2610 (and not one of the older chips).Please see the attachmentfor a modifiedversionof the softwareby Joshua Wise now running with the ADNS-2610 and Linux.Using the different optics the focus is now near infinity. This way the sensor can be mounted at a safe place in the model car.
16、Perhaps it is necessary to add specles on the floor ;-) The source of the software is downloadable here.He mailed me a second time:Im the meantime we built our own board with the sensor chip here and use it as movement and direction detector.Please see this for the images of the sensor board and the
17、 lens. I connect the synchronousserial port of the ADNS-2610with some simpleglue logic to the SPI interface of the Atmel AT91RM9200. This way I can use the Linux-kernelsand microcontrollershardware support for reading the data from the motion sensor.The lens is adjustable and the focus can be adjust
18、ed to generate a sharp image and the maximum quality value in register 4.EaterOfPies mailed me: This also works with A1610 / ADNS-1610 sensor IC.It appears to bepin compatible but i couldnt find any documentation on it.I have received several questions about using this device as a barcode-scanner. Y
19、es, that would probably be possible, but one would need the right software for that, and Im not interested in writing it. If you think its a goodidea; knock yourself out; the sourcecode of my program is provided in the zip-file :)If you used this information or software in any useful project, I woul
20、dnt mind being mailed about it. One thing: mails containing not much more than It doesnt work here, help! will be deleted.Gnyaneshwar, GSM, India wrote at 1 Jul 2010, 17.30:Hi, I would like to know how get captured the scanned images from optical mouse in to VB. Plz let me know plz send me mail: HYP
21、ERLINK mailto:gnyanu gnyanuDIZA wrote at 19 Jun 2010, 5.29:Hi, its working. i have used LOGITECH: M-BT96a and its running well. thanks to mark_mmjq. i really respect you sir.A.N.other wrote at 4 Jun 2010, 16.46:Ive tried this. Im using a USB optical mouse (microsoft intelimouse), on a laptop running
22、 windows. Im not sure where one of the files should be.GAURAV wrote at 29 Mar 2010, 18.28:hi need some help on spi interface of adns2610 with microcontroller how did u achieve 250ns of hold of LSB address in read cycle plz help my mail address is HYPERLINK mailto:gauravy06 gauravy06Anonymous wrote a
23、t 10 Mar 2010, 5.42:If anyone has a question about the frame rate of that method it is because although the internal image processor has access to the image at 1500 fps the chip was never intended to send that image across the serial line in real operation, that is more or less a debug feature and w
24、hen you request the raw image it doesn,t just store the current image and send it to you, it actually sends you the first pixel of the first image then the second pixel of the next image and so on and so forth. what this means is that its 182 times slower than the actual frame rate which is seen by
25、1500/182 =4.629 repeating which is pretty close to the frame rate you observed. And now that I,ve typed all of that I finally looked up at the post date, oh well maybe someone will find my rantings useful. Im actually thinking about modifying one of these things to mount to the underside of a robot that,ll travel at around 10 fps so I figure if I raise it 12x its designed height and focus it then it,ll work in counts per foo
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 市場調(diào)研員:互聯(lián)網(wǎng)行業(yè)競爭分析簡歷
- 提高辦公效率的關(guān)鍵問題解決方案報(bào)告
- 語言學(xué)英語語音學(xué)知識重點(diǎn)解析
- 云PAAS相關(guān)行業(yè)投資規(guī)劃報(bào)告范本
- 變壓器、整流器和電感器行業(yè)相關(guān)投資計(jì)劃提議范本
- 產(chǎn)品采購及供應(yīng)鏈合作協(xié)議事項(xiàng)說明
- 心臟除顫器相關(guān)項(xiàng)目投資計(jì)劃書范本
- 化學(xué)工程工藝及設(shè)備安全管理試題
- 廣告設(shè)計(jì)相關(guān)行業(yè)投資規(guī)劃報(bào)告范本
- 預(yù)防下肢血栓護(hù)理新進(jìn)展
- 朗讀技巧與朗讀教學(xué)課件
- 最新安全生產(chǎn)管理教材電子版
- 藥業(yè)有限公司內(nèi)部審計(jì)報(bào)告
- 空分制氧工基礎(chǔ)知識題庫完整
- 茶樹栽培學(xué)茶樹的修剪課件
- 辦公用品申購單
- 檢驗(yàn)流程圖樣板
- 《新課標(biāo)高中化學(xué)學(xué)業(yè)水平考試合格考知識點(diǎn)總結(jié)》
- 帶電子手表去學(xué)校的檢討
- 2022年春新冀人版科學(xué)五年級下冊全冊課件
- 導(dǎo)熱油使用操作規(guī)程
評論
0/150
提交評論