목차
1. 모터의 종류
2. 스텝모터의 종류
3. 동작 원리
4. 회로도
5. 모터구동 프로그램
2. 스텝모터의 종류
3. 동작 원리
4. 회로도
5. 모터구동 프로그램
본문내용
ut(\'S\');
put(\'T\');
put(\'A\');
put(\'R\');
put(\'T\');
put(\':\');
delay(100);
get_tmp=get();
if(get_tmp==\'a\'){
put(\'a\');
while(1){
P2 = 0xaa;
delay (3);
P2 = 0x96;
delay (3);
P2 = 0x55;
delay (3);
P2 = 0x69;
delay (3);
}
}
if(get_tmp==\'b\'){
put(\'b\');
while(1){
P2 = 0xaa;
delay (10);
P2 = 0x96;
delay (10);
P2 = 0x55;
delay (10);
P2 = 0x69;
delay (10);
}
}
if(get_tmp==\'c\'){
put(\'c\');
while(1){
P2 = 0x88;
delay (10);
P2 = 0x9a;
delay (10);
P2 = 0x12;
delay (10);
P2 = 0x56;
delay (10);
P2 = 0x44;
delay (10);
P2 = 0x65;
delay (10);
P2 = 0x21;
delay (10);
P2 = 0xa9;
delay (10);
}
}
}
put(\'T\');
put(\'A\');
put(\'R\');
put(\'T\');
put(\':\');
delay(100);
get_tmp=get();
if(get_tmp==\'a\'){
put(\'a\');
while(1){
P2 = 0xaa;
delay (3);
P2 = 0x96;
delay (3);
P2 = 0x55;
delay (3);
P2 = 0x69;
delay (3);
}
}
if(get_tmp==\'b\'){
put(\'b\');
while(1){
P2 = 0xaa;
delay (10);
P2 = 0x96;
delay (10);
P2 = 0x55;
delay (10);
P2 = 0x69;
delay (10);
}
}
if(get_tmp==\'c\'){
put(\'c\');
while(1){
P2 = 0x88;
delay (10);
P2 = 0x9a;
delay (10);
P2 = 0x12;
delay (10);
P2 = 0x56;
delay (10);
P2 = 0x44;
delay (10);
P2 = 0x65;
delay (10);
P2 = 0x21;
delay (10);
P2 = 0xa9;
delay (10);
}
}
}
소개글