Linear CCD Module SPI Serial Port USB TCD1304 Single Chip CCD Precision Optical Measurement Customization
  • Selleren.trulyweb.info
  • Price ofUS$76.00
  • Your PriceUS $71.44
  • ShippingFree Shipping
  • Discount% off
  • Ratings4.5 (616)

Image Details

Linear CCD Module SPI Serial Port USB TCD1304 Single Chip CCD Precision Optical Measurement Customization - 1Linear CCD Module SPI Serial Port USB TCD1304 Single Chip CCD Precision Optical Measurement Customization - 2Linear CCD Module SPI Serial Port USB TCD1304 Single Chip CCD Precision Optical Measurement Customization - 3Linear CCD Module SPI Serial Port USB TCD1304 Single Chip CCD Precision Optical Measurement Customization - 4Linear CCD Module SPI Serial Port USB TCD1304 Single Chip CCD Precision Optical Measurement Customization - 5

Product Details

modname=ckeditor
 
1: setting instructions: @a0080#@
The ASCII code format, where a can be a, B, C, D, F, represents a variety of output modes, in which a, B output with coordinates, such as 253-0x3AE, the 253 representation in the front, and the 12 digits behind the AD sampling value. C, D mode is a continuous output AD sampling value (requiring the customer to make a single request for convenient and fast transmission of data), without output coordinates, so that it can be output faster. The f mode is continuous sampling without output value. The output waveforms of sensors can be monitored by an oscilloscope. The baud rate is 115200, N, 8,1.
0080 represents integral time, which ranges from 0005-0256 to higher. The larger the value is, the longer the exposure time is, and the smaller the output value.
TCD1304 output, the stronger the light, the smaller the value. Because the sensor pixel size 8*200um is wider, so it is more sensitive, very easy to be affected by ambient light, easy to saturation, and needs attention when testing.
At present, all serial products are sold, and SPI is custom-made for customers.
 
A brief introduction to 2:SPI
This is an image acquisition module based on linear CCD. Linear array CCD is a kind of photoelectric detection sensor, which is used in the field of light signal analysis, image scanning, machine vision and so on. The MPS-CCD Driver module integrates linear CCD sensor, drive acquisition unit and SPI bus communication interface, which can be used as a component of photoelectric detection system. When using the module to design the photoelectric detection system, it is unnecessary to pay attention to the hardware circuit design of the signal acquisition part, which greatly reduces the difficulty of the system design.
The Toshiba Co's high-sensitivity linear array CCD contains 3048 usable pixels, and the pixel spacing is 8 microns. The exposure time of CCD is adjustable with 254 stages, which can meet the requirements of various low light level testing occasions. The module uses 12 bit high resolution ADC to sample the sensor, and the sampling frame rate can reach more than 5 frames per second. It has the characteristics of high speed and high accuracy.

MPS-CCD Driver uses standard SPI bus to communicate with external devices, and it can be applied to various embedded processors such as MCU, ARM and FPGA. The module is used as SPI slave device, and the external controller can control the module through SPI communication for image acquisition and data transmission. Communication protocol is simple and easy to use, highly reliable, and easy to integrate with other applications. Combined with the image analysis and processing program inside the controller, the function design of a set of high-performance photoelectric analysis instrument can be easily realized.

Two.performance index
2.1SPI bus
Standard three line SPI from interface
3.3V level standard, compatible with 5V
2.2CCD sensor
Model: TCD1304
Valid pixels: 3048
Pixel spacing: 8 microns
Exposure time: 254 level adjustable
2.3Signal acquisition
Resolution: 12bit
Maximum frame rate: > 5 frames per second
2.4Resolution
12 bits
2.5Equipment size
• 57mm*25mm*21mm
2.6Working temperature

 

0 C - 70 centigrade
Three.application area
Portable photoelectric detector
Optical experiment teaching in Colleges and Universities

 

