You are on page 1of 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.
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 supply
for 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.
Schematic Design
● Overall
● MCU
● Power Supply
This section is power supply for quadcopter. First LDO chip supply power for MCU and
XBee, second LDO supply power for MPU6050. Two LDOs reduce power line noise for
MPU6050. The last part of this section is battery connection circuit; 3 capacitors are used
to eliminate mcu power surge when motors are operating.

● Motor Drive Circuit
This section is motor drive circuit for 4 motors. A diode is used for each motor is used to
prevent current backflow. Each MOSFET transistor coupled with a 10K pull down
resistor, ensure the PWM signal quality.
● Boot Mode Configuration
Boot mode configuration is used for bootloader purpose. We left BOOT1 grounded, and
only control BOOT0, because here we either boot from Main Flash Memory or System
Memory.

● MPU6050
MPU6050 use I2C communication protocol, 2 4.7K pull up resistors are used on I2C
lines. Its AD0 pin is connected to ground to make its address is low address. Power
supply for this chip is VCCA, from isolated LDO.
● Debug Connector
STM developed SW debug protocol, only two lines are needed for debugging. In order to
save space and weight, we give up JTAG.

● XBee Module
XBee use serial communication (UART) with MCU. Its TX pin is connected to RX pin on
MCU, RX pin is connected to TX pin on MCU. But to make it safer, we add two 0 ohm
resistors to TX, RX lines. So we can swap connection in case it is wrong.
● Power Indicator LED
Just a indicator, but the resistor’s value is important to control lightness.
PCB Layout

1. Overall
The 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 Circuit
Since four motors require 4A at the maximum, the power supply and ground traces
should be as wide as possible. So we make a power supply plane for motors.
3. MPU6050
This sensor is sensitive, motor driver circuit could produce a lot of noise, so we move it
as far as possible away from the drive circuit. Also, its datasheet said it could not be
placed under XBee, and no traces are allowed to go through its bottom.
4. Oscillator
It is placed as close as possible to mcu, and no vias is prefered.
5. XBee
XBee’s antenna is oriented so it is far away from MPU6050 chip, to reduce interference.
● Top Layer
● Bottom Layer
● Both Layers
Part Cost

Ind QTY Part Number Description Customer Available Unit Extende


ex Reference Quantity Price d Price

1 2 277­2302­1­ND CONN HEADER 2 0.64 $1.28


3POS 2.5MM Immediate

2 50 A106051CT­ND RES 0.0 OHM 50 0.003 $0.15


1/10W JUMP 0603 Immediate

3 20 445­1796­1­ND CAP CER 0.1UF 20 0.032 $0.64


6.3V 10% X5R 0201 Immediate

4 10 445­1300­1­ND CAP CER 2200PF 10 0.048 $0.48


100V 10% X7R Immediate
0603

5 20 445­5167­1­ND CAP CER 2.2UF 20 0.11 $2.20


10V 20% X5R 0603 Immediate

6 10 445­3424­1­ND CAP CER 3300PF CAP­0603­33n 10 0.105 $1.05


50V 10% X8R 0603 F Immediate

7 25 A106050CT­ND RES 4.70K OHM RES­0603­4.7 25 0.005 $0.13


1/10W 1% 0603 K Immediate 2

8 25 A103120CT­ND RES 680 OHM RES­0603­680 25 0.277 $6.94


1/16W 0.1% 0603 Immediate 6

9 2 455­1611­ND CONN HEADER CON­JST2EH­ 2 0.13 $0.26


EH TOP 2POS BATT Immediate
2.5MM

10 10 568­3407­1­ND DIODE SCHOTTKY DIO­SOD­123F 10 0.214 $2.14


40V 0.12A Immediate
SOD123F

11 3 497­6849­1­ND IC REG LDO 3V LDS3985M30R 3 0.75 $2.25


0.3A SOT23­5 Immediate

12 10 A30916­ND CONN HEADER M021X02­Moto 10 0.315 $3.15


VERT 2POS .100 r Immediate
TIN
13 10 IRFML8244TRP MOSFET N­CH 25V NMOS_SOT23 10 0.213 $2.13
BFCT­ND 5.8A SOT23 ­3 Immediate

14 2 887­1462­1­ND CRYSTAL OSC_4PIN 2 0.82 $1.64


16.000MHZ 12PF Immediate
SMD

15 2 497­11767­ND IC MCU 32BIT 1MB STM32F405R 2 11.45 $22.90


FLASH 64LQFP G Immediate

16 2 VLMS1300­GS0 LED SUPER RED LED 2 0.45 $0.90


8CT­ND 0603 SMD Immediate

17 1 602­1275­ND XBEE PRO SET XBEE­ZB 1 17 $17.00


1MW PCB Immediate
ANTENNA

18 2 493­2915­1­ND CAP TANT 100UF CAP­1210­100 2 1.49 $2.98


6.3V 20% 1210 UF Immediate

19 2 478­3872­1­ND CAP TANT 1UF 2 0.7 $1.40


35V 20% 1210 Immediate

20 2 478­3887­1­ND CAP TANT 4.7UF CAP­1210­4.7 2 0.49 $0.98


20V 10% 1210 UF Immediate

21 2 493­2932­1­ND CAP TANT 47UF CAP­1210­47U 2 1.44 $2.88


10V 20% 1210 F Immediate

Subto $68.22
tal

Shipp Estimate
ing

Sales unknown
Tax

Total $68.22
PCB Control Board
PCB Quadcopter Board
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, signal
processing. Design schematic and layout PCB require detail work, need to pay attentions to
datasheet for each chip, it is easier than physical work (soldering) since PC software could point
out most of problems. Fabrication and soldering are challenges, a little careless would result
solder touch each other and it is hard to notice. But all these are solvable once we have more
experience on PCB design, like math problems, do more practise.

You might also like