Tiny v2

From Paparazzi

Jump to: navigation, search

The complete re-design of the popular Tiny autopilot was done on October 9, 2007. The new design is not a bug-fix as no known flaws exist with the current 0.99 and 1.1 versions, so the redesign is performance, easy to use and easy to assemble-oriented !

Tiny v2.11 3D top view (18mm GPS antenna)

Contents

Hardware Revision History

Version #Release DateRelease Notes
v2.1112/2007Bug fix : GPS Reset pin protection (D2)
v2.110/20073.3V regulator type changed, power switch type changed, connectivity improved
v2.006/2007Initial release of Tiny v2


Features

  • Single LPC2148 MCU
  • 8 x Analog input channels 0V - 3.3V (2 channels with optional on-board resistor bridge)
  • 1 x 3.3V TTL UART (5V tolerant)
  • 8 x PWM outputs
  • 1 x R/C receiver PPM frame input
  • 1 x SPI bus
  • 1 x I2C bus
  • 1 x USB (client)
  • Integrated GPS receiver and patch antenna (4Hz update)
  • 5v / 2.25A switching power supply (input voltage range 6.1v → 18v)
  • 3.3v / 1A linear regulator
  • 3 x status LEDs with attached test point
  • 24 grams (with LEA-4P GPS and 18mm GPS antenna)
  • 70.8 x 40mm (smaller then a banking card)
  • 2 layers PCB design, 0603 components

The Tiny v2.1 autopilot uses a single Philips LPC2148 ARM7 based microcontroller. The ARM7 is a low-power 32-bit RISC processor core and the Philips LPC2148 has 512KB on-chip Flash ROM, 40KB RAM and can be clocked at 60MHz.

Although critical control code such as the R/C interface and servo output are well segregated in Paparazzi software and well protected from interference from flaws in the stability/navigation/comm/payload code, great care must be taken when experimenting with new software as some errors can cause a the processor to halt or stall for extended periods causing total loss of control.

Feature additions : Tiny 2.1 vs Tiny 1.1

  • Hardware flow control on the modem
The LPC has one "full-featured" serial port and one basic serial port.
Tiny v1.1 had the full-featured port hard-wired to the GPS in order to leave the basic port open for initial bootloader programming.
Tiny v2.1 exchange these ports and use the GPS Reset signal to "disconnect" the GPS for the one-time bootloader programming. Hardware flow control on the modem is now possible.
  • 5V switching power supply
The Texas Instruments PTH08080WAH switching 5V/2.25A integrated power supply module greatly simplify manufacturing, reduce costs, and improve performance.
Tiny v2.1 have a voltage input range of 6.1V → 18V and enough 5V power for large servos, high-power modems and video systems.
  • 3.3V linear regulator
Tiny v2.1 use a LM3940 1A regulator for 5V to 3.3V conversion in a SOT223 standard pinout package which is capable of providing plenty of power to modems or other devices.
Tests have shown that any device with irregular power consumption can cause significant voltage fluctuations on the critical 3.3V bus.
Users are advised to use a separate regulator as needed for such devices.
  • Video/payload power switch.
The TPS1100 transistor used on the Tiny v1.1 design has proven extremely useful but is intended for high-speed power switching of motor controllers and occupies a 5mm x 6mm space (SOIC-8).
The replacement on the new Tiny v2.1 is a current-limiting switch TPS2051B intended for peripheral power control and should protect the 5V supply from voltage sags during the power-up of high capacitance peripherals as well as allow the 5V supply to continue working in the event of a complete short-circuit in the payload.
TPS2051BDBVR Single 500mA (1A limited) switch in a 3mm x 3mm SOT23-5 package
  • GPS ground plane and antenna
The 13mm antenna on previous Tiny v1.1 proved to be an unworthy exchange of performance for weight. Crude parking-lot tests showed an approximate 3dBi loss (as expected from the data sheets), but the narrow bandwidth of the small antenna made it more sensitive to de-tuning from nearby components in the aircraft. Flight performance was acceptable but poor climb rate calculations were observed with the smaller antenna. Tiny 1.1 users are advised to fit a 20mm antenna.
Tiny v2.1 use a 18mm x 4mm antenna (20mm x 4mm is possible but no more available) and feature 30% more ground plane area (40 x 40mm).
  • GPS Reset
Occasionally the GPS fails to boot properly, displays very poor S/N ratios, and fails to obtain a valid fix. This may be caused by a slow power-up of the 5V or 3V regulators, or by some unusual EMI that is only present at boot. Usually a simple power cycle will correct the problem but occasionally the receiver seems to use the backup battery to retain the bad state.
On the Tiny v2.1 design GPS reset is connected to a GPIO pin on the MCU and allow the operator to reset the GPS as needed.
  • Headers
