当前位置:网站首页>Sensor debugging process
Sensor debugging process
2022-07-03 18:11:00 【A special pig...】
“ On a daily basis , We got a new sensor, Generally, it is lit first , Then debug the effect . But there is also a process for lighting and debugging , It needs to be completed step by step according to the process , This article summarizes , About sensor A general process from lighting and plotting to effect debugging . If you think there is something wrong with the text , Or something unclear , Welcome to contact and point out .”
1、Sensor Debugging process

2、 Prepare the material
Confirm the specification of the main chip
Maximum resolution supported 、mclk、mipi Upper rate limit 、 Supported by lane Count 、 Supported by raw Image bit depth 、 Supported by raw Image type (mono/rgb/rgbir)
Hardware schematic diagram
Debug on the customer's motherboard , The customer needs to provide the schematic diagram of the motherboard ; Debugging on the platform board , You need to provide the schematic diagram of the module adapter board 、 Schematic diagram of corresponding male board .
Sensor datasheet
Confirm exposure time 、 How to set the gain , How to modify the frame rate ; confirm WDR The output mode ( Whether it is dol Pattern / dol_virtual channel/ dol_lineinfo).
Initialize setting
towards sensor The specification required by the original factory application sensor setting , Contains information about :mclk、mipi Upper rate limit 、 The resolution of the 、mipi_lane Count 、 Frame rate 、 Output raw Image bit width 、 Plot mode (linera/wdr) .
3、 Configure driver
Good configuration i2c Address 、sensor setting、sensor chip_id;
According to the schematic diagram of the motherboard , stay dts Middle configuration mclk、reset、pwrdn、i2c Pin control , Configure... In the driver sensor pwrdn,reset Pull up and down 、 Power on sequence ;
Other configuration , It needs to be configured according to different platforms , Generally, if there is no problem with the hardware to complete the above configuration , You can light up the map .
4、Sensor Draw a picture
step 3 After completion , If the hardware is ok , Generally, you can plot
if I2C no , It is necessary to check the hardware related problems of the lower board :
1)、 confirm AVDD DOVDD DVDD Hardware voltage
2)、 Confirm according to the schematic diagram reset、pwrdn、i2c、mclk Pin control and voltage value
3)、 confirm mclk frequency
4)、 confirm sensor Power on sequence
If the plot is abnormal ( Image split 、 dislocation 、 Display incomplete ....);
1)、 pat raw chart , confirm raw Whether the diagram is normal .
2)、 if raw The picture is also abnormal , Input the order and check mipi Whether there is an error in the transmission 、 Measure with an oscilloscope mipi wave form , If it's normal , That's usually sensor setting There is a problem , Want to find sensor I went to see the original factory .
3)、 But if raw Figure normal , It should be the driver or ISP What's wrong with the configuration of , Continue to check .
For details, please refer to this article :Sensor bringup Summary of some problems in
5、AE To configure

As shown in the figure above ,AE It is divided into algorithm module and statistics module , The algorithm module is a pure software module . So there are many brand manufacturers , Although using the same platform , But in order to make differentiated products , They are all developed by ourselves 3A Algorithm .AE The statistics module is hardware related , Included in ISP pipeline in .
AE The whole control process , As shown in the above schematic diagram ,AE The algorithm controls a set of exposure parameters ( time of exposure 、sensor Analog gain 、sensor Digital gain 、isp Digital gain ), configured sensor Drive write to sensor In the register (isp dgain Is written directly to the corresponding isp In register , Not through sensor Drive to control ), Output image data .
Data after AE Statistics module , Give the brightness statistics to AE Algorithm module , Again, a group of exposure parameters are calculated in real time , Until the exposure is correct , The cycle is over . When it is powered on for the first time , It's from sensor The driver starts loading , The driver contains a set of default initialization parameters , It can light up the map .
that sensor How to configure in the driver AE ?
1>、 First, configure the exposure time
according to sensor datasheet Configure the maximum and minimum integration time , And then AE Calculated exposure line , Write to the corresponding register that controls the exposure time . Here we are talking about line by line exposure sensor, It is exposed by line , Integral time is relative time ,exposure_time = integration_time * line_time( One line of time ).
2>、 To configure sensor Analog gain 、 Digital gain
Generally, we only need to configure sensor Analog gain is ok , No digital gain , But it will use isp Digital gain , It is AE Algorithmically controlled , No use sensor Configure in the driver . To sum up , About sensor Analog gain control , Generally divided into 3 In the form of .
One is to write sensor again There are specific requirements for the value of the register , There will be one. again_table, Configure the platform and Sensor The matching accuracy of ( Corresponding to several times of gain , What value should be written ), Through investigation again_table write in . Generally, it's from Stevie and gekewei again To configure , All of them need to look up the table and write , The following is sc230ai datasheet Medium again_table .