Micro optical detection and spectral analysis
Hardware description
1.hardware interface
GGND, power and ground wire input
V: VCC, 5V power input port
N: FLAG, signal line for readiness of communication
IInput, connect the MOSI line of the external controller SPI bus to input control command.
OOutput, connect the MISO line of the external controller SPI bus to output data.
CClock, the CLOCK line of the external controller SPI bus is used to input the SPI bus clock signal.
Two.Interface description
The module GND and the VCC interface are connected to the 5V power supply, and the power supply voltage is not higher than 6V.
SPI bus is three bus mode, compatible with four bus mode. When using the four bus mode, the chip selection line of the controller is suspended.
The SPI bus and FLAG pins are 3.3V CMOS level standard, and compatible with some 5V standard IO.
The PI bus clock does not exceed 300K, and the Clock line should be at low level when the clock is idle. When communicating, both Input and Output are sampled on the first edge of the Clock cycle.
When SPI bus communication is carried out, the MOSI foot connected by the controller and the Input and the SCLK foot attached to the Clock must be set as the output mode. The MISO foot connected to the Output and the IO foot connected to the FLAG must be set as the input mode.
communication protocol
1.Overview of the protocol
The communication is initiated by the controller, and the module never initiates communication.
The data sent by the controller to the module is called the control code, and the data returned by the module is called feedback. The control code is 8 bit unsigned integer data, including three cases: (1) the control code is between 0x01 and 0xFE, the command module starts a CCD signal acquisition, and the feedback is meaningless at this time; (2) the control code is 0xff, including two meanings, one is used for the command module to transmit the collected data, and at this time feedback. It should be 0x55; two is used to flip the FLAG pin level state, when the feedback is meaningless; (3) the control code is 0x00, which is used for the command module to transmit the sampling data of one byte, and the feedback is a data byte at this time.
After each module receives a control code and carries out the corresponding processing, the FLAG foot level will turn over one time, that is, the original high level will turn to the low level, and the low level will turn to the high level.
When the controller sends &ldquo, and the signal acquisition &rdquo, the FLAG pin should be in a low level state.
 
Two.Communication process
1.In the start of a “ when collecting - reading ” the controller should first detect the level state of the FLAG foot. If FLAG is low, the module is ready; if FLAG is high, the module is not ready, and the controller should send a 0xff control code to cause the level of the FLAG foot to be turned over once.
2.When the FLAG pin level is low, the controller can send a command code between 0x01~0xfe to the module, and the command module starts to collect the CCD signal. The greater the value of the data is, the longer the exposure time is, the higher the sensitivity of CCD to the weak light signal, but the longer the time of the acquisition is. During the acquisition of CCD, the FLAG pin remains at a low level and can not read operation at this time. When the FLAG foot level is turned to high power, the acquisition process is finished, and the reading operation can be carried out.
3.After the level flip of the FLAG pin is detected, the controller sends the control code 0xff, and the command module prepares to transmit the collected signal data. At this point, the feedback should be 0x55, and if the feedback is not 0x55, then it is necessary to check if there is any operation error. After receiving 0x55 feedback, the controller should monitor the FLAG foot. When the module is ready to transmit data, the FLAG foot level will turn over, and the controller can do the next step.
4.When the FLAG pin level is reversed, the controller begins to enter the reading link. In the reading link, the controller initiates 4096 reading cycles continuously, and reads 4096 data bytes from the module.
5.At the beginning of each reading cycle, the controller sends the control code 0x00 to the module, and at the same time obtains a data byte feedback. When the readings are completed, the controller should monitor the FLAG foot. When the module is ready for the next transmission data, the FLAG foot level will turn over, and the controller can do the next step.
6.The controller performs 4096 consecutive readings to obtain 4096 bytes of data, from the first byte of the first byte, and each two byte represents a sixteen bit sampling value of one pixel point (the first byte is eight bits, the second bytes low eight bits), and a total of 2048 sampling data, according to the 2048 pixels of the CCD.
7.After the controller continues 4096 reading cycles, the acquisition readout cycle ends. The module will be on standby, waiting for the next acquisition - reading cycle to begin. At this point, if you continue sending the read command code, the data read will be 0x00.
 
Communication protocol flow schematic diagram
 
Three.Code examples

unsignedcharSPIF, FLAG, SPI0DAT;

unsignedcharTEST()

