一区二区三区欧美视频_国产在线看一区_一二区成人影院电影网_空姐一级毛片_欧美亚洲国产成人综合在线_久久看视频

世界播報:佳能EF鏡頭SPI控制
2023-05-31 01:25:19 來源:面包芯語 編輯:


(相關資料圖)

使用廉價的MCU,搭配SPI協議驅動你的佳能攝像頭。逆向Canon EF卡口鏡頭,這個是昨天的文章。ASCOM EF Lens Controller – control unit for Canon EF/EF-S lenses. It allows you to control lens using the ASCOM platform tools.Features (supported by driver):focus control;aperture value control;temperature measure (additional sensor required, e.g. popularDS18B20).This device uses SPI interface. Description of lens commands were taken from published articles about reverse engineered internal Canon protocol.Connection to lens is easy. It is only necessary to know pinout of itscontacts. This information is available on the Web. Just ?google? canon efpinout. I recommend to use a scheme, shown below.This picture describes electric pins on lens or special macro-adapter which issuitable for soldering wires. You can buy adapters in any photo shop or onweb stores such as EBay. It looks something like this.Next component – microcontroller, which support SPI interface. It may beATmega, STM32, PIC or board, based on its controllers. Factory PCB has allrequired components and will be easy for beginners while simplemicrocontroller allows you to make own custom device.I used Arduino Nano based on ATmega328P controller. Its performance isenough for our purpose. Small size and low cost - its advantage.Pinout diagram above shows the designations of Arduino Nano contacts. Sowe need:Note: only huge lenses may require external power supply. I tested mylenses (EF-S 18-55, EF 50/1.8, EF200/2.8L) and measured their currentconsumption. It was less than 200 mA. It means that these lenses can bepowered directly from 5V Arduino pin. Entire system will be powered fromUSB, and there is no need for additional wires.You can experiment on the breadboard but for the final design it is better touse a more respectable solution.I want to point out one feature associated with Arduino. Now, these boardsuse the Automatic (Software) Reset, which is convenient for firmware uploadbut do not really need us. The fact is that:One of the hardware flow control lines (DTR) of the FT232RL is connected to thereset line of the ATmega168 or ATmega328 via a 100 nanofarad capacitor. Whenthis line is asserted (taken low), the reset line drops long enough to reset the chip.This means that each connection (?Connect? button in MaximDL orFocusMax) to the device will cause it to reboot. Result is 3-5 sec delay. Ifyou are not satisfied, simplest solution is to unsolder DTR pin to preventtransfer of reboot signal. I used ?ChinaDuino?, it has CH340G as UART chip.Original Arduino uses FT232RL.These schemes allow you to easily find the DTR pin. After making thesechanges, device connects immediately.SoftwareSoftware consists of two main parts:Arduino sketch (firmware) is responsible for interaction with lens;ASCOM device driver.Unit relations shown in the figure below:The red highlighted functionality implemented in addition to the mainfunctions realized in driver pattern. Focuser driver has no iris controlfunctions by default. But aperture value control is important feature.代碼使用我就不寫了,后面我會上代碼:Use P# to get current focus position (5000 by default)Use Mxxxx# to move focus, e.g. M5270#Use Axx# to change aperture value, where xx – count of steps (1/3EV). 0 – wide open on your lens.

下載這個控制軟件,有一種年老失修的美

ASCOM

Click ?Properties?, you can see driver setup dialog. Set requiredparameters:

COM Port Number – controller connection port;

Lens Model – choose your lens from drop-down list. In fact youcan use any lens. Just add it to lens.txt which is in driverinstallation folder and insert all aperture values of lens;

Aperture Value – select required aperture value. Changes will besaved in EEPROM of Arduino chip.

After all changes are saved, you can connect to the controller.Temperature will be displayed only if you connect a sensor. I usedanalog KTS-1 sensor. GET TEMPERATURE section in my sketch work with this sensor. You can use any other. Do not forget to correct your sketch. If you do not need to measure temperature just comment this strings.

關鍵詞:

相關閱讀
分享到:
版權和免責申明

凡注有"環球傳媒網 - 環球資訊網 - 環球生活門戶"或電頭為"環球傳媒網 - 環球資訊網 - 環球生活門戶"的稿件,均為環球傳媒網 - 環球資訊網 - 環球生活門戶獨家版權所有,未經許可不得轉載或鏡像;授權轉載必須注明來源為"環球傳媒網 - 環球資訊網 - 環球生活門戶",并保留"環球傳媒網 - 環球資訊網 - 環球生活門戶"的電頭。

主站蜘蛛池模板: av免费av | 欧美在线观看视频网站 | 久久久久免费精品国产小说色大师 | 成人做爽爽爽爽免费国产软件 | 一级外国毛片 | 国产91在线高潮白浆在线观看 | 销魂美女一区二区 | 三人弄娇妻高潮3p视频 | 91看片在线观看视频 | 毛片在线播放视频 | 美女黄影院 | 女教师~淫辱の动漫在线 | 亚洲成人在线视频网站 | 国产精品91在线 | 亚洲一区二区三区高清 | 久久影院一区二区三区 | 最新午夜综合福利视频 | 欧美成人精品一级 | chinese-xvideos| 成年性羞羞视频免费观看 | 蜜桃传免费看片www 一本色道精品久久一区二区三区 | 欧美日韩一 | 国产精品久久久久久久久久东京 | 万圣街在线观看免费完整版 | 日韩精品羞羞答答 | 成人444kkkk在线观看 | 黄色片视频在线观看 | 青草久久久久 | 色婷婷一区二区三区 | 亚洲午夜天堂吃瓜在线 | 毛片大全免费看 | 久久精品亚洲一区 | 免费观看亚洲视频 | 免费毛片随便看 | 国产欧美日韩在线不卡第一页 | 精品国产91久久久久 | 中文字幕一二三区芒果 | 国产亚洲精品视频中文字幕 | 激情小说激情图片激情电影 | 欧美成人精品一区二区男人小说 | 91短视频在线观看视频 |