Go Down

Topic: Using a Sony ILX751A Linear CCD with any arduino. (Read 5214 times) previous topic - next topic

ralphnev

datasheet for the ILX751A asks for a clk dutycycle of 40-60%  ..
i don't see that happening with that code ..

hiimzackjones

a 50% duty cycle would be the same time on as the time off. I matched the clock times on and off. thusly it has a 50% duty cycle at 1mhz.

ralphnev

uhh.. no ...


Code: [Select]
sample = analogRead(vout); 
blocks on the order of microseconds ... (l00ks like the mega can do 13us if prog correctly default is 100us)
Code: [Select]
Serial.println(sample); 
blocks on the order of milliseconds at 9600baud...

use a scope & trigger a digital i/o to flip hi/lo & you will see your duty cycle ...
    i'll guess .1% dutycycle

Go Up