FLProg

Visual programming for not programmers

Яндекс.Метрика
Block control servomotor


This block to control the servos. Standard servos allow you to rotate the actuator on that particular angle from 0 to 180 degrees usually. Some servos allow full revs at a given speed.
The unit allows you to simultaneously control up to 12 servos on most Arduino boards and 48 on the Arduino Mega. On controllers different from the Mega use of the library disables the ability to use outputs 9 and 10 in the PWM mode even if the drive is not connected to these conclusions. On the Mega Board can be used up to 12 servos without loss of functionality of the PWM. If you use Mega to control from 12 to 23 servos will not be able to use the outputs 11 and 12 for PWM.
Connection
In the General case, the servo is connected by 3 wires : power, ground and signal. Usually power is red wire and can be connected to pin +5V on the Arduino. The black wire is ground connected to the Arduino GND to the output signal, a yellow wire is connected to the digital pin of the Arduino controller. It should be noted that powerful servos can create a large load, in this case it needs to be powered separately (not via out +5V Arduino). The same is true for the case of connection of several servo drives. Make sure that the drive and controller connected to a common ground.