Pages: 1 [2]   Go Down
Author Topic: Using a Sony ILX751A Linear CCD with any arduino.  (Read 3982 times)
0 Members and 1 Guest are viewing this topic.
Ottawa,Canada
Offline Offline
Jr. Member
**
Karma: 0
Posts: 82
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Newbie
*
Karma: 0
Posts: 11
I like to play with Arduino on the side and sometimes have questions so I come here. Watching the Arduino community grow has been a wonderful experience.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Ottawa,Canada
Offline Offline
Jr. Member
**
Karma: 0
Posts: 82
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

uhh.. no ...


Code:
sample = analogRead(vout); 
blocks on the order of microseconds ... (l00ks like the mega can do 13us if prog correctly default is 100us)
Code:
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
Logged

Pages: 1 [2]   Go Up
Jump to: