Difference between revisions of "Lisa"

From PaparazziUAV
Jump to navigation Jump to search
Line 148: Line 148:
   - checksum for spi link
   - checksum for spi link


  - add termination on adg3308 ( http://www.dizziness-and-balance.com/practice/images/oculomotor/saccades/cerebellar%20(bg)%20saccades.jpg  http://www.nu9n.com/images/overshoot.gif )


= Lisa/S =
= Lisa/S =

Revision as of 17:30, 18 June 2010

Lisa ( the Lost Illusions Serendipitous Autopilot) is a new STM32 based range of autopilots designed to run Paparazzi.

The first two members of the family are Lisa/L, a design where the STM32 is associated to a gumstix Overo and Lisa/S, an all-in-one design focusing on space and weight constraints.

Lisa/L

Hardware

Block Diagram
CAD view of the beast
First batch of proto PCBs
A stencil to help assembly
On the scale
On the touchpad
Upside down
Power consumption
You're gonna fly the Hex
Isn't it cute
From the other side
Same vehicle
Calibration
Big Lisa in small Asctec

Lisa/L is based on the 64 pins STM32F103RE processor featuring 64k of RAM and 512k of FLASH. All the pins are exposed, providing access to the complete set of the STM32 peripherals.

Power Supply

The design features a pair of two amps switching power supply module, one on 5V for external peripherals ( like modems, servos, USB webcams or wifi sticks) and one on 3V3 for the rest of the avionics. A third linear supply is available for providing clean power to inertial sensors.

STM32

In brief, the STM32 features 3 USARTS, 2 SPI, 2 I2C, 1 CAN, a plethora of timers, ADCs and a generic DMA able to serve all of them. On the board, a number of the communication interfaces are level shifted with user selectable voltage to allow interfacing with all kind of peripherals.

Pressure sensors

The board is equipped with a pair of pressure sensors, one absolute to measure altitude and one differential to measure airspeed. The sensors are amplified and low passed before being sampled by a pair of 16 bits ADCs.

The absolute pressure sensor is the freescale MPXh6115 and the differential one is the MPXV5004DP The following plots displays the output of the sensors versus altitude or airspeed

Absolute pressure.png Differential pressure.png


FT2232H

This chip is heart of the communications with the board while developing. It provides JTAG on the STM32 and SERIAL/USB conversion for the Overo console. It is powered by the USB bus and hence unpowered while in flight.

datasheet: URL

mini module used for dev : URL


Gumstix overo

[1] mechanical drawings

The gumstix Overo is a single board computer module featuring a 600Mhz OMAP35 processor. It communicates with the STM32 through SPI, offering throughput up to 48Mbps and served by DMA on both sides. Exposed peripherals comprise two level shifted UARTs and two USB controllers ( one Host and one OTG )

Software

Airframe in the svn currently running on lisa/L

- Poine/booz2_a6 : this is an hexarotor with mikrokopter motor controllers and running booz2 code in the stm32
- Poine/booz2_a7 : this is an asctec quadrotors with astec motor controllers and running booz2 code in the stm32
- Poine/booz2_a8 : this is a biplan with asctec motor controllers and using stm32 only as io processor - this one is in progress

STM32 toolchain

Install paparazzi-stm32 package available in the ENAC karmic and lucid repository. This toolchains contains gcc, newlib, libstm32, gdb and openocd apt-get install paparazzi-stm32

Don't forget the udev rule to get the correct permission for JTAG

in pprz2svn/conf/system/udev/rules/10-paparazzi.rules add :

SUBSYSTEM=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", MODE="0666", GROUP="plugdev"

and folow Setting access rights for USB download on this page: http://paparazzi.enac.fr/wiki/Installation

Bug in package paparazzi-stm32, will be fixed in the next version, change ft2232_device_desc to "Lisa/L" in /opt/paparazzi/stm32/share/openocd/scripts/interface/openocd-lisa-jtag.cfg

replace:

ft2232_device_desc "Dual RS232 A"

by

ft2232_device_desc "Lisa/L"


STM32 programs

Booz code now runs in the stm32. booz2_a6.xml is an airframe for an hexarotor using mikrokopter controller and booz2_a7 is an airframe for an asctec using asctec controllers.

make AIRCRAFT=BOOZ2_A7 ap.upload

will compile and upload the booz autopilot on the stm32 through jtag

There are a number of test programs ( see targets in conf/autopilot/lisa_test_progs.makefile )

make AIRCRAFT=BOOZ2_A7 test_led.upload

will compile and upload a simple led blinking program in the stm32

Open Embedded

Open Embedded is the linux distribution used on the overo.

Setting_up_a_build_environment_for_overo-oe summarize the instructions for building a development tree



OMAP programs

There are a couple of demo programs ( at the top of conf/autopilot/lisa_test_progs.makefile )

overo_test_periodic : shows how to use the high precision timers

overo_test_telemetry : shows how to send telemetry through UDP

overo_test_link_stm32 : shows how to exchange data through SPI with the stm32

make AICRAFT=BOOZ2_A7 overo_test_telemetry.upload

will compile and copy the demo program to the gumstix ( using scp ) . You need to configure the variable HOST in the airframe file for the hostname of your overo, and you might want to have ssh keys to avoid typing your password ( man ssh-copy-id )

BLAAAA

Running booz on stm32: see http://paparazzi.enac.fr/wiki/Lisa_Asctec_Bringup

testing spi link between overo and stm32:

  make AIRCRAFT=BETH clean_ac stm_test_spi_link.upload
  make AIRCRAFT=BETH clean_ac overo_test_spi_link.upload



TODO

 - upload schematics and bloc diagram
 - irq for spi link
 - checksum for spi link
 - add termination on adg3308 ( cerebellar%20(bg)%20saccades.jpg  overshoot.gif )

Lisa/S

More on this new project soon, for now just a CAD rendering to wet your appetite. Lisa s cad.png