필터 지우기
필터 지우기

MATLAB, Arduino Uno, Adafruit motor shield?

조회 수: 1 (최근 30일)
Dhasank
Dhasank 2015년 3월 18일
I am using Arduino Uno for my robotics project. Do i need an Adafruit motor shield for controlling my servos or can I control it using Arduino Uno?

답변 (1개)

Aaron Becker
Aaron Becker 2015년 4월 8일
This answer is culled from http://arduino.cc/en/reference/servo. Summary: If you are using hobby servos, you don't need the motor shield, but if you want to drive more than one servo you need external power.
The servo library allows an Arduino board to control RC (hobby) servo motors. The Servo library supports up to 12 motors on most Arduino boards and 48 on the Arduino Mega. On boards other than the Mega, use of the library disables analogWrite() (PWM) functionality on pins 9 and 10, whether or not there is a Servo on those pins.
Servo motors have three wires: power, ground, and signal. The power wire is typically red, and should be connected to the 5V pin on the Arduino board. The ground wire is typically black or brown and should be connected to a ground pin on the Arduino board. The signal pin is typically yellow, orange or white and should be connected to a digital pin on the Arduino board. Note that servos draw considerable power, so if you need to drive more than one or two, you'll probably need to power them from a separate supply (i.e. not the +5V pin on your Arduino). Be sure to connect the grounds of the Arduino and external power supply together.

커뮤니티

더 많은 답변 보기:  Power Electronics Community

카테고리

Help CenterFile Exchange에서 Arduino Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by