当前位置:网站首页>FLIR blackfly s usb3 industrial camera: how to use counters and timers
FLIR blackfly s usb3 industrial camera: how to use counters and timers
2022-07-07 02:15:00 【The moon shines on the silver sea like a dragon】
Flir Blackfly S USB3 Industrial camera : How to use counters and timers
This document provides an overview of Blackfly S How to use the counter and timer in the camera .
Blackfly S Adopt the advanced ice shape sensor in the industry .
It's powerful , You can easily generate the exact image you need , And accelerate application development .
Including image capture and Automatic and precise manual control of camera preprocessing .
Blackfly S Provide GigE、USB3、 Suit and board versions .
Accurate image SONY CMOS Choices among sensors include : Global shutter 、 Polarization and high sensitivity BSI sensor .
The physical drawing is as follows :
The concept is introduced
Counter and timer functions can be realized :
- Create a function generator
- Record the number of times the signal is triggered
Some general applications include :
- Input to logical block
- External signal output is used to control external devices
- Track the number of camera exposures
- Track the number of external input signal triggers
- Trigger the camera in a predefined time period
** Be careful :** Use SpinView Application to demonstrate the configuration and execution of counter and timer control .
Configure counter and timer control
The following description corresponds to the red box serial number above
- 1. Select counter Counter 0 perhaps Counter 1
- 2. Select the signal source triggered by counter increase For example, in the picture Line0
- 3. Trigger events include low level trigger 、 High level trigger 、 Falling edge trigger 、 Rising edge trigger 、 Arbitrary edge trigger
- 4. Set the number of counter delays , To represent several counts to trigger the counter start event
- 5. Design the number of counter durations , To indicate that the timer end event is triggered after several counts
- 6. Select the signal source that controls the opening of the counter
Select the trigger event that controls the start of the counter
The level sources of triggering events can include the following :
- Trigger signal with fixed frequency
- Line input
- User output
- Counter start event
- Counter end event
- Logic module output
- Exposure begins
- The exposure is over
- Frame trigger wait
The status of the counter can be changed from nodemap Get active or idle
produce PWM(Pulse Width Modulation) Routine for
The goal of the example is to achieve a 50hz Duty ratio 70% Of PWM The signal
First step Set up GPIO The connection of the mouth
The first step is to set the output from the camera PWM Signal hardware . For this routine , Use an oscilloscope to display this signal .
Camera's GPIO The definition of mouth varies greatly according to the model of camera .
Blackfly S (BFS) Is defined as follows :
BFS The camera has a 6 Pin GPIO mouth . It includes a non isolated output pin and an optically isolated output pin
If you use this optical isolation pin to output ( This routine is ), The camera needs a pull-up resistor to enhance PWM The signal .
Configure hardware camera output PWM need :
- 1 Connected to the camera pin 4 Pin ( White line , Optical isolation output ) To the signal input end of the oscilloscope
- 2 Connected to the camera pin 5 Pin ( The blue line , Light isolation GND) To the ground signal of the oscilloscope
Configure the pull-up resistor to enhance the signal :
- 1 Connect a 10kΩ One end of the resistor to the camera pin 3 Pin ( The red line ,3.3v Output )
- 2 Connect the other end of this resistor to the camera pin 4 Pin ( White line , Optical isolation output )
- 3 Connected to the camera pin 6 ( Brown thread ,GND) To the camera pin 5 ( The blue line , Light isolation GND)
Second parts Set up the upper computer software (SpinView)
The following section shows how to SpinView Set in PWM
1 Select a counter Counter 0 perhaps Counter 1
2 Select in counter events MHz Tick It stands for 1MHz The signal of
3 In order to establish 50Hz The periodic signal of , Need to set up Counter Duration by 20000 The calculation is 1MHz/50Hz=20000 cycles/duration
4 Definition Counter Duration and Counter Delay To establish 70% Duty cycle of
The calculation method is Counter Delay = 30% x 20,000 = 6,000
Counter Duration = 70% x 20,000 = 14,0005 stay Counter Trigger Source Choose from FrameTriggerWait, Then set the Counter Trigger Activation by Level High
6 prohibit Exposure Auto, Set up Exposure Time Less than 1/50 s
7 Can make Trigger Mode choice Trigger Source by Counter0 Start
8 To configure GPIO bring Line1 by Output. then Line Source by Counter 0 Active
9 Can make 3.3V Of line ( The red line )
10 You can see the configuration through the oscilloscope PWM Output
Routine to detect the number of missing triggers
Number of lost triggers = Total triggers - Number of exposures
adopt Counter0 Count Total number of triggers
adopt Counter1 Count Number of exposures
The method is as follows :
- 1 prohibit Exposure Auto And set a longer Exposure Time such as 3.5s
- 2 Can make Trigger Mode And set up Trigger Source by line0 Rising edge
- 3 Connect Line0 To the camera
- 4 To configure Counter 0 Count the number of triggers :Counter Event Source choice Line 0 ,Counter Event Activation Set up Rising Edge, then Trigger Source choice Line0 ,Counter Trigger Activation choice Rising Edge, Last Counter Duration Is a larger value ,Counter Delay by 0
- 5 To configure Counter 1 To record the number of exposures
First Set up Counter Event Source by ExposureStart, Set up Counter Event Activation by Rising Edge
then Set up Counter Trigger Source by ExposureStart, Set up Counter Trigger Activation by Rising Edge
Last Counter Duration Is a larger value ,Counter Delay by 0 - 6 Can make 1Hz The trigger source of , The camera starts taking pictures
- 7 stay SpinView In the right , Refresh , such Counter Value The specific value will be displayed
see Counter0 Of Counter Value
And then choose Counter 1 , Write down the value of the counter - 8 Finally, calculate the loss trigger
Namely Counter0 Value – Counter1 Value Value 3-1 by 2.
边栏推荐
- ROS学习(24)plugin插件
- centos8安裝mysql報錯:The GPG keys listed for the “MySQL 8.0 Community Server“ repository are already ins
- ROS学习(21)机器人SLAM功能包——orbslam的安装与测试
- Ros Learning (23) Action Communication Mechanism
- 刨析《C语言》【进阶】付费知识【二】
- LeetCode. Sword finger offer 62 The last remaining number in the circle
- 解密函数计算异步任务能力之「任务的状态及生命周期管理」
- 建議收藏!!Flutter狀態管理插件哪家强?請看島上碼農的排行榜!
- Recommended collection!! Which is the best flutter status management plug-in? Please look at the ranking list of yard farmers on the island!
- Make DIY welding smoke extractor with lighting
猜你喜欢
张平安:加快云上数字创新,共建产业智慧生态
ROS learning (XIX) robot slam function package cartographer
ROS learning (XX) robot slam function package -- installation and testing of rgbdslam
centos8安装mysql报错:The GPG keys listed for the “MySQL 8.0 Community Server“ repository are already ins
Twenty or thirty thousand a leaf? "Yang Mou" behind the explosion of plant consumption
FLIR blackfly s usb3 industrial camera: white balance setting method
UC伯克利助理教授Jacob Steinhardt预测AI基准性能:AI在数学等领域的进展比预想要快,但鲁棒性基准性能进展较慢
ROS学习(二十)机器人SLAM功能包——rgbdslam的安装与测试
Analyze "C language" [advanced] paid knowledge [i]
【Unity】升级版·Excel数据解析,自动创建对应C#类,自动创建ScriptableObject生成类,自动序列化Asset文件
随机推荐
How can reinforcement learning be used in medical imaging? A review of Emory University's latest "reinforcement learning medical image analysis", which expounds the latest RL medical image analysis co
[leetcode] day97 remove linked list elements
【唯一】的“万字配图“ | 讲透【链式存储结构】是什么?
Web开发小妙招:巧用ThreadLocal规避层层传值
1500万员工轻松管理,云原生数据库GaussDB让HR办公更高效
Recognition of C language array
FLIR blackfly s industrial camera: configure multiple cameras for synchronous shooting
PartyDAO如何在1年内把一篇推文变成了2亿美金的产品DAO
长安链学习笔记-证书研究之证书模式
centos8 用yum 安装MySQL 8.0.x
ROS learning (26) dynamic parameter configuration
大咖云集|NextArch基金会云开发Meetup来啦!
组合导航:中海达iNAV2产品描述及接口描述
#yyds干货盘点# 解决名企真题:最大差值
#夏日挑战赛#数据库学霸笔记(下)~
Blackfly S USB3工业相机:缓冲区处理
String or binary data will be truncated
Jacob Steinhardt, assistant professor of UC Berkeley, predicts AI benchmark performance: AI has made faster progress in fields such as mathematics than expected, but the progress of robustness benchma
ROS learning (22) TF transformation
The last line of defense of cloud primary mixing department: node waterline design