Research Article | OPEN ACCESS
A Software Method for Generating Concurrent Pwm Signal from Pic18f4520 for Biomimetic Robotic Fish Control
M.O. Afolayan, D.S. Yawas, C.O. Folayan and S.Y.Aku
Mechanical Engineering Department, Ahmadu Bello University, Zaria
Research Journal of Applied Sciences, Engineering and Technology 2013 5:754-760
Received: March 02, 2012 | Accepted: March 12, 2012 | Published: June 25, 2013
Abstract
A method of generating multiple pulse width modulated signal with phase difference is presented in this work. The microcontroller used is PIC18F4520 and its output is used to drive Futaba RC servo motors directly. The concurrency of pulse width modulated signal in this work is relative, due to the fact that there is a finite time microcontroller period) between each instruction toggling the output pins. This finite time is equal to the minimum period of the microcontroller, which is 125 ns in this work. Also, the phase difference for the servo motors is set to 60° and is achieved by changing the duty cycle of each of the channels while the period remains at 20 ms for all the channels. The robotic fish using this software PWM code was able to attain a linear speed of 0.985 m/s.
Keywords:
Biomimetic, concurrent PWM, fish robot, PIC microcontroller, software PWM,
Competing interests
The authors have no competing interests.
Open Access Policy
This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.
Copyright
The authors have no competing interests.
|
|
|
ISSN (Online): 2040-7467
ISSN (Print): 2040-7459 |
|
Information |
|
|
|
Sales & Services |
|
|
|