After several years of flying the Sub-
Zero, I starting thinking about more inter-
esting color and blink patterns, and won-
dered if it would be possible to build an
LED light that could sense where it was in
the flight and alter its appearance accord-
ingly. In my mind I thought of something
that would change color as a function of
altitude. I dubbed the project "Gravity's
Rainbow" after the evocative title of Thom-
SPORT ROCKETRY MARCH/APRIL 2021 7
pendently; it's controlled by three Pulse
Width Modulation (PWM) pins of the Ar-
duino.
I thought about using an accelerometer
for launch detection, but eventually set-
tled on a barometric pressure sensor, the
MPL3115A2, also available as a breakout
board from Sparkfun. The MPL3115A2
connects to the Arduino via the SPI bus
and outputs altitude directly using the
standard atmospheric model embedded in
the chip. A library for the pressure sensor
was already available.
The whole system is powered by a
7.4V 2S lithium-polymer battery and can
run for several hours. The three boards are
Figure 2. SubZero
on a G75 Metalstorm.
as Pynchon's novel about, among other
things, the German V-2 rocket.
Electronics
For maximum flexibility, I started with
a small microcontroller board, the Spark-
fun Arduino Pro Micro. This uses a fairly
powerful Atmel ATMega328 chip and the
standard Arduino software infrastructure
with its rich set of libraries. The Arduino
controls a Vollong 3-Watt RGB High Power
LED via a buck-regulating LED control-
ler, the Sparkfun PicoBuck. This control-
ler runs the LEDs at a constant current and
supports dimming of each channel inde-
Figure 3. SubZero descending
on chute through Orion and
Canis Major.