The other is , write in sensor again The value of the register is continuous , Configure the platform and Sensor The matching accuracy of , Put the platform AE Calculated again Value write sensor that will do . The following is ov08a10 Of again To configure ,0x3503[2]=0 ,real_gain=Gain[12:0]/128, The accuracy is 128,[0-7] Is to configure decimal places ,[8-12] Is to configure integer digits ;0x3503[2]=1, Gain[12:0], Only integer digits 1x,2x,4x,8x .

The latter is as follows imx335 Shown , write in sensor again Register value , It is required to convert into dB write in , It is not written in the way of gain multiples , It's nonlinear , Put the platform AE Calculated gain Value to dB Form write sensor register ;

3>、 Verify whether the exposure and analog gain are configured correctly
Finally, we need to manually control the integration time through the debugging tool 、 Analog gain writing , Then read sensor The value of the corresponding register , To determine whether the written data is correct , To check whether the relevant configuration in the driver is correct .
6、 Image verification
Increase the gain and exposure , Verify whether there is power noise /FPN: As shown in the figure below , Horizontal stripes are generally related to hardware , The vertical stripes are and sensor relevant , Looking for hardware and sensor People from the original factory went to see .

Confirm the lens quality : shooting ISO22233 Analyze the force card raw chart , If the focus of the picture card is not clear , Blurred around , Or one side alone is blurred , Then there is a problem with the lens quality , Need to change the lens .

7、 Image quality tuning
Refer to this article :ISP Overview of commissioning process
边栏推荐
- [LINUX]CentOS 7 安装MYSQL时报错“No package mysql-server available“No package zabbix-server-mysql availabl
- Applet with multiple tabs and Swipers + paging of each tab
- An academic paper sharing and approval system based on PHP for computer graduation design
- 模块九作业
- Change the single node of Postgres database into master-slave
- supervisor监控Gearman任务
- How to expand the capacity of golang slice slice
- Ssl/bio of OpenSSL_ get_ fd
- Redis core technology and practice - learning notes (VIII) sentinel cluster: sentinel hung up
- AcWing 271. 杨老师的照相排列【多维DP】
猜你喜欢

AcWing 271. 杨老师的照相排列【多维DP】

How to draw non overlapping bubble chart in MATLAB

SQL injection -day16

Line by line explanation of yolox source code of anchor free series network (5) -- mosaic data enhancement and mathematical understanding

Talk about the design and implementation logic of payment process

Implementation of Tetris in C language

How do microservices aggregate API documents? This wave of operation is too good

聊聊支付流程的设计与实现逻辑
![[combinatorics] generating function (generating function application scenario | using generating function to solve recursive equation)](/img/e6/9880e708aed42dc82c94aea002020c.jpg)
[combinatorics] generating function (generating function application scenario | using generating function to solve recursive equation)

Analysis report on production and marketing demand and investment forecast of China's PVC industry from 2021 to 2026
随机推荐
Supervisor monitors gearman tasks
Redis core technology and practice - learning notes (VII) sentinel mechanism
How to deploy applications on kubernetes cluster
Managing multiple selections with MVVM - managing multiple selections with MVVM
[combinatorics] generating function (property summary | important generating function)*
Basic grammar of interview (Part 2)
Inheritance of ES6 class
Should I be laid off at the age of 40? IBM is suspected of age discrimination, calling its old employees "dinosaurs" and planning to dismiss, but the employees can't refute it
Ml (machine learning) softmax function to realize the classification of simple movie categories
Micro service component sentinel console call
PHP MySQL inserts data
Fedora 21 installs lamp host server
Setinterval CPU intensive- Is setInterval CPU intensive?
[combinatorics] generating function (use generating function to solve the combination number of multiple sets R)
A. Odd Selection【BruteForce】
Keepalived setting does not preempt resources
AcWing 271. Teacher Yang's photographic arrangement [multidimensional DP]
[combinatorics] generating function (linear property | product property)
Image 24 bit depth to 8 bit depth
c# . Net tool ecosystem