当前位置:网站首页>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.
边栏推荐
- Flir Blackfly S 工业相机:配置多个摄像头进行同步拍摄
- Big guys gather | nextarch foundation cloud development meetup is coming!
- Golang foundation - data type
- Blackfly s usb3 industrial camera: buffer processing
- Tiflash source code reading (IV) design and implementation analysis of tiflash DDL module
- Zabbix 5.0:通过LLD方式自动化监控阿里云RDS
- FLIR blackfly s industrial camera: explanation and configuration of color correction and code setting method
- XML to map tool class xmlmaputils (tool class V)
- 强化学习如何用于医学影像?埃默里大学最新《强化学习医学影像分析》综述,阐述最新RL医学影像分析概念、应用、挑战与未来方向
- POJ 3177 redundant paths POJ 3352 road construction (dual connection)
猜你喜欢
FLIR blackfly s industrial camera: configure multiple cameras for synchronous shooting
张平安:加快云上数字创新,共建产业智慧生态
云原生混部最后一道防线:节点水位线设计
centos8安裝mysql報錯:The GPG keys listed for the “MySQL 8.0 Community Server“ repository are already ins
ROS学习(25)rviz plugin插件
Modify the system time of Px4 flight control
激光雷达:Ouster OS产品介绍及使用方法
Vingt - trois mille feuilles? "Yang mou" derrière l'explosion de la consommation végétale
解密函数计算异步任务能力之「任务的状态及生命周期管理」
Livox激光雷达硬件时间同步---PPS方法
随机推荐
处理streamlit库上传的图片文件
Zhang Ping'an: accelerate cloud digital innovation and jointly build an industrial smart ecosystem
机器人队伍学习方法,实现8.8倍的人力回报
Freeswitch dials extension number source code tracking
Blackfly s usb3 industrial camera: buffer processing
Cat recycling bin
String to date object
2022/0524/bookstrap
Blackfly S USB3工业相机:缓冲区处理
3D激光SLAM:Livox激光雷达硬件时间同步
ROS学习(二十)机器人SLAM功能包——rgbdslam的安装与测试
【LeetCode】Day97-移除链表元素
Make DIY welding smoke extractor with lighting
Cisp-pte practice explanation (II)
刨析《C语言》【进阶】付费知识【一】
ROS learning (23) action communication mechanism
新一代云原生消息队列(一)
Decryption function calculates "task state and lifecycle management" of asynchronous task capability
BigDecimal 的正确使用方式
Command injection of cisp-pte