Difference between revisions of "Booz/Autopilot"

From PaparazziUAV
Jump to: navigation, search
(Bill Of Material)
Line 56: Line 56:
 
<p>Since the Booz uses the same LPC2148 as the Tiny and TWOG autopilots and runs the same core code the documented steps are nearly the same for booz. Below more Booz specific tests are given. However after assembly you load the bootloader in the same way to enable programming via the USB interface.</p>
 
<p>Since the Booz uses the same LPC2148 as the Tiny and TWOG autopilots and runs the same core code the documented steps are nearly the same for booz. Below more Booz specific tests are given. However after assembly you load the bootloader in the same way to enable programming via the USB interface.</p>
 
====Assembly Tips====
 
====Assembly Tips====
* BOM
+
* Assembly Notes (IMPORTANT: Some DNP 0R)
 
 
 
 
 
 
* Assembly Notes
 
 
* Expected voltages for newly created boards
 
* Expected voltages for newly created boards
  

Revision as of 17:28, 26 March 2012


Bill Of Material

Qty Schematic part name Value Description Package Manufacturer Manufacturer part # Digikey Mouser
Resistors
8 R24,R26,R27,R31,R32,R41,R42,R48 0/DNP 0 Ohm Resistor 0603 R-US_R0603 Any foo_man# 541-0.0GCT-ND foo_mouser
Capacitors
1 C1 100uF CAP TANT 100UF 20V 10% 2917 2917 (7343 Metric) AVX TAJD107K020RNJ 478-1724-1-ND 581-TAJD107K020R
1 C16 2.2uF CAP CER 2.2UF 10V 10% X7R 0603 0603 (1608 Metric) Murata GRM188R71A225KE15D 490-4520-1-ND none
1 C17 22uF CAP TANT 22UF 10V 10% 1206 1206 (3216 Metric) TANTAMOUNT TR3A226K010C1000 718-1304-1-ND 74-TR3A226K010C1000
1 C18 4.7uF CAP CER 4.7UF 10V 10% X7R 0805 0805 (2012 Metric) Taiyo Yuden LMK212B7475KG 587-1442-1-ND none
1 C19 10nF/10000pF CAP CER 10000PF 16V 10% X7R 0603 0603 (1608 Metric) Panasonic ECJ-1VB1C103K PCC1750CT-ND none
22 C2, C4, C5, C9, C10, C11, C12, C13, C14, C15, C20, C21, C22, C23, C26, C27, C30, C33, C35, C36, C37, C39 100nF/.1uF CAP CER 0.1UF 50V 10% X7R 0603 0603 (1608 Metric) Kemet C0603C104K5RACTU 399-5089-1-ND 80-C0603C104K5R
2 C24,C34 1.5uF CAP CER 1.5UF 10V 10% X5R 0805 0805 (2012 Metric) Kemet C0805C155K8PACTU 399-3121-1-ND 80-C0805C155K8P
1 C25 33nF CAP CER 0.033UF 16V 5% 0805 0805 (2012 Metric) Taiyo Yuden EMK212SD333JD 587-1125-1-ND 963-EMK212SD333JD-T
1 C3 220uF CAP TANT 220UF 10V 20% 2917 2917 (7343 Metric) AVX TAJD227M010RNJ 478-3929-1-ND 581-TAJD227M010R
3 C6,C38,C40 33uF CAP TANT 33UF 6.3V 20% 1206 1206 (3216 Metric) Kemet T520A336M006ATE070 399-4719-1-ND 80-T520A336M6ATE70
4 C7,C8,C28,C29 18pF CAP CER 18PF 50V 5% NP0 0603 0603 (1608 Metric) Kemet C0603C180J5GACTU 399-1052-1-ND 80-C0603C180J5G
ICs
2 U$12, U$13 TPS2051B TPS2051B TPS2051B Any foo_man# 296-21265-1-ND foo_mouser


Building Tips

Since the Booz uses the same LPC2148 as the Tiny and TWOG autopilots and runs the same core code the documented steps are nearly the same for booz. Below more Booz specific tests are given. However after assembly you load the bootloader in the same way to enable programming via the USB interface.

Assembly Tips

  • Assembly Notes (IMPORTANT: Some DNP 0R)
  • Expected voltages for newly created boards

Loading the USB Boot Loader

This is virtually the same steps as for all other LPC2148 based Paparazzi autopilots. Just the cable is different. Using UART0/serial to load the image.

Create an adapter cable that has Tx/Rx and Ground along with the ability to hold P0.14 low (i.e. grounded). My cable has P0.14 pin connected to ground as I have found P0.14 should be held low during the entire upload process. See the Eagle Schematic for the pinouts on the GPS connector you will use to upload (same connector as the Tiny/TWOG). NOTE: You can not use the same cable as the Tiny/TWOG.

Steps:

  1. Connect the "USB to FTDI cable" (#1 above) TTL ends to 8-pin Picoblade to FTDI board cable
  2. Connect the USB end to your Linux laptop (/var/log/messages should show a new device on /dev/ttyUSB0).
  3. Connect 8-pin adapter cable to "GPS" 8-pin Pico-Female on Booz Main "GPS" labeled connector
  4. Using common ground" set BOOT (P0.14) "low" and keep it held low (on GPS connector)
  5. Power on (~5v to 12v current limited power supply suggested)
  6. Enter this command in a terminal:
    make upload_bl PROC=GENERIC

NOTE: Success will mean you see this at the end in the terminal:

Synchronizing. OK
Read bootcode version: 2.12.0
Read part ID: LPC2148, 512 kiB ROM / 40 kiB SRAM (67305253)
Sector 0: .................................................. .............................................
Sector 1: .................................................. .........................
Download Finished... taking 6 seconds
Now launching the brand new code
ioctl get failed
ioctl set ok, status = 0
ioctl get ok, status = 2
ioctl get ok, status = 2
ioctl set ok, status = 2
ioctl set ok, status = 0
ioctl set ok, status = 0

What you need to see is the "Download Finished" message. Now you can remove Jumper and FTDI cable. From now on all programming is loaded using USB Adapter cable

USB Programming

Once the USB boot code is loaded (see above) you now program the autopilot via USB. To enable the LPC2148 to wait for programming on the USB interface you must power the board while the USB is connected to the ground station computer. When properly wired P0.21 will be fed 5v from the USB interface and at boot time that tells the LPC2148 to wait for programming over USB. Once programmed the board will rest itself and run the programming (even if you leave the cable attached).

Steps

  1. Connect the USB cable from the computer to the Booz Main USB connector
  2. Power on the Booz Main board
  3. On the Linux (computer) side dmesg should show you a new detected USB device
  4. In Paparazzi Center click "Upload" and wait for the ####### message to show the code is being uploaded.

That's it.