본문 바로가기

유수봉 교수의 AI

유수봉 교수의 AI-1주차

# 1번실습
# 2번실습

 

# 3번실습

 

사용한 코드

 

 

// C++ code
//
void setup()
{
  for(int N=0; N<10; N++) {
   pinMode(N, OUTPUT);
  }
}
void cls() {
  for(int N=0; N<10; N++) {
    digitalWrite(N, LOW);
  }
  delay(100);
}
void loop()
{
  digitalWrite(2, HIGH);  digitalWrite(3, HIGH);  digitalWrite(4, HIGH);  digitalWrite(5, HIGH);  digitalWrite(6, HIGH);  digitalWrite(7, HIGH);  digitalWrite(8, LOW);  digitalWrite(9, LOW);
  delay(500); 
  //cls();
  
  digitalWrite(2, LOW);  digitalWrite(3, HIGH);  digitalWrite(4, HIGH);  digitalWrite(5, LOW);  digitalWrite(6, LOW);  digitalWrite(7, LOW);  digitalWrite(8, LOW);  digitalWrite(9, LOW);
  delay(500); 
  //cls();
  
  digitalWrite(2, HIGH);  digitalWrite(3, HIGH);  digitalWrite(4, LOW);  digitalWrite(5, HIGH);  digitalWrite(6, HIGH);  digitalWrite(7, LOW);  digitalWrite(8, HIGH);  digitalWrite(9, LOW);
  delay(500); 
  //cls();
    
  digitalWrite(2, HIGH);  digitalWrite(3, HIGH);  digitalWrite(4, HIGH);  digitalWrite(5, HIGH);  digitalWrite(6, LOW);  digitalWrite(7, LOW);  digitalWrite(8, HIGH);  digitalWrite(9, LOW);
  delay(500); 
  //cls();
    
  digitalWrite(2, HIGH);  digitalWrite(3, LOW);  digitalWrite(4, LOW);  digitalWrite(5, LOW);  digitalWrite(6, HIGH);  digitalWrite(7, HIGH);  digitalWrite(8, HIGH);  digitalWrite(9, LOW);
  delay(500); 
  //cls();
    
  digitalWrite(2, HIGH);  digitalWrite(3, LOW);  digitalWrite(4, HIGH);  digitalWrite(5, HIGH);  digitalWrite(6, LOW);  digitalWrite(7, HIGH);  digitalWrite(8, HIGH);  digitalWrite(9, LOW);
  delay(500); 
  //cls();
    
  digitalWrite(2, LOW);  digitalWrite(3, LOW);  digitalWrite(4, HIGH);  digitalWrite(5, HIGH);  digitalWrite(6, HIGH);  digitalWrite(7, HIGH);  digitalWrite(8, HIGH);  digitalWrite(9, LOW);
  delay(500); 
  //cls();
    
  digitalWrite(2, HIGH);  digitalWrite(3, HIGH);  digitalWrite(4, HIGH);  digitalWrite(5, LOW);  digitalWrite(6, LOW);  digitalWrite(7, LOW);  digitalWrite(8, LOW);  digitalWrite(9, LOW);
  delay(500); 
  //cls();
    
  digitalWrite(2, HIGH);  digitalWrite(3, HIGH);  digitalWrite(4, HIGH);  digitalWrite(5, HIGH);  digitalWrite(6, HIGH);  digitalWrite(7, HIGH);  digitalWrite(8, HIGH);  digitalWrite(9, LOW);
  delay(500); 
  //cls();
    
  digitalWrite(2, HIGH);  digitalWrite(3, HIGH);  digitalWrite(4, HIGH);  digitalWrite(5, LOW);  digitalWrite(6, LOW);  digitalWrite(7, HIGH);  digitalWrite(8, HIGH);  digitalWrite(9, LOW);
  delay(500); 
  //cls();
}

 

 

# 실행영상

 

 

 

 

과제#1 : 플로팅 현상이란 무엇인가 ? 어떻게 방지할 수 있는가 ?

플로팅 현상이란 회로를 구성한 경우 스위치가 연결되면 전류가 정상적으로 흐르지만, 스위치가 연결되지 않은 상태에서 전류가 흐르는지 알 수 없는 현상이다.

 

플로팅 현상을 방지하는 방법은 저항을 앞에 붙여서 플로팅 현상을 해결하는 풀업(Pull Up)저항과 풀업 저항과는 반대로 연결하는 방식인 풀다운(Pull down) 방식이 있다.

 

 

 

https://blog.naver.com/newbongman/223374884651

'유수봉 교수의 AI' 카테고리의 다른 글

유수봉 교수의 AI-2주차(졸작)  (0) 2024.03.20
유수봉 교수의 AI-2주차  (0) 2024.03.15
유수봉 교수의 AI-16주차  (1) 2023.12.08
유수봉 교수의 AI-15주차  (1) 2023.12.08
유수봉 교수의 AI-14주차  (0) 2023.12.01