Tiny v2.1 feature revised header layouts on all peripherals.
  • The modem header have CTS/RTS/DTR and both 5V and 3.3V supplies.(3.3V is shared with LPC and ADC channels - use with caution and only with very low power modems like the 10mW Xbee).
  • The Tiny v1.1 button is removed and it's function is combined on the USB header along with a LED trigger so that indicator, button, and USB can be remotely mounted.
  • Vertical Infrared (1 ADC) with 3.3v supply
  • Horizontal Infrared (2 ADC) with 3.3v supply
  • 2 general purpose ADC with both 3.3v and 5v supplies
  • 2 general purpose ADC with optional on-board resistor bridge and both 3.3v and 5v supplies
  • Two axis Camera control with two servo signal, vdo switch control, vdo power switch and both 5V and 3.3V supplies
  • SPI bus with 3.3V supply
  • I2C bus with both 5V and 3V supplies
  • Leds & testpoints
3 status LEDs with attached test point available on Tiny v2.1 design (instead 2 on Tiny v1.1)
  • Components size
Many users (not only beginners) don't really think that 0402 components on Tiny v1.1 is a great saving from any viewpoint. Even if one saves a little space by using these components, there must still be enough room around to solder it by hand with a soldering iron.
Tiny v2.1 use 0603 components, the assembly should be a bit more friendly to everyone.
  • Layers amount
Tiny v2.1 2 Layer design (instead 4 Layers on Tiny v1.1) should simplify manufacturing and reduce costs.

Architecture

Image:Tiny_v2_Architecture.png

Pinout

Pins Name and Type are specified with respect to the Autopilot Board

Image:Tiny_v2-1_pinout.png


SERIAL
Pin #NameTypeDescriptionSuggested Color
1GNDPWRcommon groundBlack
2 +5VPWR5V Rail from TinyOrange
3 +3.3VPWR3.3V Rail from TinyRed
4DTR
5CTS
6RTS
7RXD1INUART1 Serial Input (3.3V level, 5V Tolerant)Green
8TXD1OUTUART1 Serial Output (3.3V level)Blue


SPI
Pin #NameTypeDescriptionSuggested Color
1GNDPWRcommon groundBlack
2 +3.3VPWR3.3V Rail from TinyRed
3SSELINSSP Slave Select. Selects the SSP interface as a slave (SSEL1)Brown
4MOSII/OSPI1 Master Out Slave In. Data output from master or data input to slaveGrey
5MISOI/OSPI1 Master In Slave Out. Data input to master or data output from slaveGreen
6DRDYINExternal interrupt 0 input (EINT0)Purple
7SCKI/OSPI0 Serial clock. Clock output from master or input to slaveYellow


PPM
Pin #NameTypeDescriptionSuggested Color
1GNDPWRcommon groundBlack
2 +5vPWR5V Rail from Tiny to R/C receiver supplyOrange
3PPM_ININPPM Stream from R/C Receiver (5V tolerant)White
4SERV_RSTOUTexternal PPM decoder reset (Note 1)
5SERV_CLKOUTexternal PPM decoder clock (Note 1)

Note 1 : Used only if servos are connected to the R/C receiver


