Docsity

Mobile Autonomous Robot - Final Project Report | EEL 5666, Papers of Electrical and Electronics Engineering

Partial preview of the text

Download Mobile Autonomous Robot - Final Project Report | EEL 5666 and more Papers Electrical and Electronics Engineering in PDF only on Docsity!

EEL-

Intelligent Machine Design Lab

Final Report

‘Raven’

Mobile Autonomous Robot

Stephen Tobias

Table of Contents:

  • Abstract……………………………………………………………………………………
  • Executive Summary……………………………………………………………………….
  • Introduction………………………………………………………………………………..
  • Integrated Systems…………..……………………………………………………………
  • Mobile Platform ………………………………………………………………………….
  • Sensors……………………………………………………………………………………
  • Behaviors…………………….…………………………………………………………
  • Experimental Layout and Results……………………………………………………….
  • Conclusion……………………………………………………………………………….
  • Reference Assembly Code…..…………………………………………………………..

Executive Summary:

In the following report I will outline what progress I have made on my robot, what my final conclusions are and what still needs work. I am reluctant to say that I did not complete all of my goals in this project, however I did construct a mobile platform with some basic behaviors that can be build upon and refined to produce a more stable more reliable robot. This version is the first version of this robot and like any program can still be refined. I now have a deeper understanding of how a walking robot works and how to make it move.

Introduction:

It was my intent in this project to design and build a mobile autonomous robot capable of moving about its environment and map its environment as it moves around. To do this I planned to construct a 2 legged walking robot using the new 68HC microcontroler. The 2 legged design I thought would be a natural body used in mapping because it has a discrete unit of measure built into it, a single step. Additionally the 68HC12 has additional hardware making it a natural choice for such a complex robot.

The IR sensors are the most straight forward. The hacked sharp IR sensors are connected to the analog to digital converter. When it detects IR it produces a value between ground and 5 volts, which can be read by the analog to digital converter. Lastly the most important module is the real time interrupt, and the software interrupt. The RTI module is used to switch between tasks every 4 ms. The software interrupt is used simply to stack the registers for when it is deferring tasks to another process. I also required some additional hardware not standard to the 68HC12. The standard 1 Kbytes of RAM that comes with the 68HC12 is not enough for my code, variable storage and most importantly the map. I expanded the memory to a full 64 Kbytes. This is where most of my problems occurred, like finding memory fast enough for the 8 MHz bus, but the largest problem was caused by a faulty address latch. I also added memory mapped digital inputs and outputs, but later removed them when I was debugging the memory. I also used some additional hardware to slow down the 8 MHz bus clock down to 40 kHz for the IR LEDs.

Mobile Platform:

The mobile platform of the robot is somewhat unique. It is one of very few 2- legged walking robots. The robot has a main body 2 legs with 4 servos on each. Each leg has a hip servo a knee servo and 2 ankle servos. All but one of the servos in a leg are in the same plane to give the leg 3 flexible joints, forewords and backwards. The knees are bent backwards similar to a bird’s legs. I thought that that this would prove to be easier to use and provide better weight distribution. The last servo is on the leg was going to be used to turn the robot. Additionally the last servo is used for the tail. This part is used to balance the robot when it is walking or turning. The robot will actually walk by moving the servos into preprogrammed positions, waiting then moving to a new position until it has completed a step or turn. The draw back is that this causes sudden jerky movement, and causes the robot to not be as stable as I would like it to be. I carefully selected my servos to be special hi torque servos so it could stand on one leg while the other leg could move forward when stepping forward. I even demonstrated that it could stand on one leg, but something happened to it between then and when I started working on the walking system. Instead of creating a statically stable walking robot, I was forced to make it less stable robot, it can’t be on one leg except for short times. It now walks by bouncing up moving the leg forward and putting the robot back down into a more stable position, when it had to move a leg forward. Turning also became a problem. I noticed that while it was walking it tended to turn if the leg did not get off the ground completely. When it turns I take advantage of this by not picking up the leg and moving it backward to push it in the direction I want it to turn in. I works, but is extremely messy, and not very stable.

Behaviors:

I had initially planned on 3 behaviors, using 5 processes. These behaviors were going to be obstacle avoidance, navigation and mapping. I did not have time to implement the navigation and mapping. The 5 processes are the main process, sensor process, obstacle avoidance process, navigation process and the mapping process. As I said the later 2 were not implemented. The main process is used to move the robot around, and is the only process allowed to manipulate the servos. The sensor process is used to read the sensors, and is the only process allowed to do so. Finally the obstacle avoidance process looks at the sensor data and passes recommendations to the main process.

Experimental Layout and Results:

After many long hours my learned to walk with enough stability to not fall over. The sudden movement causes erratic movement, and some undesired turning, but it can move forward. It moves about 2 to 3 inches per step, and about 15 degrees per turn. It moves by moving the servos to preset positions, the more positions and the less movement between positions the more stable the walking. I don’t have a large number of positions so that is why it is unstable. The ultimate solution would be to rewrite the RTI to control the actual servos and use the main to input to the RTI the positions and speed to the servos. The RTI could then take that data and vary the speed of the servos by not giving the timer the final position, but incrementing the period slowly to produce a more stable movement.