*Help Desparately Needed**-Simulink to control servo motor with Arduino
조회 수: 4 (최근 30일)
이전 댓글 표시
I am working on a project that needs to use an Arduino Mega MCU to take an analog input, use a comparator block to make a decision, then control a servo motor based on the comparator's output. I am confused as to how to make this happen. The servo requires 1000 - 2000 microseconds PWM to move, with 1500 being neutral. The Arduino PWM block only asks for a number between 0-255, which corresponds to a duty cycle. The Arduino Servo Write (Standard)only asks for a pin number and moves the motor based on the input. Which one should I use?
Thank you very much in advance for all your expertise and help! My senior design project depends on it. -Kristi
댓글 수: 0
답변 (0개)
커뮤니티
더 많은 답변 보기: Power Electronics Community
참고 항목
카테고리
Help Center 및 File Exchange에서 Arduino Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!