USB
Pin #NameTypeDescriptionSuggested Color
1GNDPWRcommon groundBlack
2 +3.3VPWR3.3V Rail from TinyRed
3USB+I/OUSB bidirectional D+ lineGreen
4USB-I/OUSB bidirectional D- lineWhite
5VBUSINIndicates the presence of USB bus power (P0.23) (5V level)Orange
6BUTTONINExternal Button (+3.3v pullup)
7LED3OUTGPIO (LED #3 command)
8ADC_7INAnalog to Digital Converter Input #7


IRV
Pin #NameTypeDescriptionSuggested Color
1GNDPWRcommon groundBlack
2 +3.3VPWR3.3V Rail from TinyRed
3IRVINVertical IR Sensor signal (Analog to Digital Converter Input #0)Purple


IRH
Pin #NameTypeDescriptionSuggested Color
1GNDPWRcommon groundBlack
2 +3.3VPWR3.3V Rail from TinyRed
3IRH_2INHorizontal IR Sensor signal axis 2 (Analog to Digital Converter Input #2)Grey
4IRH_1INHorizontal IR Sensor signal axis 1 (Analog to Digital Converter Input #1)Brown


ADC1
Pin #NameTypeDescriptionSuggested Color
1GNDPWRcommon groundBlack
2 +5vPWR5V Rail from TinyOrange
3 +3.3VPWR3.3V Rail from TinyRed
4ADC_4INAnalog to Digital Converter Input #4
5ADC_3INAnalog to Digital Converter Input #3


ADC2
Pin #NameTypeDescriptionSuggested Color
1GNDPWRcommon groundBlack
2 +5vPWR5V Rail from TinyOrange
3 +3.3VPWR3.3V Rail from TinyRed
4ADC_6INAnalog to Digital Converter Input #6 (Maximum input level can be selected with R12 value)
5ADC_5INAnalog to Digital Converter Input #5 (Maximum input level can be selected with R13 value)


DOWNLOAD
Pin #NameTypeDescriptionSuggested Color
1GNDPWRcommon groundBlack
2 +5vPWR5V Rail from TinyOrange
3 +3.3VPWR3.3V Rail from TinyRed
4BOOTINIn-Circuit Serial Programming (ISP) enable (P0.14, +3.3v pullup) (Note 2)
5GPS_RESETINleave unconnected, hold this pin low only for bootloader programming
6TXD0OUTUART0 Serial Output (shared with GPS receiver)Blue
7RXD0INUART0 Serial Input (shared with GPS receiver)Green

Note 2 : Holding this pin low for at least 3mS after a RESET (or power up) instructs the controller to enter programming mode.


I2C
Pin #NameTypeDescriptionSuggested Color
1GNDPWRcommon groundBlack
2 +5VPWR5V Rail from TinyOrange
3 +3.3VPWR3.3V Rail from TinyRed
4SDAI/OI2C bus Serial DAta
5SCLI/OI2C bus Serial CLock


CAM
Pin #NameTypeDescriptionSuggested Color
1GNDPWRcommon groundBlack
2 +5VPWR5V Rail from TinyOrange
3 +3.3VPWR3.3V Rail from TinyRed
4CAM_SWOUTvideo source/payload selection signal
5SRV_1OUTServo PWM signal #1
6SRV_5OUTServo PWM signal #5
7AUXPWRvideo/payload switchable 5V power suply


Schematic

Tiny v2.11 Schematic



PCB

Gerber & Drill Files

Download Tiny v2.11 gerber & drill files (zip)

RS274X, units = Inches, format = 2:5

  • Tiny_v2-11.GTO (Top Component Print Layer)
  • Tiny_v2-11.GTS (Top Solder Mask)
  • Tiny_v2-11.GTL (Top Copper Layer)
  • Tiny_v2-11.GBL (Bottom Copper Layer)
  • Tiny_v2-11.GBS (Bottom Solder Mask)
  • Tiny_v2-11.DRI (NC XY coordinates & Drill tools sizes)


Assembly

Have a look at the Tiny_Assembly for assembly hints.

Components Layout

Bill Of Material

Download Tiny v2.11 Bill Of Material (zipped .xls file)


QtyManufacturer part #Schematic part name / valueDesignatorDescriptionManufacturerPackageOptionalDigikey.comOther distributor
Resistors
2ERJ-3EKF33R0V33R21, R221/16W, 5%Panasonic0603P33HCT-ND
2ERJ-3EKF1000V100R5, R241/16W, 5%Panasonic0603P100HCT-ND
1ERJ-3EKF3300V330R41/16W, 5%Panasonic0603P330HCT-ND
3ERJ-3EKF1001V1KR16, R17, R231/16W, 5%Panasonic0603P1.00KHCT-ND
3ERJ-3EKF1501V1.5KR2, R19, R201/16W, 5%Panasonic0603P1.50KHCT-ND
2ERJ-3EKF1801V1.8k (see note1)R13,R181/16W, 5%Panasonic0603P1.8KHCT-ND
3ERJ-3EKF3301V3.3KR3, R14, R151/16W, 5%Panasonic0603P3.3KHCT-ND
7ERJ-3EKF1002V10KR1, R6 to R111/16W, 5%Panasonic0603P10.0KHCT-ND
1ERJ-3EKF1502V15K (see note2)R121/16W, 5%Panasonic0603P15.0KHCT-ND
Capacitors
5C0603C180J5GAC18pFC22, C26 to C2950V, 5%Kemet0603399-1052-1-ND
19C0603C104K5RAC100nFC2 to C2050V, 10%Kemet0603399-5089-1-ND
2T520A336M006ATE07033uF/6VC24, C25SMD tantalum capacitorKemetA case (EIA 3216-18)399-4719-1-ND
2TAJD107K020R100uF/20VC1, C21SMD tantalum capacitorAVX Corp.D case (EIA 7343-31)478-1724-1-ND
1EEC-EN0F204JK0.2FC23SMD double layer capacitor (Goldcap)PanasonicspecificP11070CT-ND
Inductors
1MLF2012DR47K0.47uHL1SMD InductorTDK0805445-1043-1-ND
Semiconductors
21PS79SB101PS79SB10D1, D2Schottky diode 0.2A/30vNXPSOD523 (EIA SC79)1PS79SB10 T/R-ND
1LM3940IMP-3.3LM3940IMP-3.3IC31A low dropout regulator for 5V to 3.3V conversionNational Semic.SOT223LM3940IMP-3.3CT-ND
1TPS2051BDBVTPS2051BIC4Current Limited Power Distribution SwitchTexas Instr.SOT23-5yes296-21265-1-ND
1LPC2148FBD64LPC2148FBD64IC5Single-chip ARM7 32-bit microcontrollerNXPLQFP64568-1765-ND
1CD4017BPW4017IC6Decade Counter/Divider with 10 Decoded OutputsTexas Instr.TSSOP16296-14252-1-ND
1APT1608MGCKP-1608MGCLED1SMD Chip Green LED Lamp Kingbright0603754-1118-1-ND
1APT1608SURCKKP-1608SURCLED2SMD Chip Red LED Lamp Kingbright0603yes754-1123-1-ND
1APT1608SYCKKP-1608SYCLED3SMD Chip Yellow LED Lamp Kingbright0603yes754-1124-1-ND
1BC807-40BC807T1PNP general purpose transistorNXPSOT23568-1629-1-ND
Modules
1PTH08080WAHPTH_08080WIC1Wide-input adjustable switching regulatorTexas Instr.specific296-20432-ND
1LEA-4P-0-000-0 LEA_4PIC2GPS receiverubloxspecificN/A(u-blox.com, see note 3)
Connectors
753047-0310 SRV0, SRV4, SRV2, SRV6, IRV, SRV3, SRV7J12 to J18Picoblade 3 pins 1.25mm straight headerMolexspecificWM1732-ND
153047-0410IRHJ11Picoblade 4 pins 1.25mm straight headerMolexspecificWM1733-ND
453047-0510PPM,I2C,ADC2,ADC1J4, J6, J8, J10Picoblade 5 pins 1.25mm straight headerMolexspecificJ6,J8,J10WM1734-ND
353047-0710SPI,CAM,DOWNLOADJ3, J5, J7Picoblade 7 pins 1.25mm straight headerMolexspecificJ3,J5WM1736-ND
253047-0810SERIAL,USBJ2, J9Picoblade 8 pins 1.25mm straight headerMolexspecificWM1737-ND
Other
1405C35B12M00000CTS405 12MHzQ1SMD 12MHz Quartz CrystalCTSspecificCTX639CT-ND
1KSA-ST1580MS18KSA-ST1580MS18A118x18mm ceramic Patch AntennaSangshinspecific-N/AKSA-ST1580MS18 (rfmw.com)
ANA1580T18D4EmtacANA1580T18D4 (transplantgps.com)


Note 1 : R13 calculated according attached ADC5 desired input level :

  • 3.3v ⇒ 0
  • 5v ⇒ 1.8k (default)
  • 8v ⇒ 4.7k
  • 13v ⇒ 10k
  • 18v ⇒ 15K
  • Other ⇒ R13 = (Vin - 3.3) x 1000

Note 2 : R12 calculated according attached ADC6 desired input level :

  • 3.3v ⇒ 0
  • 5v ⇒ 1.8k
  • 8v ⇒ 4.7k
  • 13v ⇒ 10k
  • 18v ⇒ 15K (default)
  • Other ⇒ R13 = (Vin - 3.3) x 1000

Note 3 : For sales make contact with Ublox distributor in the appropriate region (http://www.u-blox.com/disti/index.html) Remark: u-blox are strictly controlling their GPS Chips right now, for some reason! They will refer you to get one on their website, which is $99.

PCB and assembled boards suppliers

For private companies and enthusiast Paparazzi hardware suppliers, see Get Hardware page.


Downloads

Source files

Gerber & Drill files

Assembly files


Programming

Example wiring for programming and telemetry
Enlarge
Example wiring for programming and telemetry

The Philips LPC21xx series ARM7 microcontrollers include hardware ISP (InCircuit Serial Programming) and can be programmed through the serial interface UART0 (labled "download" on the PCB) by holding pin P0.14 (count 4 pins in from outside of PCB on download connector) low during power-up and until USB boot code programming is completed. Note this is a 1x operation usually done by the person supplying the Tiny v2 autopilot so you may want to ask if this was done from your Tiny v2 vendor.

Once the USB boot code is loaded (see above) the Paparazzi software includes a USB bootloader program that allows for easy 1-second programming through a standard USB port (labeled "USB" on the PCB) with only a USB to Tiny Molex 8-pin adapter cable needed. Using either the GUI (paparazzi) or command line arguments you can now upload new settings, flight plans, or software updates quickly and conveniently.

See the Compiling and Flashing page for more detailed instructions on installing the bootloader and autopilot software.

Shortcuts

Personal tools