DC Motor Control DC Motor armature rotor permanent

  • Slides: 19
Download presentation
DC Motor Control

DC Motor Control

DC Motor 전기자(armature, rotor), 영구자석(permanent magnet, stator), brush, 정류자(commutator), … incoming Lab.

DC Motor 전기자(armature, rotor), 영구자석(permanent magnet, stator), brush, 정류자(commutator), … incoming Lab.

Principle of DC Motor Law of Motor : 플레밍의 왼손법칙 incoming Lab.

Principle of DC Motor Law of Motor : 플레밍의 왼손법칙 incoming Lab.

Principle of DC Motor Law of Generator : 플레밍의 오른손 법칙 incoming Lab.

Principle of DC Motor Law of Generator : 플레밍의 오른손 법칙 incoming Lab.

DC Motor incoming Lab.

DC Motor incoming Lab.

7. 4. 3 모터 드라이버 IC L 298 incoming Lab.

7. 4. 3 모터 드라이버 IC L 298 incoming Lab.

7. 4. 3 모터 드라이버 IC L 298의 제어 pin A조 B조 설명 INPUT

7. 4. 3 모터 드라이버 IC L 298의 제어 pin A조 B조 설명 INPUT 1, INPUT 2 INPUT 3, INPUT 4 모터의 방향을 결정 OUTPUT 1, OUTPUT 2 OUTPUT 3, OUTPUT 4 모터의 양단자에 연결 ENABLE A ENABLE B 모터의 On/Off 역할 입력이 High 일때 On, Low일 때 Off Current Sensing A Current Sensing B 0. 5옴의 저항을 통해 GND로 연결, 정격 전력이 높은저항을 사용해야한다. incoming Lab.

7. 6 바퀴 구동체 incoming Lab.

7. 6 바퀴 구동체 incoming Lab.

I/O 정리 Port B I/O Port D I/O Port B PB 7 PD 7

I/O 정리 Port B I/O Port D I/O Port B PB 7 PD 7 PE 7 PB 6 PD 6 PE 6 PB 5 PD 5 PE 5 PB 4 PD 4 PE 4 PB 3 PD 3 PE 3 PB 2 PD 2 PE 2 PB 1 PD 1 PE 1 PB 0 PD 0 PE 0 I/O incoming Lab.

Motor Driver & DC motor incoming Lab.

Motor Driver & DC motor incoming Lab.

DC motor incoming Lab.

DC motor incoming Lab.

GPIO를 이용한 DC motor 제어 #include<avr/io. h> int main(void){ DDRB = 0 x. CF;

GPIO를 이용한 DC motor 제어 #include<avr/io. h> int main(void){ DDRB = 0 x. CF; PORTB = 0 x. C 0; DDRD = 0 x 00; DDRE = 0 x 00; incoming Lab.

GPIO를 이용한 DC motor 제어 while(1) { if(PIND & 0 x 01) //Left 스위치

GPIO를 이용한 DC motor 제어 while(1) { if(PIND & 0 x 01) //Left 스위치 { PORTB &= ~0 x 02; PORTB |= 0 x 01; } else { PORTB &= ~0 x 01; PORTB |= 0 x 02; } incoming Lab.

GPIO를 이용한 DC motor 제어 if(PIND & 0 x 02) //Right 스위치 { PORTB

GPIO를 이용한 DC motor 제어 if(PIND & 0 x 02) //Right 스위치 { PORTB &= ~0 x 08; PORTB |= 0 x 04; } else { PORTB &= ~0 x 04; PORTB |= 0 x 08; } } return 0; } incoming Lab.

실습 과제 Main S/W를 이용하여 motor enable/disable ‘ 0’ : Disable ‘ 1’ :

실습 과제 Main S/W를 이용하여 motor enable/disable ‘ 0’ : Disable ‘ 1’ : Enable UART 통신을 이용하여 Motor 제어 Key map 정의 Ø 예) R : right forward, r : right backward Key 기능당 * 10 점 incoming Lab.