*Help Desparately Needed**-Simulink to control servo motor with Arduino

3 vues (au cours des 30 derniers jours)
Kristina
Kristina le 12 Mar 2013
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

Réponses (0)

Communautés

Plus de réponses dans  Power Electronics Control

Catégories

En savoir plus sur Arduino Hardware dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by