18
Quadcopter Report Information Project Name: Quadcopter Logo: NA Group Member: a. Sagar Patel. Work: Schematic and PCB layout checking. PCB soldering. Fabrication. b. Tonghua Li Work: Schematic and PCB design. Firmware development. Report drafting.

Quad Copter Final Report

Embed Size (px)

DESCRIPTION

reports

Citation preview

Page 1: Quad Copter Final Report

Quadcopter Report

Information

Project Name: Quadcopter

Logo: NA

Group Member:

a. Sagar Patel.

Work: Schematic and PCB layout checking. PCB soldering. Fabrication.

b. Tonghua Li

Work: Schematic and PCB design. Firmware development. Report drafting.

Page 2: Quad Copter Final Report

Description

Quadcopter project is a summer PCB design class project. We are going to learn how to make

a PCB­based quadcopter from scratch. A 4.2V lithium battery that can supply 4A current is used

to power the quadcopter; including microcontroller power, mpu6050 sensor power and the

motors. STM32F4 microcontroller on this board runs at 168MHz, with its FPU(Float Point Unit)

module, it could easily process data from mpu6050 to get board orientation with complementary

filter. A RTOS named ChibiOS is running on STM32F4, it is compact, fast and well

documented; it is written in C, so many C libraries could be used, or ported. For wireless

communication, we used XBee module; this module only need simple setup with provided

software, and only 4 pins are enough for our purpose, it is communication protocol (UART) is

also made it easy to use.

Quadcopter includes the following main parts.

Quadcopter PCB board.

STM32F4 microcontroller. 4.2V Li­Battery + case. 2 LDO power supply modules.

one for microcontroller, the other one for mpu6050. The reason to separate power supplyfor this two chips is to reduce mpu6050 power line noise, to get better data.

4 Motors 4 Motor blades XBee2 module wires or cable connectors that connects to the PCB circuit board to the motors. LED indicator.

Page 3: Quad Copter Final Report

Schematic Design

Overall

Page 4: Quad Copter Final Report

MCU

Page 5: Quad Copter Final Report

Power SupplyThis section is power supply for quadcopter. First LDO chip supply power for MCU andXBee, second LDO supply power for MPU6050. Two LDOs reduce power line noise forMPU6050. The last part of this section is battery connection circuit; 3 capacitors are usedto eliminate mcu power surge when motors are operating.

Motor Drive CircuitThis section is motor drive circuit for 4 motors. A diode is used for each motor is used to

Page 6: Quad Copter Final Report

prevent current backflow. Each MOSFET transistor coupled with a 10K pull downresistor, ensure the PWM signal quality.

Page 7: Quad Copter Final Report

Boot Mode ConfigurationBoot mode configuration is used for bootloader purpose. We left BOOT1 grounded, andonly control BOOT0, because here we either boot from Main Flash Memory or SystemMemory.

MPU6050MPU6050 use I2C communication protocol, 2 4.7K pull up resistors are used on I2Clines. Its AD0 pin is connected to ground to make its address is low address. Powersupply for this chip is VCCA, from isolated LDO.

Page 8: Quad Copter Final Report

Debug ConnectorSTM developed SW debug protocol, only two lines are needed for debugging. In order tosave space and weight, we give up JTAG.

XBee ModuleXBee use serial communication (UART) with MCU. Its TX pin is connected to RX pin onMCU, RX pin is connected to TX pin on MCU. But to make it safer, we add two 0 ohmresistors to TX, RX lines. So we can swap connection in case it is wrong.

Page 9: Quad Copter Final Report

Power Indicator LEDJust a indicator, but the resistor’s value is important to control lightness.

Page 10: Quad Copter Final Report

PCB Layout

1. OverallThe overall layout is based on module. Each module’s components are put together.This would help on hardware debugging, and reduce layout error rate.

2. Motor Drive CircuitSince four motors require 4A at the maximum, the power supply and ground tracesshould be as wide as possible. So we make a power supply plane for motors.

3. MPU6050This sensor is sensitive, motor driver circuit could produce a lot of noise, so we move itas far as possible away from the drive circuit. Also, its datasheet said it could not beplaced under XBee, and no traces are allowed to go through its bottom.

4. OscillatorIt is placed as close as possible to mcu, and no vias is prefered.

