Develop
Sven Steudte 2017-05-31 01:01:26 +02:00
rodzic 049b6b928c
commit 7f1c266ebc
5 zmienionych plików z 41 dodań i 10 usunięć

Wyświetl plik

@ -1,12 +1,16 @@
# Pecan Pico 9 - A lightweight APRS tracker for balloons
This Project contains the Pecan Pico project in it's 9th version. A Pecan is a cheap lightweight APRS position tracker designed especially for small ballons which may fly for monthes. This tracker has been made in respect of weight, functionality and price because it's usually used once like a satellite. While the balloon can fly for a long time, this tracker is solar powered and recharges it's battery at daytime.
Other than usual position tracker, this tracker has also the ability to take pictures with a camera and send them to the ground. Therefore the APRS protocol has been extended by the SSDV protocol which can be received by any generic APRS receiver and some decoding software on the computer. SSDV can be also used with 2FSK (RTTY) but APRS may be used on the APRS network which provides APRS Igates. So you could make use of them and receive APRS messages from far away through the Internet. While the tracker has the ability to transmit 2GFSK (better known as 9k6 APRS), you may transmit pictures at a much higher rate. VGA sized pictures can be transmitted within minute.
This Project contains the Pecan Pico project in it's 9th version. A Pecan is a cheap lightweight APRS position tracker designed especially for small ballons which may fly for monthes. This tracker has been made in respect of weight, functionality and price because it's usually used once like a satellite. While the balloon can fly for a long time, this tracker is solar powered and recharges it's battery at daytime and uses the power stored in the battery at night.
![Pecan Pico 9a](pecanpico9a.jpg)<br>
*Pecan Pico 9a*
The biggest feature on this tracker is the camera OV2640. The camera can sample pictures up to UXGA but transmitting those still might take some time. The standard camera can be bought for roughly US$5 but it can be replaced by a wide angular camera which is available on the market too. Please don't expect high quality images. VGA sized pictures are okay but you might see the bad quality if you ramp up the resolution. Note that this tracker cannot save the pictures. That might be possible in theory but the chip (STM32F413) does only contain 1MB Flash memory and that might be enough for 20 pictures only.
Other than usual position tracker, this tracker has also the ability to take pictures with a camera and send them to the ground.
The tracker can use RTTY/SSDV to transmit those to the ground. While RTTY can only be received directly, this tracker can also use APRS/SSDV. Therefore SSDV has been integraded into the APRS protocol. This new protocol allows the user to receive pcitures by using their APRS receiver and a computer. There is no tuning required, so everything could work autonomously. APRS has been integrated for the image transmission in respect to be used on the global APRS network itself. So images can be received from far away using the Igating service. Image packets may be received somewhere else by Igates and relayed through the internet. The APRS image transmission could be also used to make use of 9k6 APRS. 9k6 APRS transmits the images very fast. VGA sized pictures can be transmitted within minute. While the protocol doesn't change, using this technique doesn't need any changes rather than the decoding equipment.
![APRS/SSDV Transmission diagramm](aprs_ssdv.png)<br>
*APRS/SSDV Transmission diagramm*
The camera can sample pictures up to UXGA (1600x1200px) but transmitting those still might take some time. The standard camera OV2640 can be bought for roughly US$5 but it can be replaced by a wide angular camera if needed using the FFC connector. Please don't expect high quality images. VGA sized pictures (640x480px) are okay but you might see the bad quality if you ramp up the resolution. Note that this tracker cannot save the pictures. That might be possible in theory but the chip (STM32F413) does only contain 1MB Flash memory and that might be enough for 20 pictures only. Here are some images which have been taken and transmitted by APRS/SSDV.
![Airport Berlin Tempelhof](airport_tempelhof.jpg)<br>
*Closed Airport Berlin Tempelhof roughly 3km (10,000ft) altitude*
@ -22,20 +26,47 @@ The biggest feature on this tracker is the camera OV2640. The camera can sample
The tracker can transmit pictures, GPS data and telemetry data simultanously. That means that the picture transmission can be interrupted and GPS data can be sent in between. While all data can be transmitted by APRS, there is only one decive being needed to receive all the data. APRS itself doesn't need any tuning (like RTTY) so receivers may be left unattended to operate automatically. Using APRS-IS (Igates) additionally reduces the risk of missing packets. If one station miss one packet, it could be received by a different station. All packets are put together and decoded on a central server.
The Pecan provides a ublox EVA-7M GPS chip which can operate up to 50km. This is important because regular GPS receivers operate usually only up to 18km (60,000ft) and balloons may fly higher. The EVA-7M can only receive GPS. It is possible to replace this chip with the pincompatible ublox EVA-M8M (at the PCB assembly) which can receive GLONASS and and the new European GNSS network Galileo too.
### GNSS
The Pecan provides a ublox EVA-7M GPS chip for localizing the tracker. It can operate up to 50km. This is important because regular GNSS receivers operate only up to 18km (60,000ft) usually and balloons may fly higher. The EVA-7M can only receive GPS. The footprint on the PCB is compabile to the ublox EVA-M8M. This GNSS chip can also receive GLONASS and and the new European GNSS network Galileo too. I have chosen the predecessor while it consumes less power. The EVA-7M can be acessed by the STM32 by UART or I2C. However the software does use UART. If there would be an error on the I2C bus, the GNSS chip will still continue to work. To avoid any interferences, the EVA-7M isn't connected to the I2C bus. It can be connected by assembling 0R resistors.
The PCB is powered by the sun on day and through a LiPO-battery on night. The battery itself is located on the backside and charged by solar cells on day. The PCB can also be powered through the USB connector. At night, temperatures can drop down to -50°C. At this temperature the battery might have such a high impedance, that the tracker might not work flawlessly (yet). A 300mAh to 500mAh battery should be enough capacity for powering the tracker at night. Some people insulate their tracker. But you may consider that insulation might not worth. There is not much heat generated by the PCB itself and so the tracker will cool down in the end anyway. You should also take into account that the tracker weights only ~~~20g (including the battery). So the insulation could weight a lot compared to the total weigth; and that might not worth it. Why? => The more the payload it has, the less altitude can be reached with a foil balloon.
The GPS is powered through a dedicated low noise LDO with 3.3V. This LDO can be switched on and off by the STM32. The antenna can be connected by an IPEX connector on the bottom. There can be also soldered an antenna directly on the top of the PCB which have to be 4.5cm long.
The internal operation voltage of the microcontroller and transmitter is 1.8V. This voltage has been chosen while the microcontroller draws less power at low voltages. However USB requires 3V at least. If the Pecan is connected to a USB host (like a computer), the USB host will provide a GND connection through the USB ID pin. This pin originally signals the avability of a USB host (rather than a slave). On the Pecan this pin is connected to the buck converter which then ramps up the voltage to 3V. Connecting USB slaves to the Pecan is not possible because USB slaves do not connect their USB ID pin to GND and so the STM32 runs at 1.8V which is insufficient for USB.
![GNSS Antenna](gnss_antenna.png)<br>
*GNSS Antenna*
The transmitter is based on a Si4063 which can do up to 100mW. It is able to transmit FSK, GFSK and OOK (On/Off-Keying). 2FSK is better known as RTTY and OOK as CW (morse). 2GFSK can be used for 9k6 APRS. APRS 1k2 which uses AFSK is archived by the 2GFSK modulation. The chip itself has never been intended to generate AFSK, but its possible. The Pecan has a 2m low pass filter (LPF), so it cannot transmit on the 70cm band. Transmitting at 70cm would be possible by the chip, if the LPF is replaced by a 70cm version. In general the Pecan does transmit 40mW, which should be enough for APRS operation. The limitation is a result of the low operating voltage of 1.8V. However it is possible to ramp up the operation voltage to 3V by the microcontroller itself and get up to 80mW.
### Power management
The Pecan can be powered by LiPO batteries but also by primary lithium batteries.
To be continued...
If you want to use the tracker on a Latex balloon, you may use lithium batteries by Energizer which can withstand very cold temperatures (don't use Varta!). These type of batteries come in two sizes: AA and AAA. Using AAA batteries should provide sufficient power for a continous transmission of 12 hours. The battery connector of the Pecan is connected to a buck converter which can handle up to 6V. 3 batteries should be put into series and connected to it. The tracker should work flawlessly until the battery reaches 3V and should still continue to work until a input voltage of ~2V is reached. While a AAA battery weights 11.5g, the tracker has a high weight of ~45g. Primary batteries may be preferred because it's very simple to assemble.
![Pecan Pico 8a](pecanpico8a.jpg)<br>
*Pecan Pico 8a assembled with primary batteries*
if you want to use a foil balloon which may fly at least for some days, you would rather stick to LiPO batteries. LiPO batteries are used with solar cells in common which can be soldered to the backside of the Pecan or connected to pinheaders on the side. The Pecan can be also used with solar cells only but it wouldn't work at night.
At night temperatures low as -50°C can be reached. So operating the tracker with LiPO batteries is quite difficult but not impossible. If the operation can be reduced to transmission only, the tracker might work trough the night. Aquiring a GPS fix may draw too much current. At the moment, there is no good solution for this problem yet, so you might stop the GPS operation at night.
The LiPO battery should be connected to the battery terminals on the backside of the Pecan. If a solar cell is connected to the Pecan too, it will charge the battery. The battery can also be charged trough USB. Solar cells must not be connected with USB at the same time while USB while both supplies are connected on the same network. The USB voltage is fed through 2 silicon diodes to the SPV1040. This has been done because USB may provide up to 5.5V, which is too much for the SPV1040's input.
The solar and battery voltage can be measured by voltage dividers connected to the STM32. In respect to save energy, those dividers have an impedance of 32kOhm. While the STM32 has a low input impedance too, the measurement is probably not that accurate. Therefore the PAC1720 can be used which can measure voltage and current consumption at the same time. This chip can be accessed by I2C and is fairly accurate.
The following picture shows a power management diagram of the Pecan Pico 9a
![Power Diagram](power_diagram.png)<br>
*Power Diagram*
The internal operation voltage of the microcontroller and transmitter is 1.8V. This voltage has been chosen while the microcontroller draws less power at low voltages. However USB operatopm requires 3V at least. Also the transmitter does radiate less power at low voltages. Therefore the operation voltage can be ramped up either by connecting a USB host or by the *V_BOOST* pin of the STM32.
A USB host (like a computer) does provide a GND signal through the USB ID pin. This pin was originally used to indicate a USB host has been connected (rather than a slave). On the Pecan this pin is connected to the feedback resistor network of the buck converter. If USB is connected the voltage is ramped up to 3.0V. It isn't possible to connect USB slaves (like a USB stick) to the Pecan, because USB slaves don't provide a GND signal on the USB ID pin. So the STM32 will run at 1.8V which is insufficient voltage for USB operation.
### Transmitter
The transmitter is based on a Si4063 which can do up to 100mW (at an operation voltage of 3.3V). It is able to transmit FSK, GFSK and OOK (On/Off-Keying). 2FSK is better known as RTTY and OOK as CW (morse). 2GFSK can be used for 9k6 APRS. APRS 1k2 which uses AFSK is archived by a 2GFSK modulation. The chip itself has never been intended to modulate AFSK, but its possible. The Pecan has a 2m low pass filter (LPF), so it cannot transmit on the 70cm band. Transmitting at 70cm would be possible by the chip, if the LPF is replaced by a 70cm version. Due to the low operation voltage (1.8V), the Pecan does transmit only at 30...40mW in general. This should be enough for APRS operation. However it is possible to ramp up the operation voltage to 3.0V by the microcontroller itself and get up to 70...80mW.
###
Unsolved problems
=================
As mentioned before, the battery might freeze at night. LiPO's are already a good option and I don't know a battery which works better. LiPO's work best at warm temperatures (~~~20°C). At low temperatures the battery has a high internal resistance, which reduces the possible amount of current that can be used until the battery voltage drops too much. So what can we do? There are three options:
As mentioned before, the battery might freeze at night. LiPO's are already a good option and I don't know a battery which works better. LiPO's work best at warm temperatures (~20°C). At low temperatures the battery has a high internal resistance, which reduces the possible amount of current that can be used until the battery voltage drops too much. So what can we do? There are three options:
- Make the battery larger => Problem: It increases the total weight
- Heat the battery => Problem: It might need a larger battery to heat it all trough the night and that increases the total weight

BIN
aprs_ssdv.png 100644

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 53 KiB

BIN
gnss_antenna.png 100644

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 83 KiB

BIN
pecanpico8a.jpg 100644

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 146 KiB

BIN
power_diagram.png 100644

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 32 KiB