-
TCD1209DG 정보LinearImageSensor 2022. 4. 1. 22:36
리니어 이미지 센서 도시바의 TCD1209DG 센서의 정보는 다음과 같다.
PDF :
이미지 :
아두이노를 이용한 회로와 코드
코드
void setup() { // put your setup code here, to run once: pinMode(2, OUTPUT); DDRB |= 0xFF; //all LOW, phi2 HIGH PORTB |= 0x04; PORTB &= ~(0x1B) ; } /* * B0 = SH * B1 = phi_1 * B2 = phi_2 * B3 = RS * B4 = CP */ void loop() { /* * phi_1 HIGH, phi_2 LOW * SH HIGH * SH LOW * phi_1 LOW, phi_2 HIGH */ PORTB |= 0x02; //PHI_1 HIGH PORTB &= ~(0x04); //PHI_2 LOW PORTB |= 0x01; //SH HIGH //DELAY // for(int i = 0 ; i < 1000 ; i++){} delayMicroseconds(4); PORTB &= ~(0x01); //SH LOW // PORTB &= ~(0x02); //PHI_1 LOW // PORTB |= 0x04; //PHI_2 HIGH delayMicroseconds(2); for(int i = 0 ; i < 2090 ; i++){ //phi_1 LOW //phi_2 HIGH PORTB &= ~(0x02); //PHI_1 LOW PORTB |= 0x04; //PHI_2 HIGH //RS HIGH PORTB |= 0x08; //RS HIGH //RS LOW PORTB &= ~(0x08); //RS LOW //CP HIGH PORTB |= 0x10; //CP HIGH //CP LOW PORTB &= ~(0x10); //CP LOW //phi_1 HIGH //phi_2 LOW PORTB |= 0x02; //PHI_1 HIGH PORTB &= ~(0x04); //PHI_2 LOW } }
'LinearImageSensor' 카테고리의 다른 글
TCD132D (0) 2023.02.26 라인센서 감도에 사용되는 색온도 정보 (0) 2022.04.09 아두이노 Linear CCD project (0) 2022.04.01 TCD1304AP + 아두이노 자료 (0) 2022.04.01 [비] TCD1201D Code (0) 2022.04.01