5. XBeeXBee’s antenna is oriented so it is far away from MPU6050 chip, to reduce interference.

Page 11: Quad Copter Final Report

Top Layer

Page 12: Quad Copter Final Report

Bottom Layer

Page 13: Quad Copter Final Report

Both Layers

Page 14: Quad Copter Final Report

Part Cost

Index

QTY Part Number Description CustomerReference

AvailableQuantity

UnitPrice

Extended Price

1 2 277­2302­1­ND CONN HEADER3POS 2.5MM

2Immediate

0.64 $1.28

2 50 A106051CT­ND RES 0.0 OHM1/10W JUMP 0603

50Immediate

0.003 $0.15

3 20 445­1796­1­ND CAP CER 0.1UF6.3V 10% X5R 0201

20Immediate

0.032 $0.64

4 10 445­1300­1­ND CAP CER 2200PF100V 10% X7R0603

10Immediate

0.048 $0.48

5 20 445­5167­1­ND CAP CER 2.2UF10V 20% X5R 0603

20Immediate

0.11 $2.20

6 10 445­3424­1­ND CAP CER 3300PF50V 10% X8R 0603

CAP­0603­33nF

10Immediate

0.105 $1.05

7 25 A106050CT­ND RES 4.70K OHM1/10W 1% 0603

RES­0603­4.7K

25Immediate

0.0052

$0.13

8 25 A103120CT­ND RES 680 OHM1/16W 0.1% 0603

RES­0603­680 25Immediate

0.2776

$6.94

9 2 455­1611­ND CONN HEADEREH TOP 2POS2.5MM

CON­JST2EH­BATT

2Immediate

0.13 $0.26

10 10 568­3407­1­ND DIODE SCHOTTKY40V 0.12ASOD123F

DIO­SOD­123F 10Immediate

0.214 $2.14

11 3 497­6849­1­ND IC REG LDO 3V0.3A SOT23­5

LDS3985M30R 3Immediate

0.75 $2.25

12 10 A30916­ND CONN HEADERVERT 2POS .100TIN

M021X02­Motor

10Immediate

0.315 $3.15

Page 15: Quad Copter Final Report

13 10 IRFML8244TRPBFCT­ND

MOSFET N­CH 25V5.8A SOT23

NMOS_SOT23­3

10Immediate

0.213 $2.13

14 2 887­1462­1­ND CRYSTAL16.000MHZ 12PFSMD

OSC_4PIN 2Immediate

0.82 $1.64

15 2 497­11767­ND IC MCU 32BIT 1MBFLASH 64LQFP

STM32F405RG

2Immediate

11.45 $22.90

16 2 VLMS1300­GS08CT­ND

LED SUPER RED0603 SMD

LED 2Immediate

0.45 $0.90

17 1 602­1275­ND XBEE PRO SET1MW PCBANTENNA

XBEE­ZB 1Immediate

17 $17.00

18 2 493­2915­1­ND CAP TANT 100UF6.3V 20% 1210

CAP­1210­100UF

2Immediate

1.49 $2.98

19 2 478­3872­1­ND CAP TANT 1UF35V 20% 1210

2Immediate

0.7 $1.40

20 2 478­3887­1­ND CAP TANT 4.7UF20V 10% 1210

CAP­1210­4.7UF

2Immediate

0.49 $0.98

21 2 493­2932­1­ND CAP TANT 47UF10V 20% 1210

CAP­1210­47UF

2Immediate

1.44 $2.88

Subtotal

$68.22

Shipping

Estimate

SalesTax

unknown

Total $68.22

Page 16: Quad Copter Final Report

PCB Control Board

Page 17: Quad Copter Final Report

PCB Quadcopter Board

Page 18: Quad Copter Final Report

Redesign

1. Connect one more pair of UART for debugging.

2. Remove swap resistors for XBee TX, and RX line. Since we know connection.

3. Separate components more to leave space for hand soldering.

Final Thoughts

Quadcopter is a nice project for learning PCB design. Including power, motor driving, signalprocessing. Design schematic and layout PCB require detail work, need to pay attentions todatasheet for each chip, it is easier than physical work (soldering) since PC software could pointout most of problems. Fabrication and soldering are challenges, a little careless would resultsolder touch each other and it is hard to notice. But all these are solvable once we have moreexperience on PCB design, like math problems, do more practise.