About Us About Embedded Introduce Editorial Contributions Location Document Android Application Embedded Linux Processor Arduino AVR Devices Resource Android Application Embedded Linux Processor Arduino AVR Devices Education 교육과정안내 교재 프로젝트 자료실 Reference Community 공지사항 제품광고 구인광고
DC 모터 단순 제어하기 작성자 임베디드코리아 작성일25-05-15 23:48 조회176회 댓글0건 이전글 다음글 목록 <* DC 모터 단순제어하기 *> - 디지털 핀을 이용하여 모터의 VCC와 연결하여 모터를 동작 시킨다. - 모터의 한쪽은 D9에 연결하고 다른 쪽은 GND에연결한다. - 디지털 핀이 HIGH 일 때, 3V 의 전압이므로 높은 전압의 모터를 사용할 경우 동작이 안 될 수 있다. --- < DC 모터 기본 동작 소스 코드 > ------- int MotorPin = 9; void setup() { pinMode(MotorPin, OUTPUT); } void loop() { digitalWrite(MotorPin, HIGH); } 이전글 다음글 목록