S15: Hovercopter

From Embedded Systems Learning Academy
Revision as of 05:41, 26 April 2015 by 146 user1 (talk | contribs) (Hardware Design)

Jump to: navigation, search

Grading Criteria

  • How well is Software & Hardware Design described?
  • How well can this report be used to reproduce this project?
  • Code Quality
  • Overall Report Quality:
    • Software Block Diagrams
    • Hardware Block Diagrams
      Schematic Quality
    • Quality of technical challenges and solutions adopted.

Hovercopter

Abstract

The goal of our project is to design a quadcopter that is capable of self-stabilizing with altitude holding capabilities. The software will use a PID control algorithm to stabilize the motor speeds according to the accelerometer and gyroscope sensor values. The hardware will consist of interfacing the SJSU One board with an Adafruit 10-DOF sensor, remote control receiver, five sonar sensors, an electronic speed controller (ESC), and the four motors. The quadcopter will be able to avoid obstacles using the sonar sensors.

Introduction

Show list of your objectives. This section includes the high level details of your project. You can write about the various sensors or peripherals you used to get your project completed.

Objectives

Our objectives include the following:

  • Self-balancing and self-stabilizing system with the ability to pitch forward, pitch backward, roll left, roll right, yaw left, and yaw right.
  • Altitude hold with the use of a sonar sensor and obstacle avoidance with the use of 4 sonar sensors.
  • Clear unobstructed communication from the remote control transmitter to the remote control receiver located on the system.
  • Arm/Disarm
  • Kill switch
  • SD Card logging

Team Members & Responsibilities

  • Arlen Eskandari
  • Jonathon Hongpananon
  • Phillip Tran

Schedule

Show a simple table or figures that show your scheduled as planned before you started working on the project. Then in another table column, write down the actual schedule so that readers can see the planned vs. actual goals. The point of the schedule is for readers to assess how to pace themselves if they are doing a similar project.


Week# Start Date End Date Task Status Actual Completion Date
1 4/14/2015 4/20/2015 Correctly route North, South, East, and West pins to their respective motor/ESC wire locations. Start testing and determining a proper P value, then I, then D value. As of 4/20/15, we have wired the correct NSEW pins to their respective ESC wires. We are still determining a proper Proportional value. 4/20/15
2 4/21/2015 4/27/2015 Continuation of determining Proportional, Integral, and Derivative values. Ongoing N/A
3 4/28/2015 5/4/2015 Install sonar sensors for future altitude holding. Use pid tune task which iterates through a range of selected P, I, and D values. This will log the PID output with the respective PID values onto the SD card. We will use Excel to graph the output to determine the smoothest curve with no overdamp/underdamp effect. Ongoing N/A
4 5/5/2015 5/11/2015 Test sonar sensor values and add PID computing for altitude using the sonar sensor. Ongoing N/A
5 5/12/2015 5/18/2015 Continuation of altitude hold - determining correct P, I, and D values. Ongoing N/A
6 5/19/2015 5/22/2015 Test complete movement consisting of pitch forward, pitch backward, roll right, and roll left. Implement and test gyroscope readings to finalize yaw movement including determining correct P, I, and D values. Ongoing N/A

Parts List & Cost

Give a simple list of the cost of your project broken down by components. Do not write long stories here.

Qty Description Manufacturer Part Number Total Cost
1 FPV 4-Axis Quadcopter Frame kit w/ Protective Guard UFO $41.00
1 Brushless 25A SimonK 4-in-1 ESC Built-in UBEC Emax 24A*4-UBEC $29.00
4 6045 Carbon Nylon Propellers Gemfan $4.00
1 SJOne Board Preet LPC1758 SJSU Board $80.00
1 9X 9ch Transmitter w/ Module & 8ch Receiver Turnigy TX-9X-M2 $60.00
1 x2204 2300kv Brushless Motors - set of 4 SunnySky SNS-X2204S-KV2300 $63.00
2 4000mAh 3S 30C Lipo Battery Pack Turnigy T4000.3S.30 $22.00
1 50W 5A Balancer Charger Hobbyking ECO6 $19.00
1 4-mm to XT-60 Battery Adaptors - set of 2 Turnigy XT60-HXT4MM $3.00
1 105W 15V/7A DC power supply Hobbyking 9052000023-3 $15.00
1 3.5mm Gold Connectors Polymax $2.00
1 Short Nylon Threaded Spacers $8.00
1 Long Nylon Threaded Spacers $6.00
1 Test Environment Frame for testing Home Depot $15.00
Total Cost (excluding shipping and taxes) $367.00

Design & Implementation

The design section can go over your hardware and software design. Organize this section using sub-sections that go over your design and implementation.

Hardware Design

Discuss your hardware design here. Show detailed schematics, and the interface here.

S15 146 G1 Sch1.JPG

Hardware Interface

In this section, you can describe how your hardware communicates, such as which BUSes used. You can discuss your driver implementation here, such that the Software Design section is isolated to talk about high level workings rather than inner working of your project.

Software Design

Show your software design. For example, if you are designing an MP3 Player, show the tasks that you are using, and what they are doing at a high level. Do not show the details of the code. For example, do not show exact code, but you may show psuedocode and fragments of code. Keep in mind that you are showing DESIGN of your software, not the inner workings of it.

Implementation

This section includes implementation, but again, not the details, just the high level. For example, you can list the steps it takes to communicate over a sensor, or the steps needed to write a page of memory onto SPI Flash. You can include sub-sections for each of your component implementation.

Testing & Technical Challenges

Describe the challenges of your project. What advise would you give yourself or someone else if your project can be started from scratch again? Make a smooth transition to testing section and described what it took to test your project.

Include sub-sections that list out a problem and solution, such as:

Issue #1

Issue: We first had inconsistent motor/propeller spinning. They were not spinning with normal behavior so we traced it back to the values that are applied to the motor from the remote control signals. The values decoded from the remote controls signals were incorrect. The ESC"s accept PWM servo pulses upon calibration and we initially had the SJSU One board outputting PWM duty cycle signals to the ESC. We reworked the remote control decoding functions to correct PWM pulses ranging from 1ms to 2ms wide pulses.

Result: The result was smooth operation of motors/propellers when throttle was applied from the remote control to the SJSU One board.

Issue #2

Issue: Result:

Conclusion

Conclude your project here. You can recap your testing and problems. You should address the "so what" part here to indicate what you ultimately learnt from this project. How has this project increased your knowledge?

Project Video

Initial testing of P values : https://www.youtube.com/watch?v=IqSVVo5YJBs&feature=youtu.be

Project Source Code

References

Acknowledgement

Any acknowledgement that you may wish to provide can be included here.

References Used

List any references used in project.

Appendix

You can list the references you used.