Two of the stepper motors and power drivers D8060H (6A) were used for one of the camera crane control project.
In the first stage, the control is done with a simple joystick: two axes. In addition, there are two potentiometers for each of the motors to set the maximum speed and acceleration.
The remote control is battery-powered and the clock speed of the microcontroller has been lowered to 8MHz under a reduced 4.5V power supply. In addition, an automatic shutdown has been added in the absence of activity after 5 minutes. Currently, the maximum frequency of pulses to the motor (1.8deg.) controller is 200Hz.
In the second stage, the control method was practically completely rebuilt.
The generation of pulses from the CTC options of Timers 1 and 2 was created for smooth and gently moves. Frequencies from 2kHz to 16kHz were obtained. High frequencies when setting the power control on a larger number of steps per revolution allowed to obtain a gentle dynamic of the motor.
In the third stage, the FlySky Radio Controller has been adopted.
The four stage. The movement of the motors is mechanically limited. For safe stopping, the position of the motors is monitored. Added feedback from the multi-turn potentiometer for each of the two axes.
In addition, the position value is sent to the controller (telemetry) and displayed in % as temperature and the number of engine revolutions (it is not possible to change the description and unit). Arduino sends values from mapped of the analog input by receiver to the hand controller.
In the fifth stage (final stage) it is planned to add an accelerometer or gyroscope to stabilize and balance the camera.
Comments