Skip to the content
PCBKitNew board
4 layers14.7 × 25.1 mmSimple Altimeter, the printed circuit board in 3D

Simple Altimeter

miket6000/SimpleAlt1

A simple barometer based peak and logging altimeter for model rocketry with USB C charging and data transfer.

Size
14.7 × 25.1 mm
Copper layers
4
Thickness
0.8 mm
Parts
35
Nets
40
Pads
150
Tracks, vias
324, 54
Pours
4
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
22 Jun 2024
Updated
27 Oct 2024

Overview

Simple Altimeter is an open-source printed circuit board by miket6000, from the miket6000/SimpleAlt repository on GitHub. It is a 4-layer board of 14.7 × 25.1 mm with 35 parts on 40 nets, routed with 324 tracks and 54 vias.

It is built around the BMP280, W25Q16JVUXIQ and STNS01PUR, with the BC847W among its other parts. Its parts include 12 capacitors, 11 resistors, 4 ICs, 2 diodes and 2 connectors. It belongs with the STM32 boards of this library.

Main components

4

README

README.md

SimpleAlt

A simple barometer based peak and logging altimeter for model rocketry with USB C charging and data transfer.

Render of SimpleAlt

Technical details

SimpleAlt uses a Bosch BMP280 to measure the barometric altitude of the altimeter. When recording is started by pressing the button it takes a reference measurement which it calls "ground altitude". This is subtracted from the maximum altitude used in displaying the altitude achieved, however the raw barometric altitude is what is recorded onto the flash.

The micro controller is an STM32F042, chosen for it's small physical size and built in USB peripheral.

The flash chip is a Windbond W26Q16 which provides 16Mb (2MB) of recording. The current configuration of 5 bytes per sample (a 1 byte label and 32bit altitude) at 50Hz sample rate (this will probably be reduced to 25Hz in the future) provides a bit over 2hrs of continuous recording.

The 30mAh battery will last approximately 3-4 hours in idle or recording mode, and about 24 hours in sleep mode, hough work is being done to extend this as the micro controller is not currently achieving the expected current draw. The shutdown mode will last approximately forever, however there is a strange bug in the current hardware revision whereby putting the STNS01 into shutdown mode does not fully succeed until the button is released and pressed again to put a load on the LDO. The cause of this is currently unknown.

Charging, battery protection and the LDO are all supplied by the STNS01.

Using SimpleAlt

SimpleAlt has a simple user interface consisting of a single button and a single green LED (marked 's', for status). This allows it to be as light as possible but may take some getting used to.

To show how this works this document describes LED flashes between angled brackets <>. A number between the brackets indicates the number of times the LED will flash. A '.' indicates a short pause and a '-' indicates a long pause. e.g.
< 9 . 10 . 6 - >
indicates 9 flashes, a short pause, 10 flashes, a short pause and then 6 flashes followed by a long pause. Most flashing sequences will repeat, the exception being the Button mode.

The Button

All operations are performed with a single press of the button. To change which options you want you simply hold the button down longer. The options available are:

  1. Wake from Sleep - If the SimpleAlt is in sleep mode, a quick press of the button will wake it up into Idle mode.
  2. Start/Stop recording - A slightly longer press on the button, until you see the first flash on the green LED < 1 >, will start or stop recording.
  3. Enter Sleep mode - holding the button for longer will result in a double flash of the LED after the first flash < 1 . 2 >. Releasing the button now will cause the SimpleAlt to go into sleep mode.
  4. Enter Shutdown mode - holding the button for longer still will result in a triple flash after the double flash < 1 . 2 . 3 >. Releasing the button now will result in the SimpleAlt going into Shutdown mode. The only way to wake SimpleAlt from Shutdown mode is to plug a power supply into the USB connector.

Thats it!

The Green LED

< 1 - > Idle mode
< 1 . 2 . > Recording mode

The LED is used to provide status and instant altitude information. Depending on the state of the SimpleAlt it will be displaying one of the below bits of information:

  1. Idle mode - a single flash repeating < 1 - >.
  2. Recording mode - the led will alternate between 1 flash and 2 flashes with a short delay between them < 1 . 2 . >.
  3. Button mode - while holding down the button the led will flash once, then twice, then three times to indicate when to release to achieve different functions as described in the button section.
  4. Altitude mode - After exiting recording mode, so long as there was an altitude gain of at least 1m, the led will flash out the maximum altitude in metres. The number of flashes indicates the digit for each place in the number. Leading zero's are not flashed out, and a zero is otherwise flashed out as 10 flashes. So for example if your rocket got to 207m the SimpleAlt will flash < 2 . 10 . 7 - > and then repeat.

Charging

Plugging the SimpleAlt into a USB C power supply will result in it charging the battery. While charging the red LED will illuminate. When the battery is full the red LED will turn off. If a fault occured during charging (e.g. the battery voltage never rises high enough) the red LED will flash. This indicates a fault with the hardware or battery and will need to be repaired.

Putting it all together

A day flying might look like the following.

Charge the SimpleAlt by plugging it in. When the red LED turns off, it's charged so unplug it and put it into Sleep mode by holding down the button until you see the double flash.

