品牌 资讯 搭配 材料 时尚 热点 行业 首饰 玉石 行情

佳能EF镜头SPI控制|天天快讯

2023-05-31 01:05:24 来源:面包芯语


(相关资料图)

使用廉价的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.

标签:

(责任编辑:)

相关文章

佳能EF镜头SPI控制|天天快讯

​使用廉价的MCU,搭配SPI协议驱动你的佳能摄像头。逆向CanonEF卡口镜头,这个是昨天的文章。ASCOMEFLensCont

2023-05-31 01:05:24

河南紧急下拨2亿元专项用于小麦烘干

​河南紧急下拨2亿元专项用于小麦烘干

2023-05-30 23:06:41

潜山市天柱山中心小学合唱团在安庆市第四届中小学合唱节展演中喜获二等奖

​5月25日,2023年“同心奋进新征程,我为祖国献歌声”安庆市中小学生合唱专项展演暨安庆市第四届中小学合唱

2023-05-30 23:09:15

《南沙方案》三先启区集中开、竣工项目总投资近300亿|全球快讯

​中新网广州5月30日电 (王坚 王子杰)在《广州南沙深化面向世界的粤港澳全面合作总体方案》(以下简称《

2023-05-30 22:16:07

俄交通部:波兰对俄白两国货车的禁令不会影响运输时效 每日热讯

​据央视新闻,当地时间5月30日,俄罗斯交通部新闻处发布消息称,波兰禁止俄罗斯和白俄罗斯两国货运汽车通行

2023-05-30 22:28:01

4299起 华为Mate 40 Pro官翻开售 送质保

​本周,华为正式上架了华为Mate40官方翻新版,目前官翻版的手机提供8GB+128GB、8GB+256GB两种规格,由于是4G

2023-05-30 21:35:50

2023年人民日报高考临考各科提分攻略 怎样抓住得分重点-百事通

​高考,拼的不只是努力和天赋,还有身体和心理。所以说,缓解压力很重要,不要孤军奋战,和志同道合的朋友一

2023-05-30 21:31:25

成都因高温作业中暑算工伤吗?|焦点热门

​中暑经诊断为职业病的可享受工伤待遇劳动者因高温作业或者高温天气作业引起中暑,经诊断为职业病的,享受工

2023-05-30 20:52:06

全球今日报丨航天科工203所晶体元器件助力神舟十六号太空接棒

​航天科工203所晶体元器件助力神舟十六号太空接棒---航天科工二院203所供图。中新网北京5月30日电神舟十六号

2023-05-30 20:35:11

四川攀枝花大学怎么样有什好院好不好

​1、四川攀枝花大学怎么样攀枝花学院是属本省市级高校,他在本市也算有名了,他为整个攀枝花地区的人力资源

2023-05-30 20:15:13

蓝盾、搜于特退市,转债如何交易?两公司董秘办坦言A股无先例,正在等监管意见

​由于正股蓝盾股份、搜于特触发面值退市,且发行人债务压力较大,蓝盾转债、搜特转债的违约风险前所未有。后

2023-05-30 19:21:19

华远地产:减持区间届满 京泰投资已集中竞价减持5.84万股

​观点网讯。5月30日,华远地产股份有限公司披露持股5%以上股东减持股份计划减持时间区间届满暨减持股份结果

2023-05-30 19:19:19

播报:成都洗浴中心小姐(太原洗浴中心小姐)

​今天小编宋丹来为大家解答以上的问题。成都洗浴中心小姐,太原洗浴中心小姐相信很多小伙伴还不知道,现在让

2023-05-30 19:05:12

相约美丽雁江:吃小龙虾,观龙舟赛!

​相约美丽雁江,共赴雁江区“中和小龙虾”美食盛宴。2023年雁江区“中和小龙虾”美食周活动将于6月16日至6月

2023-05-30 19:00:12

印度航空CEO:公司每月招聘600名机组人员

​据Simpleflying消息,印度航空每个月招聘多达600名新机组人员,其中包括飞行员和机组人员。坎贝尔·威尔逊

2023-05-30 18:10:32

要闻速递:中国好人的定义和理解_中国好人的定义

​1、好人的定义应该是有无私奉献精神。2、还有仁慈博爱、公正公平、自己觉悟了再帮助他人觉悟。3、以及能促

2023-05-30 17:52:19

当归炖鸡蛋的正确做法? 今日看点

​1 材料:鸡蛋100克,当归10g,黄芪30g,红枣10克,姜5克,红糖20克2 做法:坐锅烧100克水,姜切丝放入,黄

2023-05-30 17:36:09

超大型未来社区规划亮相,之江楼市将被搅动?

​今天(5月30日),杭州市规划和自然资源局对杭政储出[2022]68号地块商品住宅及商业(设配套幼儿园)项目建

2023-05-30 17:02:53

【天天新视野】2023中关村新型储能及氢能产业发展论坛举办

​26日,2023中关村新型储能及氢能产业发展论坛暨投资房山——海外招商推介大会在京举办。

2023-05-30 16:56:13

抖音怎么做成影视号?如何操作?

​​现在抖音是具有巨大潜力和广泛群众基础的影视号平台。作为一名创作者,如何将抖音打造成为一个影视号,吸

2023-05-30 17:00:34

文家市镇:“十年禁渔”亮剑行动进行中-环球观热点

​为牢固树立“绿水青山就是金山银山”的生态文明理念,坚持打好十年禁渔持久战,依法严厉打击非法捕捞行为,

2023-05-30 16:35:55

梅西拒绝巴黎续约(梅西缺阵巴黎大名单)-全球快资讯

​每日小编都会为大家带来一些知识类的文章,那么为大家带来的是梅西缺阵巴黎大名单方面的消息知识,那么如果

2023-05-30 16:15:03

白条鸡炖多久肉可以吃?

​制作方法:1、首先进行出加工,剁成块用开水髦一下,控净水分。2、然后葱姜煸锅炒,勤翻炒大约炒3分钟,然

2023-05-30 16:04:23

【镜头里的青海】茫崖:戈壁深处候鸟的家园

​5月的青海省海西蒙古族藏族自治州茫崖市,不断地焕发出勃勃的生机,新一季的鸟类迁徙已近尾声,“老朋友”

2023-05-30 15:20:10

报道:琅琊榜夏江是谁演的_琅琊榜夏江是谁简介介绍

​对于琅琊榜夏江是谁这个问题感兴趣的朋友应该很多,这个也是目前大家比较关注的问题,那么下面小好小编就收

2023-05-30 15:18:52

“晚年凄凉,必有征兆” :人过五十,身上出现这些“怪事”,警惕!

​企业BOSS成功论坛:不一样的观点,不一样的故事!每天为您提供,国际时事,热点资讯,经商策略,文化哲学等

2023-05-30 15:05:24

有用即真理辨析题(有用即真理)

​大家好,小乐来为大家解答以上的问题。有用即真理辨析题,有用即真理这个很多人还不知道,现在让我们一起来看

2023-05-30 14:32:59

【环球新要闻】安丘市大盛镇汶河社区服务队

​1、安丘市大盛镇汶河社区服务队是由安丘市慈善总会领导下的志愿团体。2、成立于2017年5月15日。文章到此就

2023-05-30 14:11:28

肇民科技:5月29日融资买入85.54万元,融资融券余额4508.12万元-环球热头条

​5月29日,肇民科技(301000)融资买入85 54万元,融资偿还106 2万元,融资净卖出20 66万元,融资余额4508 12万元。

2023-05-30 13:05:42

马斯克发推评价中国航天工程计划:比大多数人意识到的更加超前

​【环球网报道】在5月29日神舟十六号载人飞行任务新闻发布会上,中国载人航天工程新闻发言人、载人航天工程

2023-05-30 12:41:13