CCD sensor raw data reading1.Experimental Purpose2.Introduction to CCD linear sensors2.1 A simple overview2.2 The working principle of linear CCD3.Experimental wiring4.Experimental phenomena5. experimental result
Understand the working principle of CCD and the impact of working environment
The model of the CCD sensor for this module is TSL1401, which is a linear sensor composed of a 1x128 photodiode array, related charge amplification circuits, and an internal pixel data retention function. The array consists of 128 pixels, each with a photosensitive area of 3524.3 square micrometers.
The collection timing triggered by this module is shown in the figure:
conclusion:
1.The wiring of F103C8T6/RCT6 and linear CCD module is as follows
STM32/GD32 | CCD |
---|---|
PA3 | CLK |
PA4 | SI |
PA5 | AO |
VCC | VCC |
GND | GND |
2.F103C8T6/RCT6 and serial port wiring are as follows
STM32/GD32 | USB-TTL |
---|---|
PA9 | RXD |
PA10 | TXD |
GND | GND |
If it's enough to buy our black STM32 and GD32, you don't need to use TTL modules, just use a type-c data cable
The configuration of the serial assistant is
The content output by the serial assistant can be seen, outputting 128 data at a time.
The source code of this tutorial is relatively simple and will not be interpreted. Interested friends can learn it on their own.
Placing the sensor on the same white paper and changing the brightness of different lighting can result in significant differences in the results obtained.
As shown in the following figure:
From this, it can be seen that the sensor is highly affected by environmental conditions, and it cannot function properly in environments that are too dark or too bright (usually normal indoor light can operate).