[2026-11-14] Updated for significant changes to overall approach. Hardware did not change -- no change to PCB.

I'm not a rocket enthusiast, but I belong to a radio control club which has members who are. You can purchase commercial versions of this Payload, but I think this one is smaller and lighter weight than most others and will be much less expensive (if you don't count my labor.)

Disclaimer:

I'm using Anthropic's Claude Code to aid in writing both the firmware and application software. Without Claude this project would either: be much longer, if I had the ambition, or would not exist due to my lack of knowledge on the software side of it.

One Hardware Version:

Previous hardware/software versions were created, depending upon the altitude sensor and/or the size of the onboard EEPROM. The BMP581 will be the only sensor going forward -- due to superior availability/noise/accuracy performance, and also ease of soldering. The firmware can now determine the size of the EEPROM, so no separate firmware coding is required. Only a single firmware version will be needed now.

Flight Parameters:

Real time sensor readings (barometer, accelerometer, gyro) at user selected intervals (20ms, 40ms, 100ms) from launch detection to 5 seconds after apogee (or up to max interval set by user), then records data during recovery at 1 second intervals until landing.

What it Does:

Specifications:

Latest Schematic (v2) [as of 2026-07-06]:

It is surprisingly simple, given the complexity of operation. Claude and I chose a PIC16LF18345 for the micro-controller. I have a PICKit4 programmer that keeps me in the Microchip camp for now. [2026-11-07: Implemented bootloader code that allows a user to upgrade the firmware via the Viewer app over the USB interface.] The PIC runs at 8MHz, and consumes about 1mA.

There are five sources for the pressure sensor -- a BMP581, BMP390, BMP384, BMP388, or a LPS22HB which requires a different interface configuration. All of the pressure sensors have identical footprints/pinouts. The BMP581 is the better choice because it outputs temperature compensated pressure, low noise, and is stocked in high quantities. I really hate that 10-pin 2x2mm package, but larger alternatives would be much more difficult to accommodate in such a small PCB. JLCPCB won't populate any of these parts unless the PCB is panelized (4x2 array to meet the 70mm x 70mm minimum dimension). That makes a minimum order quantity of 40 populated PCBs. 

Originally, I had just an accelerometer IC, but switched to the LSM6DSO32 IMU to allow collecting rotation data during the flight. The LSM6DSO32 offers a full scale 32g, which is an advantage for these small rockets that can generate high thrusts. All of the sensors, and the EEPROM, use a single SPI bus.

A 1Mbit EEPROM is probably the best option. It has enough space to allow storage of multiple flights, depending upon length, and is available from multiple sources at reasonable prices.

The magnetic switch is a WH2508 hall effect switch. It is push-pull output, active low. It consumes about 6-7μA at 3.3V. A strong 6mm dia. x 10mm neodymium magnet is required for activation. Activation range is approximately 25mm.

The PIC is programed via the USB connector. The dual DPST analog switch connects the proper signals to the PICKit4 programmer when VBUS is not present. (The PICKit4 is only required to install the bootloader code, then all other firmware can be installed via the Viewer app.) Otherwise, the MCP2221a is connected normally to communicate with the USB interface. I had to add a second XC6206 LDO to power the MCP2221 because the UART outputs would be 5V logic without it.

The buzzer is a passive magnetic type, surface mounted 3 x 5 x 5 mm. I'm not aware of any surface mounted active buzzers, so the PIC uses a PWM module to output the gate drive for M2. M2 is necessary because the buzzer has a low impedance (11 Ohm).

The on-board battery charger is a TP4054 from UMW, a Chinese source. It is very cheap -- only about $0.24 in low quantities, and it is identical to the MCP73832 that I have used previously.

3D Printed Enclosure:

The Payload is so light/small that it can be placed into the chute area and attached to the nose cone with a lanyard. I printed out a minimalistic enclosure that protects components from damage and offers a way to attach the lanyard. 

The golden block on top is the 501010 LiPo battery. I will just use heatshrink or electrical tape to secure the PCB and battery to the enclosure. There are vent holes on the bottom side to allow the barometer to sense pressure and show the charging LED. The barometer sensors are sensitive to light interference, so this should eliminate that as well.

The App:

Claude is working on the application. I'm pretty much clueless regarding the coding required to make an application that potentially spans several operating systems. The App should function in the three major OS's (Win/Mac/Linux), and Android (allowing a phone to download/view data and reset the Payload for the next flight while still in the field.) Apple's iOS is a bit problematic because it requires Bluetooth for an interface. So far [2026-07-06], there is a stand-alone app for Windoze, Linux, and Android that are producing viable results. It is fairly simple, with three tabs to choose from. You can download these apps from my Github repository.

Flight Data Tab: 

Settings Tab:

History Tab:

Status:

[as of 2026-05-07] I have two prototypes (STANDARD) up and working. Using a quad-copter or hand toss to simulate flight. Settled on g-force to trigger launch detection, using altitude for apogee detection and landing. Application is bare bones, but useful for: downloading data, erasing data, displays flight parameters, changing settings, and saving/uploading flight histories to/from files. Application just needs a bit of polish.

[As of 2026-05-10] Payloads installed into the 3D printed enclosures.

[As of 2026-05] OSH Park is fabricating the v2.0 4-layer PCBs, which should be shipped back to me around 1, June. I ordered additional v2.0 components -- MCP2221a, dual SPDT analog switch, 4Mb EEPROM -- from Digikey. 

[2026-06-05] PCBs and parts arrived. The first v2 prototype is assembled without smoke or high current draw. I forgot to contemplate what would be required to program the PIC via the USB interface -- a USB 2.0 breakout board and short USB type-C cables will arrived tomorrow.

[2026-07-06] The BMP581 pressure sensors are installed on two of five prototypes and are working well. Just found/fixed the 150-300ms of missing data after launch. Expecting another "real" rocket flight in a few days.

[2026-07-15] Another successful flight. Found and fixed a bug that was causing missing data immediately after launch detection. The firmware and application are working well now. Haven't uploaded the latest app version (2.0.1) to Github repo yet.

[2026-11-07] The PCB layout isn't requiring any changes. Time to release Gerber files and BOMs. Working on implementing bootloader. After that, will add accelerometer/gyro calibration, and also velocity data to flight stat table.

[2026-11-15] Bootloader implemented -- app can now perform FW updates. Removed EEPROM size hardcoded into FW -- now autodetected -- allows multiple flights storage depending on flight length. Implemented IMU calibration. Added Flight Path plotting from IMU data (Lean angle and Roll angle).