MOONLIGHT - The Flight Computer I Built and Never Sold
Overview
MOONLIGHT was going to be the board above STARLIGHT: a smaller footprint, more capable sensors, and production flight software in the box instead of a development board you write code for. I designed it in November 2023 from what STARLIGHT's users had actually asked for. A BNO085 9-axis IMU with sensor fusion on the chip replaced the ICM-42605, so the RP2040 wouldn't have to do fusion in MicroPython. An ADXL375 added 200 g range, because the ICM tops out at 16 g and plenty of motors pass that off the pad. The barometer went from a BMP388 to a BMP390. The fixed 5V servo regulator became adjustable so it could run HV93i servos at 6V and up, and the pyro channels doubled to four. It went through about 120 revisions, and I ordered five boards in December 2023. One issue with that batch cost me nearly $150, and I never sold it. Supporting a second, more complex product was more than a one-person business selling $49 boards could carry. The design post is still up.
Photo gallery
What I learned
- Users ask for features, not for the support bill. Every change on MOONLIGHT came from a real request and all of them were good. Nobody asked, and I hadn't either, whether I could test, document and support two boards alone. I couldn't, so the five boards I'd ordered stayed in the drawer.
- 120 revisions didn't catch what one order did. I'd never revised a board that many times, and the batch still came back with an issue that wrote off nearly $150 of boards. Revisions find what you're looking for; the first assembled board finds the rest.
- Put sensor fusion on the sensor. STARLIGHT's RP2040 ran fusion in MicroPython and the lag showed up as the 2 to 3 degrees of attitude error I'd spent months fighting on HORIZON. The BNO085 does it on-chip. One part choice would have fixed the thing I'd been trying to fix in software.
- Check the accelerometer ceiling against real motors. I'd picked STARLIGHT's IMU for its gyro and never looked at the 16 g limit. A hard-hitting motor clips it on the pad and the whole flight log starts wrong. Range against the actual motor is now the first line on my sensor checklist.
- A fixed 5V rail quietly limits the servos you can use. Cheap 9g servos run at 4.5 to 6V and the HV93i that TVC actually needs wants 6V or more. The regulator spec has to come from the actuator list, not from the logic.