TCD1201D
-
[비] TCD1201D CodeLinearImageSensor 2022. 4. 1. 20:39
TCD1201D 이미지 센서 코드 TCD1201D linear CCD connected to Arduino. Pin map: SS(2)=GND OD=5V 8=SH 9=CLK1 10=CLK2 11=BT 12=RS OS=A0. tcd1201d.ino #define TCD_SH 0x01 #define TCD_CLK1 0x02 #define TCD_CLK2 0x04 #define TCD_BT 0x08 #define TCD_RS 0x10 void tcd1201d_setup() { DDRB = 0x1F; } unsigned char tcd1201d_out[1047]; int tcd1201d_dark; void tcd1201d_read() { PORTB = TCD_SH | TCD_CLK1; PORTB = TCD_CL..
-
TCD1201 이미지 센서LinearImageSensor 2022. 4. 1. 20:27
TCD1201D 를 이용한 아두이노 C코드 /* Linear CCD readout lCCD: Toshiba TCD 1201D, 2048 pixel Pinmap: 22 DIL Chip Arduino Pin 1 : OS (Output Signal) A0 2 : DOS (Compensation Output) A1 3 : OD (Power +5V) +5V 4 : RS (Reset Gate) 6 5 : BT (Boost Pulse) 7 6 : P2 (clock Phase 2) 5 19 : P1 (clock Phase 1) 4 21 : SH (Shift Gate) 3 all other pins connected to GND GND */ #define OS_PIN A0 #define DOS_PIN A1 #define..