Fast response fuzzy logic controller optimized by bats sonar algorithm
- 62 Downloads
This paper proposes a DC servo motor that is used for the crane system where the system is implemented by a controller that has been optimized by a bat sonar algorithm. With the new designed optimized controller, a faster angular position of the crane system can be generated. Unlike the normal approach, this method of an optimization technique is applied to the designed controller to tune the controller’s parameters can improve the stability and also the transportation time. The method involving the comparison between the system with and without the fuzzy logic controller. Besides, there are also comparisons of the fuzzy controller optimized by the bat sonar algorithm. This application is conducted in the real-time experiment setup. The system performance is evaluated based on the system responses such as rise time, settling time, steady-state error and percentage of overshoot. From the experiment, it found that designing fuzzy with optimizing algorithms gives a 20% faster response compared with the normal one. Looking into the future, this work will lead to faster dynamic response.
KeywordsFuzzy Optimization Bat algorithm Step response DC motor
In numerous heavy load transportation industries where the use of transportation for the loading and unloading materials is needed, the control of crane systems must be well-established in the research field . The important of crane that has to transport components or materials horizontally and vertically is well known especially for the project in high-rise construction . As nowadays, cranes are a central part of many construction functioning and running, the works cannot operate smoothly without the aid of a crane. However, failure to preserve safety while managing cranes can lead to damage to the equipment and building or even serious injuries and accidents to the workers . Therefore, a DC motor is introduced so that cranes can be used automatically and also minimizing the cause of danger and also accidents.
DC motors are commonly used in industrial applications, robot manipulators and also home appliances where there are the needs of speed and position. The motor is used in a wide variety of crane systems including shore container cranes, shuttle conveyors and also pallet loaders because of the speed control since speed control is a crucial element in crane drives . For getting smooth and faster starting and stopping of the travel motion, the use of DC motor is required. And also to acquire accurate positioning for load, DC motor is highly preferred to be used. Because of the precision during loading and unloading materials or components, the possibility of running at a very low speed and hold the load in the standstill is essential, without the use of mechanical brakes . Of course, the use of a sensor also can contribute to the stability and accuracy of the loading and unloading process. However, for this research project, the main focus will be on the controller itself only. The torque and power are carried by the drive can be acquired from the torque versus speed characteristic from the load (so-called mechanical characteristics) and the differential equation of motion . Hence, to achieve also both accuracy and stability, the controller will be implemented into the DC motor control system.
The controller gives great significance for the DC motor system where the position control can be attained through the position sensor that is coupled with the motor shaft for providing a feedback position signal. The most conventional controller that widely used in the industry nowadays is the fuzzy logic controller. Fuzzy logic required less complex mathematical operations make it unnecessary to use a very high-speed processor . When comparing fuzzy with the traditional controller, fuzzy has many advantages such as the simplicity of design, good performance in terms of step response and also can be turned easily by using algorithm .
The turning of the algorithm also can be a way for giving great achievement in getting both motion and stabilization control of the DC motor. Controllers are generally tuned for obtaining the desired performance according to the specific criteria. Algorithms like particle swarm optimization (PSO), genetic algorithm (GA) and also bat algorithm (BA) use for the optimization method of the controller. Since BA is much superior to other algorithms in terms of accuracy and efficiency , BA will be implemented to this optimization problem.
Summarily this research is an adaptation of the crane system that used DC motor control by fuzzy logic controller optimized using BA to achieve both stability and accuracy. The proposed fuzzy with BA optimization will be then implemented through a real experiment where the prototype of the crane system will be done.
2.1 Fuzzy logic controller
The first step is by designing the fuzzy logic controller. Matlab toolbox is used as the platform to simulate the controller. In the fuzzy toolbox, five main components need to be defined for generating the fuzzy controller which are fuzzy logic designer also known as FIS editor, membership function editor, rule editor, rule viewer and surface viewer. For declaring the input and output, a FIS editor is used. In this project, 2 inputs and 1 output are applying to get the variances in position. The inputs (error and change of error) and output (distance) required to be fuzzified by the membership function editor. Inputs and output variables will consist of seven fuzzy sets since 7 × 7 membership function is chosen for these cases.
After designing the fuzzy logic controller, optimization by BA will be done. Membership function structure is chosen as a part that will be optimized since the membership function contain both inputs and output can be defined easily. BA will be run for 30 times and the iteration that nearer to zero is selected to be inserted into the membership function editor. The new design of fuzzy will be generated in the surface viewer and the FIS file of the controller will be produced in Matlab. The FIS file then will be converted into Arduino coding. The conversion process is known as Inference Arduino converter.
2.2 Experimental implementation
The designed fuzzy logic that has been optimized by BA is experimentally implemented using Arduino Mega 2560 through hardware. Two potentiometers will be used where one will be coupled with the DC motor shaft to sense the actual position of the motor while the other one used for set position.
For the hardware implementation, the power pin is connected directly to the Arduino 5 V for generating a + 5 V signal. In two analog inputs, one is for A0 that apply for set value while A1 for the actual value of the position. And also to obtain 360°, the output must be equivalent to a 5 V signal. The voltage can be varied from 0 V to 5 V so that the position also can be varied. When the angle is 0°, the motor will not rotate. When the value is positive, the motor rotates in forwarding direction else in a negative direction.
3 Results and discussion
Several tests were carried out for analyzing the performance of the designed fuzzy logic controller. The first parameter that needs to evaluate is the performance of the prototype running without using the fuzzy logic controller and the second one is by using the fuzzy logic controller. The third one is by using the fuzzy logic controller that has been optimized by using BA.
Hardware results comparison
Without fuzzy controller
With fuzzy controller
With fuzzy controller optimized by BA
Rise time (s)
Settling time (s)
From the experimental results, it shows that all parameters did not have overshot and also steady-state error. But in terms of rising time, a fuzzy controller with optimization is better since it response faster by 0.1 s compared to a system that uses the fuzzy controller only and also 0.4 s when compared with a system that did not the fuzzy controller. Fuzzy logic optimized by BA also can be settled faster compared to other parameters that were expected. Conclusively, the fuzzy controller optimized by BA can reduced the rise time and settling time without having any overshoot and also steady-state error although by a small amount.
This paper presented an adaptation of a crane system with the fuzzy logic controller based position control of the DC motor that has been carried out by the real experimental. Overall, the position of the DC motor can be tuned and changed accordingly to the required value easily. The output for motor position actuator with fuzzy logic optimized by BA obtained with better performance, stable and accurate as of the desired set point compared to the system that did not use fuzzy controller and system that only uses fuzzy without the optimization.
For the control system in the fuzzy controller, it is inessential for substituting the control parameter at any conditions compared to the classical controller like PID. Therefore, it is logical that the fuzzy controller has more beneficial compared to other classical controllers and also fuzzy optimized by BA can give a better dynamic response since the settling time is very low compared to using fuzzy only.
For the future works, the prototype will be design more accurately to the actual crane system. Since for this research, the load for hanging is ignored, hopefully for the next researcher can also experiment will multiple weight of load for more accuracy and for getting precision result.
Summarily, this proposed scheme can be used for the crane system application of position control drive since the crane system also has the feature that needs to move from one angle to other angles.
Compliance with ethical standards
Conflict of interest
On behalf of all authors, the corresponding author states that there is no conflict of interest.
- 2.Won I, Hoang NQ, Lee S (2018) Comparative study of energy-based control design for overhead cranes. Int Robot Autom J 4(3):197–203Google Scholar
- 5.Ahamad NBB, Su CL, Zhaoxia X, Vasquez JC, Guerrero JM (2018) Modeling and controls of flywheel energy storage systems for energy harvesting from harbor electrical cranes. In: 2018 IEEE industry applications society annual meeting (IAS), pp 1–8Google Scholar