Get to the flying field and get set up. When the rocket is ready to launch a quick press on the button wakes up the SimpleAlt and it starts slowly flashing that it's in Idle mode. Holding the button until the first flash puts the SimpleAlt into recording mode (and also sets the ground level), it starts flashing < 1 . 2 . 1 . 2 > put it into the payload bay and launch your rocket.

On recovery of your rocket press the button until the green LED gives a single flash < 1 > and release to stop recording. The SimpleAlt will now flash out the altitude your rocket achieved in metres.

Hold the button until the double flash to put the altimeter back into sleep mode, or load it straight into the next rocket and start recording again.

Back at a computer use the plug the SimpleAlt into your computer using a USB C cable and use the Simple application to download your flights. The flights are added onto the list in order that they occured and the application also gives you the duration of the flight (from starting to stopping the recording) to help you find the right flights to download. For more details see the app guide.

A screenshot of the application showing the flight of an Estes Alpha III on a A8-3

Parts

35
QtyValueFootprintReferences
6100nCapacitor_SMD:C_0402_1005MetricC2, C4, C5, C8, C9, C13
41kResistor_SMD:R_0402_1005MetricR5, R6, R9, R10
333k3Resistor_SMD:R_0402_1005MetricR1, R2, R14
35k1Resistor_SMD:R_0402_1005MetricR3, R7, R8
21uCapacitor_SMD:C_0402_1005MetricC10, C11
22u2Capacitor_SMD:C_0402_1005MetricC1, C7
24u7Capacitor_SMD:C_0402_1005MetricC3, C6
110kResistor_SMD:R_0402_1005MetricR4
11s_LipoMy Footprints:Lipo 401010BT1
1BC847WPackage_TO_SOT_SMD:SOT-323_SC-70Q1
1BMP280Package_LGA:Bosch_LGA-8_2x2.5mm_P0.65mm_ClockwisePinNumberingU2
1BuzzerMy Footprints:Buzzer_0502BZ1
1Conn_01x06_PinConnector_PinHeader_1.27mm:PinHeader_1x06_P1.27mm_VerticalJ2
1GREEN LEDLED_SMD:LED_0603_1608MetricD2
1RED LEDLED_SMD:LED_0603_1608MetricD1
1STM32F042G6UxPackage_DFN_QFN:QFN-28_4x4mm_P0.5mmU4
1STNS01Package_DFN_QFN:DFN-12-1EP_3x3mm_P0.45mm_EP1.65x2.38mmU7
1SW_PushButton_Switch_SMD:SW_SPST_B3U-1000PSW1
1USB_C_Receptacle_USB2.0Connector_USB:USB_C_Receptacle_Palconn_UTC16-GJ1
1W25Q16JVUXIQMy Footprints:Winbond_USON_8_EP_2x3mmU3

Questions

How big is the Simple Altimeter PCB?

It measures 14.7 × 25.1 mm and has 4 copper layers, 0.8 mm thick.

What parts does the Simple Altimeter use?

35 parts, built around the BMP280, W25Q16JVUXIQ, STNS01PUR and BC847W. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Simple Altimeter KiCad files?

From the miket6000/SimpleAlt repository on GitHub, at the commit this page was made from: the board is hardware/Simple Altimeter.kicad_pcb and its schematic hardware/Simple Altimeter.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Simple Altimeter design in my own project?

Its repository states no licence, so its author keeps all rights: ask miket6000 before reusing the design.

Similar boards

  • 2 layers60.5 × 45.8 mmLedgblue, the printed circuit board in 3D

    Ledgblue

    monero-project/kastelo

    The Sekura Monero Hardware Wallet

    61 parts115
  • 2 layers43.2 × 21.6 mmStns01-battery mgmt breakout, the printed circuit board in 3D

    Stns01-battery mgmt breakout

    wickerbox/Basic-Breakout-Boards

    Proving out wickerlib templates and reference circuits.

    19 parts10
  • 4 layers39.5 × 21 mmScartPCB, the printed circuit board in 3D

    ScartPCB

    screwbreaker/ScartPCB

    A little PCB to buld a SCART cable for console and old computers

    55 parts33
  • 2 layers55.6 × 57.2 mmYkb skadi pcb, the printed circuit board in 3D

    Ykb skadi pcb

    YarmanKB/ykb-skadi-pcb

    KiCad project for YKB Skadi boards

    74 parts7Apache-2.0
  • 2 layers88.3 × 105 mmDMX ESP Stepper controller, the printed circuit board in 3D

    DMX ESP Stepper controller

    electron-rare/DMX_ESP_Stepper-controller

    contrôle de moteur pas à pas selon commande DMX, pour l'opéra de Montpellier

    47 parts3GPL-3.0
  • 4 layers77 × 48.6 mmNX ISD, the printed circuit board in 3D

    NX ISD

    Ghost3379/NX-ISD

    A more sophisticated version of the Artemis Watch by Circuitmess.

    116 parts2GPL-3.0
  • 2 layers29 × 17.3 mmEsp programmer, the printed circuit board in 3D

    Esp programmer

    jnicolson/espprog

    ESP32 Programmer with Autoreset

    29 parts2CC-BY-4.0
  • 4 layers34 × 45 mmZigbee Air Sensor, the printed circuit board in 3D

    Zigbee Air Sensor

    acha666/Zigbee-Air-Sensor

    Low power air sensor with E-ink screen and ESP32-H2

    89 parts1GPL-3.0