{

bit lastFLAG = 0; //Define a bit variable for comparing FLAG level flip.

unsignedcharError = 0; //Define a variable for error reporting

unsignedcharDATA_ARRAY[4096]; //Define an array for storing data

unsignedinti = 0;

 

if(FLAG) //Judge whether FLAG is low level

{

SPIF = 0; //When clearing SPI communication flag bit, different controllers may be different.

SPI0DAT = 0xff; //Send the control code 0xff to flip the state of the FLAG level

while(!SPIF); //Wait for the transmission control code to complete

while(FLAG == 1); //Wait for the FLAG foot to turn to low level

}

 

lastFLAG = FLAG; //Backup FLAG foot level state

SPIF = 0;

SPI0DAT = 0x01; //The transmit control code starts one acquisition, and the 0x01 represents the minimum exposure time.

while(!SPIF); //Wait for communication completion

while(FLAG == lastFLAG); //Waiting for the FLAG level to flip, the module is collecting data for a long time.

 

SPIF = 0;

lastFLAG = FLAG;

SPI0DAT = 0xff; //Send control code 0xff to command module to send data.

while(!SPIF);

if(SPI0DAT != 0x55) //Judge whether the feedback is 0x55

returnError = 1; //Abort function execution and error report

 

for(i = 0; i < 4096;) //Read the data of a byte continuously

{

while(FLAG == lastFLAG); //Wait for the module to be ready

SPIF = 0;

lastFLAG = FLAG;

SPI0DAT = 0x00; //Send readout command

while(!SPIF);

DATA_ARRAY[i] = SPI0DAT; //Keeping feedback data as a high level of sample data.

if( DATA_ARRAY[i] == 0 )

Error = 1; //If the sample data is at a high level of 0, it is considered that the number of consecutive readings exceeds 4096.Error handling

i++;

 

while(FLAG == lastFLAG);

SPIF = 0;

lastFLAG = FLAG;

SPI0DAT = 0x00;

while(!SPIF);

DATA_ARRAY[i] = SPI0DAT; //Keep feedback data as the low point of sample data.

i++;

}

while(FLAG == lastFLAG); //Wait for the module to end the last data transmission

 

//Add signal processing code here

returnError;

}

 

 

Related Product : Usb A Port

EMMC153 169 EMCP162 186 EMCP221 series chip socket tester programmer reader USB port data recovery electronic diy kit phone tool
EMMC153 169 EMCP162 186 EMCP221 series chip socket tester programmer reader USB port data recovery electronic diy kit phone tool
Check Discount
EMMC153 169 EMCP162 186 EMCP221 series chip socket tester programmer reader USB port data recovery electronic diy kit phone tool
EMMC153 169 EMCP162 186 EMCP221 series chip socket tester programmer reader USB port data recovery electronic diy kit phone tool
Check Discount
bulk sms modem gsm sms gateway similar function 8 port gsm modem pool MTK M35 modem
bulk sms modem gsm sms gateway similar function 8 port gsm modem pool MTK M35 modem
Check Discount
HR1203 12V 3A Intelligent Voltage Regulator Current Power 3A Oscilloscope Meter With Fast USB Charging Port Phone Repair Tool
HR1203 12V 3A Intelligent Voltage Regulator Current Power 3A Oscilloscope Meter With Fast USB Charging Port Phone Repair Tool
Check Discount
2 Port Output HDMI + VGA HDMI Dual Monitor KVM Switch HDMI KVM Support USB 2.0 Ports Keyboard and mouse Up to 4K@30Hz HDMI KVM
2 Port Output HDMI + VGA HDMI Dual Monitor KVM Switch HDMI KVM Support USB 2.0 Ports Keyboard and mouse Up to [email protected] HDMI KVM
Check Discount
USB to Parallel Port CNC Kit 6 Axis MPG with Handwheel & LCD for Laptop #SM771 @SD
USB to Parallel Port CNC Kit 6 Axis MPG with Handwheel & LCD for Laptop #SM771 @SD
Check Discount
SUAOKI 28W Portable Solar Cells Charger Sun Light QC 3.0 Quick Charging 3 USB 3.1A Output Port for iPhone iPad Samsung Tablet
SUAOKI 28W Portable Solar Cells Charger Sun Light QC 3.0 Quick Charging 3 USB 3.1A Output Port for iPhone iPad Samsung Tablet
Check Discount
870mm Vinyl Cutting Plotter 34 Sign Cutter Design Maker USB Port Design Artcut Software best
870mm Vinyl Cutting Plotter 34 Sign Cutter Design Maker USB Port Design Artcut Software best
Check Discount
P 1505TA 5A Adjustable Switching DC Regulated Power Supply 9V Output 5V/2A USB Charging Port Laptop Repair Rework
P 1505TA 5A Adjustable Switching DC Regulated Power Supply 9V Output 5V/2A USB Charging Port Laptop Repair Rework
Check Discount
100Model 2000PCS Micro USB 5Pin jack tail,Mini Micro Usb Connector v8 port charging socket for Samsung Lenovo Huawei ZTE HTC ect
100Model 2000PCS Micro USB 5Pin jack tail,Mini Micro Usb Connector v8 port charging socket for Samsung Lenovo Huawei ZTE HTC ect
Check Discount