Tech Degree
Certificate
This is to certify that the project report entitled Unmanned Aerial Vehicle is being submitted by
In partial fulfilment for the award of the degree of Bachelor of Technology in Electronics & Communication Engineering of Sir Padampat Singhania University is a record of bonafide work carried out by them under my guidance and supervision.
) Place: Date: .
Acknowledgements
We have taken efforts in this project. However, it would not have been possible without the kind support and help of our guide We would like to extend our sincere thanks to him. We would like to express our gratitude towards the members of Sir Padampat Singhania University for their kind co-operation and encouragement which helps us in the completion of this project. Our thanks and appreciations also go to our colleagues in developing the project and people who have willingly helped us out with their abilities.
Abstract
Gathering information from locations which are inhabitable, hostile, or difficult to reach is a crucial aspect for learning new information about unmarked territories and activities and aids in human technological advancement. This project is concerned with developing an agent for gathering visual information by holding a stationary position or pursuing a dynamic target. The agent is a quad rotor VTOL (Vertical Take Off and Landing) aircraft. This agent should have the capability to hover, fly and follow targets. It should receive and transmit data wirelessly into a base station. It should move through a predefined plan using a GPS receiver. It should also balance itself in the air through a gyro meter and an accelerometer. In addition it would utilize four ultrasonic sensors for obstacle avoidance and an extra one for landing assistance. The agent would also utilize a wireless camera to transmit a birds eye view to the base station.
Index
1. Introduction 2. Conceptual Design 3. Analysis, Component Level Design and Selection 3.1 Hardware Components 3.1.1 ARM7 LPC2138 Development Board 3.1.2 162 Serial LCD with backlight 3.1.3 Brushless motor with propeller and speed controller 3.1.4 USB ISP Programmer 3.1.5 Ultrasonic Distance Measurement Sensor 3.1.6 RF modules (Tx + Rx pair) 3.1.7 Dual motor driver module with PWM Control 3.2 Software Tools 3.2.1 Keil Software 3.2.1.1 3.2.1.2 3.2.1.3 3.2.1.4 UAV Process Remote Station Process Command Handler API 162 LCD drivers API
Introduction
The project aims at developing an unmanned aerial vehicle (UAV), also known as a remotely piloted aircraft (RPA) or unmanned aircraft system (UAS), is a machine which functions either by the remote control of a navigator or pilot or autonomously, that is, as a self-directing entity. The rapid development of micro-processor technology and the continuous growth of integration density of electronics and mechatronics components yields a significant cost reduction of high tech products. Driven by this development it becomes feasible to embed information processing and communicating devices in all sorts of appliances, toys, production facilities, communication systems, traffic and transport systems etc. With this integration and the aid of global positioning systems, there has been a surge of development in Unmanned Vehicles (UV). The main benefits of UVs are that they do not require human control and thus can be reduced in size and cost. They also limit human error in several aspects, and reduce if not eliminate human endangerment. Unmanned vehicles are developed for use in air, over land and under water by both private and government agencies. Several unmanned systems exist such as Autonomous Underwater Vehicles (AUV), Unmanned Ground Vehicle (UGV), and Unmanned Combat Vehicles (UCV). NASA deploys USVs (Unmanned Space Vehicles) on rock gathering missions from the Moon and Mars. The military advanced UAVs and renamed them to UAVS (Unmanned Aerial Vehicle Systems) and are used in flight combat. Government search and rescue departments find the UAVs helpful in inhabitable or hazardous terrain such as earthquakes, floods or volcanoes, where no human lives have to be risked. Institutions which have onsite geologists use UAV for uncovering terrain and rock identification, without having to deploy a whole crew working outside. Departments of transportation can use this device to cover footage of inaccessible situations such as dead-lock traffic jams or multiple car-crashes. Government law enforcement and intelligence agencies can specifically find this device useful for reconnaissance and target pursuance, where the UAV provides the advantages of cheap costs, stealth and a diminished human risk factor. The Unmanned Aerial Vehicle project has been an on-going attempt to produce a reliable autonomous hovering or flying vehicle. The project designed and implemented a two-rotor hovering aerial vehicle. The advantages of a hovering vehicle over a fixed-wing flying vehicle include less complexity in design, minimal space for take-off and landing (vertical take-off and landing (VTOL)), indoor flight, manoeuvrability in obstacle heavy environments and of course the eye-catching ability of being able to maintain a static position in mid-air.
Conceptual Design
Our first step was to identify the design goals. These were the fundamental requirements which were decided:1. Ability to hover, in the sense of generating enough thrust and have enough control in order to maintain a mid-air static position. 2. Manoeuvrability in all directions of a three-dimensional plane. 3. Sufficient endurance of no less than 10-15 minutes. 4. A very light-weight body, including a battery with the highest power to weight ratio we could find since the battery is the heaviest single component of the vehicle. 5. High residual thrust to hover thrust ratio, an acrobatic vehicle was desirable for ability to demonstrate controllability and to perform difficult flight manoeuvres. 6. Minimal size & complexity.
We are using two ARM7 Development Board for the Unmanned Aerial Vehicle. One is used in the main UAV System and other one on remote control station. Transmitter/Receiver connected to the microcontroller boards for the wireless data transmission/reception continuously.
Accuracy : 0.3cm Input trigger signal : 10us impulse TTL Echo signal : PWM signal (time required for sound signal to travel twice between source and obstacle) Size : 45mm*20mm*15 mm
Working
First of all a 10us trigger input has to be given to the pin named Trig on the sensor. This starts one cycle of range conversion and sends 8 bursts of sound waves from the transmitter. As soon as the signals are transmitted the Echo pin goes to high level and remains in high level until the same sound waves are received by the receiver. If the received sound waves are same as what the same sensor transmitted then the Echo pin goes to low level. If no object is detected within 5M after 30ms the Echo signal will automatically go to low level.
Features of Transmitter
Frequency Range: 315 / 433.92 MHZ. Supply Voltage: 3~12V. Output Power : 4~16dBm Circuit Shape: Saw
Features of Receiver
Low power consumption. Operation temperature range : 20 to 70 Operation voltage: 5 Volts. Frequency at:434 MHz Sensitivity: 105dBm IF Frequency:1MHz
Software Tools
1. Keil Software
To write, compile and execute the LPC2148 NXP programs in embedded C
2. Flash Magic
To transfer programs into Microcontrollers at appropriate baud rate
UAV Process
int main() { System::initializeSystemPeripherals(); CommandHandler *commandHandler = new CommandHandler(); commandHandler->initialize(); while(true) { if(commandHandler->hasNextCommand()) { commandHandler->processNextCommand(); } MonitorSystemStatus::monitorAndSendInfo(); } return 0; }
} return 0; }
/****************************************************************************** ** Function name: PWM_Init ** ** Descriptions: PWM initialization, setup all GPIOs to PWM0~6, ** reset counter, all latches are enabled, interrupt
** on PWMMR0, install PWM interrupt to the VIC table. ** ** parameters: Duty cycle ** Returned value: true or fase, if VIC table is full, return false ** ******************************************************************************/ DWORD PWM_Init( DWORD cycle ) { match_counter = 0; PINSEL0 = 0x000A800A; /* set GPIOs for all PWMs */ PINSEL1 = 0x00000400; PWMTCR = TCR_RESET; /* Counter Reset */
PWMPR = 0x00; /* count frequency:Fpclk */ PWMMCR = PWMMR0I | PWMMR0R; /* interrupt on reset on PWMMR0, reset TC if PWM0 matches */ PWMMR0 = cycle; /* set PWM cycle */ PWMMR1 = cycle * 5/6; PWMMR2 = cycle * 2/3; PWMMR3 = cycle * 1/2; PWMMR4 = cycle * 1/3; PWMMR5 = cycle * 1/6;
PWMMR0,
/* all PWM latch enabled */ PWMLER = LER0_EN | LER1_EN | LER2_EN | LER3_EN | LER4_EN | LER5_EN | LER6_EN; if ( install_irq( PWM0_INT, (void *)PWMHandler ) == FALSE ) { return (FALSE); } return (TRUE); } /****************************************************************************** ** Function name: PWM_Set ** ** Descriptions: PWM cycle setup ** ** parameters: PWM cycle and offset ** Returned value: None ** ******************************************************************************/ voidPWM_Set( DWORD cycle, DWORD offset ) { PWMMR0 = cycle; /* set PWM cycle */ PWMMR1 = cycle * 5/6 + offset;
PWMMR2 = cycle * 2/3 + offset; PWMMR3 = cycle * 1/2 + offset; PWMMR4 = cycle * 1/3 + offset; PWMMR5 = cycle * 1/6 + offset; /* The LER will be cleared when the Match 0 takes place, in order to load and execute the new value of match registers, all the PWMLERs need to reloaded. all PWM latch enabled */ PWMLER = LER0_EN | LER1_EN | LER2_EN | LER3_EN | LER4_EN | LER5_EN | LER6_EN; return; } /****************************************************************************** ** Function name: PWM_Start ** ** Descriptions: Enable PWM by setting the PCR, PTCR registers ** ** parameters: None ** Returned value: None ** ******************************************************************************/ voidPWM_Start( void ) { /* All single edge, all enable */ PWMPCR = PWMENA1 | PWMENA2 | PWMENA3 | PWMENA4 | PWMENA5 | PWMENA6; PWMTCR = TCR_CNT_EN | TCR_PWM_EN; /* counter enable, PWM enable */ return; } /****************************************************************************** ** Function name: PWM_Stop ** ** Descriptions: Stop all PWM channels ** ** parameters: None ** Returned value: None ** ******************************************************************************/ voidPWM_Stop( void ) { PWMPCR = 0; PWMTCR = 0x00; /* Stop all PWMs */ return; }
} PWM_Stop() ; return 0; }
UART_PRINT("\n\r"); } DELAYMS(100); } } SIGNAL(SIG_OVERFLOW0) { cbi(TIMSK,TOIE0); TCNT0=0; timer0counter++; UART_PUTCHAR(timer0counter); sbi(TIMSK,TOIE0); if(timer0counter>8) { cbi(TCCR0,CS02); cbi(TIMSK,TOIE0); } }
Features
Medium range remotely controlled rotor based aircraft Flexible and instantaneous control over the aircraft. No servos; directional control only via variable power to the tail rotor. High powered lithim ion battery for improved performance. Battery voltage level indicator for constant monitoring. Obstacle detection and avoidance using highly reliable algorithms. Automatic landing in case of power failure. Highly maneuverable and aerodynamic.
Applications
Low altitude aerial photography. Remote observation or inspection. Search & Rescue Operations Surveillance and reconnaissance Data collection over areas dangerous to human intervention
Recently there has been drastic increase in usage of UAVs in multiple areas like, widely used as a millatry support aircraft for recon operations, commercially used for search and rescue recreational purpose.
Conclusion
This project is an embedded system; a bottom-down programming method was used, followed by integrating elements into a greater whole. All single elements were tested and worked successfully. With more time PID control techniques could have been implemented.
Future Advancement
Heavy lift generating motors. Increased power to weight ratio. Introduction of high-performance lithium polymer battery. More reliable control features Night vision technology
Bibliography
ARM System Developers Guide - Designing and Optimizing System Software by Andrew N. Sloss, Dominic Symes, and Chris Wright ARM7 TDMI Technical Reference Manual by ARM Limited Robokits Serial LCD User Manual Ultrasonic Distance Measurement Sensor User Manual