help with code for reading a linear CCD

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
ENG_ASE
 
Posts: 2
Joined: Mon Apr 07, 2014 11:45 am

Re: help with code for reading a linear CCD

Post by ENG_ASE »

tldr wrote:shiftin is a serial digital read. it shifts eight bits in to a byte.

your code is shifting in 128 bits, 8 bits * 16 bytes. each bit of each byte in your 16 byte array represents one position in the ccd array, either on or off. apparently the sensor is configured for digital output. it is possible that it can output raw analog values, but that is not what your code is having it do.

i use TSL1401CL ....... if u have code for these line scan sensors, plz help us

ENG_ASE
 
Posts: 2
Joined: Mon Apr 07, 2014 11:45 am

Re: help with code for reading a linear CCD

Post by ENG_ASE »

tldr wrote:shiftin is a serial digital read. it shifts eight bits in to a byte.

your code is shifting in 128 bits, 8 bits * 16 bytes. each bit of each byte in your 16 byte array represents one position in the ccd array, either on or off. apparently the sensor is configured for digital output. it is possible that it can output raw analog values, but that is not what your code is having it do.

i use TSL1401CL ....... if u have code for these line scan sensors, plz help us

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”