夏の日を
器に宿し
闇を待つ
Natsu no hi o
Utsuwa ni yadoshi
Yami o matsu
Holding the summer sun
within a vessel,
waiting for the dark.
Or in cold engineering terms, it is 50 farads of energy storage. In another sense, it is simply a vessel built to hold a piece of the day.
In my previous blog article, I described the firmware of FireFly Solar. An ATtiny85, a few registers, and the art of doing almost nothing. But even doing almost nothing requires energy. In this post, I want to look at the hardware behind the firefly: How it collects sunlight, stores energy, and turns it into little messages in the darkness.
As always, FireFly Solar is my “technology playground”. The goal is not simply to build something that works, but to learn something along the way. All Files for this projects are in my Gitea repository.
1. The Idea
The original idea was quite simple: build a small autonomous electronic firefly that sends out a Morse code message during the night. No disposable batteries. No external power supply. Just sunlight during the day and a little light during the night.
Ideally, it should be able to live somewhere in a garden or balcony for years, without requiring any attention. The software takes care of the Morse code, the detection of darkness, and, most importantly, keeping energy consumption as low as possible. I have already described the firmware in my previous article “FireFly Solar – Inside the Firmware”.
However, the electronics also need a home outdoors. For the enclosure, I decided to use a PET bottle preform. A preform is the small, thick-walled plastic object from which a PET bottle is manufactured. Before being heated and blown into its final shape, it looks a little like a test tube with a bottle thread. More about plastic bottles and their preforms on Wikipedia. For a small outdoor electronics project, these preforms are quite interesting. They are mechanically robust, transparent – essential for a LED blinker – inexpensive, and already come with a thread for a standard bottle cap. They are also used widely for small electronic projects or geo caches. Of course, the cable entry and the cap still need to be properly sealed against moisture.
The other important design decision was to use through-hole technology (THT) instead of surface-mounted components (SMD). Because I want this little project to remain accessible also for beginners. With a small soldering iron, a little patience, and some basic soldering skills, almost anyone should be able to assemble a FireFly. I also have the idea of a small DIY kit in mind.
Perhaps a future version will use SMD components. Learning to design and assemble an SMD version would be another interesting step for my technology playground.
A small mechanical challenge: There is one little conflict between these design decisions: through-hole components need space, and a PET bottle preform does not offer much of it. The width of the PCB is only one part of the problem. The height of the components, particularly the supercapacitor, is equally important. One of my lessons learned was that the PCB needed a cutout to accommodate the supercapacitor. Instead of placing the entire capacitor on top of the PCB, part of its body can sit within the PCB outline.
I just finieshed the 1st version, and it is running for testing at my balcony:

2. Storing the Sun
The most important question behind the FireFly is how to store enough energy during the day to keep it alive throughout the night. The obvious solution would be a small rechargeable battery.
But I wanted to try something different, also because of the size limitations: a supercapacitor. Supercapacitors can be charged and discharged repeatedly, generally tolerate a large number of charging cycles, and can provide relatively high currents when required. For a small device that consumes very little energy and is recharged every day, they are an interesting alternative to conventional rechargeable batteries.
For FireFly Solar, I selected an Abracon AHCR-S04R0SA506Q, a 50 F / 4 V lithium hybrid supercapacitor in an 8 mm × 25 mm radial package (AHCR-S04R0S — Abracon datasheet). The datasheet specifies more than 50,000 charge cycles.
50 farads sounds quite impressive when you are used to dealing with capacitors in the microfarad range. So how much energy does it store? The energy stored in a capacitor can be estimated using:
E = ½ × C × U²
For 50 F at 4 V:
E = ½ × 50 F × (4 V)² = 400 J
That is about 0.111 Wh, which matches the maximum stored energy in the datasheet. Not very much compared to a rechargeable battery, but FireFly does not need much energy.
There is, however, an important detail. The selected component is a lithium hybrid supercapacitor, not a conventional capacitor that can simply be discharged down to zero volts. Its datasheet specifies a lower voltage threshold of 2.5 V, and the datasheet itself points out that the usable energy is less than the stored energy because of it. You can see this during discharge below 2.5V at the Supercap. Voltage will drop during load sharply, but recovery mostly to the previous voltage. On the upper end, the maximum charging voltage is 4.2 V. In FireFly Solar, a 3.9 V Zener diode limits the charging voltage, a little below the 4.0 V rating. Taking this into account, the theoretical usable energy between 3.9 V and 2.5 V is approximately:
E = ½ × 50 F × [(3.9 V)² − (2.5 V)²]
E ≈ 224 J ≈ 0.062 Wh
This uses the nominal 50 F. The capacitance tolerance is −10 % / +30 %, so a real part holds between about 45 F and 65 F. That moves the usable energy between roughly 200 J and 290 J (0.056 to 0.081 Wh). It is also the energy before any losses in the DC/DC converter. This is before accounting for conversion losses, leakage current, and the energy required by the electronics themselves.
The principle of the complete FireFly circuit is quite simple. It consists of three functional blocks:
- Energy harvesting and storage: Solar modules, charging protection, and the supercapacitor.
- Power conversion: A DC/DC converter that provides the operating voltage.
- The firefly itself: An ATtiny85 and an LED that acts both as a light source and a light sensor.
Sunlight goes in at one end, and a little Morse code comes out at the other.
3. The Circuit
The complete schematic was designed in KiCad. It is available, together with the other project files, in my Gitea repository. FireFly Solar — KiCad Schematic. Also a PDF Version of the Circuit.
Screenshot for this blog:

3.1 Harvesting the Sun – Energy Storage and Protection
The first part of the circuit collects and stores the energy. The PCB provides connections for up to three small solar modules. Alternatively, another suitable low-voltage, current-limited DC source can be used.
I use three small solar modules of approximately 60 × 60 mm, nominally rated at 5 V, connected in parallel, one per input. They face in different directions, so there is no need to align them to the sun. The flip side is that only one or two of them see the sun at any moment.
In real outdoor conditions, the values are somewhat different from the numbers printed on the modules. For my initial calculations, I used approximately 4.5 V and 10 mA per module as representative working values. Of course, the actual output depends on the weather, the position of the sun, the orientation of the module, and its electrical operating point.
Each solar input is connected through a Schottky diode (D1–D3). These diodes allow the modules to feed a common charging circuit while preventing reverse current into the modules. This is particularly useful when one module is illuminated and another one is in the shade. It also prevents the supercapacitor from discharging back into the solar modules during the night. I chose Schottky diodes because of their relatively low forward voltage drop. With only a few volts available, every unnecessary voltage drop matters.

Protecting the energy storage
The solar modules can generate a higher voltage than the supercapacitor should be exposed to. Therefore, the charging circuit needs some form of overvoltage protection. My solution is deliberately simple:
- R1: 33 Ω series resistor, rated at 2 W
- D4: BZV85-C3V9, 3.9 V Zener diode, BZV85 Zener diode series — Datasheet
- C1: 50 F / 4 V supercapacitor, AHCR-S04R0S — Abracon datasheet
The Zener diode is connected in parallel with the supercapacitor. As the capacitor voltage approaches its breakdown voltage, it starts to conduct, and once the capacitor is full, the surplus current from the modules flows through the Zener instead of raising the capacitor voltage further.
The modules limit their own current to roughly 10 mA each, so with solar input alone R1 dissipates only about 30 mW at most. [Reason for 33 Ω / 2 W, e.g. headroom for a stronger external DC source, or the Zener operating point.] The price is a voltage drop of about 0.33 V at 10 mA.
One detail deserves attention. The datasheet specifies the BZV85-C3V9 at 3.7–4.1 V, measured at 60 mA and 25 °C. So a 3.9 V Zener may clamp a little above the 4.0 V rating of the supercapacitor. This is still below the 4.2 V maximum charging voltage in the datasheet, and my modules deliver much less than 60 mA, which lowers the clamp voltage in practice. The temperature coefficient of this Zener is negative, so the clamp voltage rises slightly on cold days.
If this is a concern for your build, the next lower type is the BZV85-C3V6. It keeps the capacitor safely below its rating, but it costs energy. With the 2.5 V lower threshold of the supercapacitor, the usable energy drops from about 224 J to about 168 J, roughly 25 %, and that translates directly into less Morse time per night.
Why this big 2 W resistor?
Let’s look at a few numbers. The current through the charging resistor can be estimated with Ohm’s law:
I = (Usolar − Udiode − Ucap) / R1
Assuming a solar voltage of 4.5 V, a Schottky forward voltage of 0.3 V and an almost full capacitor at 3.9 V:
I = (4.5 V − 0.3 V − 3.9 V) / 33 Ω ≈ 9 mA
That is close to the 10 mA I assumed for one module. The power dissipated by the resistor is:
P = I² × R ≈ (9 mA)² × 33 Ω ≈ 2.7 mW
With a lower capacitor voltage, the formula gives a higher current. At 2.5 V it would be about 50 mA. But the formula assumes a stiff 4.5 V source, and my solar modules are not: each delivers about 10 mA, so three modules give at most 30 mA, and the module voltage sags instead of the current rising. With solar input alone, R1 therefore never dissipates more than:
P = (0.03 A)² × 33 Ω ≈ 30 mW
So why 2 W? Because of a possible DIY kit: someone may connect stronger solar modules or another DC source, and the resistor should survive that. The worst case for R1 is an empty supercapacitor, the worst case for the Zener a full one.
For example, with a charging current of 100 mA (this needs a stiff source of about 7.5 V at a capacitor voltage of 3.9 V):
P = (0.1 A)² × 33 Ω = 0.33 W
R1 reaches its 2 W limit at about 246 mA. For my own three modules, a 0.5 W resistor would be enough (good up to about 120 mA). It is also worth noting that once the supercapacitor is full, the surplus current flows through the Zener diode. At a Zener current of 30 mA:
PZ = 3.9 V × 0.03 A ≈ 0.117 W
The Zener is actually the weaker component. The BZV85 is rated for 1 W (25 °C ambient, 10 mm leads) up to 1.3 W with the leads held at 55 °C. At 246 mA it already dissipates about 0.96 W, so resistor and Zener reach their limits at roughly the same current. For 33 Ω that corresponds to an input of about 12 V. I checked this at the workbench and the resistor got really hot. That is why I stay with the 2 W type for a future DIY kit.
This circuit is simple, but it is not an unlimited power-input stage!
How long does charging take?
The basic relationship between charging current, capacitance and voltage is:
I = C × ΔU / Δt
Or, rearranged:
t = C × ΔU / I
Charging the 50 F capacitor from 2.5 V to 3.9 V with a constant current of 10 mA would theoretically take:
t = 50 F × 1.4 V / 0.01 A = 7,000 s ≈ 1.9 hours
Put differently, the capacitor has to take up a charge of 50 F × 1.4 V = 70 C, which is about 19.4 mAh. I checked this at the workbench with a 4.5 V source limited to 10 mA, and it took about 2 hours, very close to the calculation. This works so well because the charging current stays at the 10 mA limit almost all the way up. R1 only starts to reduce it at about 3.87 V, where (4.5 V − 0.3 V − 3.87 V) / 33 Ω falls below 10 mA.
In reality, the charging current is not constant. It changes with sunlight and decreases as the capacitor approaches its final voltage. With only 3 mA, for example under a thick layer of clouds, the same charge takes about 6.5 hours. The capacitance tolerance of −10 % / +30 % (45 F to 65 F) moves the 10 mA figure between about 1.75 and 2.5 hours.
Nevertheless, this gives a good idea of the order of magnitude. A few hours of useful sunlight can be sufficient to prepare the FireFly for another night.
Design decisions and lessons learned
This simple charging circuit is not designed to extract the maximum possible energy from the solar modules. It is a compromise between simplicity, component count, efficiency, and ease of assembly.
One important consideration is the accuracy of the Zener voltage. A 3.9 V Zener diode does not necessarily clamp at exactly 3.9 V. Its voltage depends on current, temperature, and manufacturing tolerances. For this reason, the actual maximum capacitor voltage should be measured under the brightest expected conditions. A 3.6 V Zener diode is another possible option if a larger voltage margin is required, but this will limit the morse time during night dramatically.
Another lesson is that the solar module’s nominal voltage alone tells you very little about its performance in the real world. What matters is how much energy it can actually deliver to the storage capacitor during the day.
3.2 Making Every Joule Count – The DC/DC Converter
A supercapacitor has one characteristic that makes it rather different from a conventional battery. Its voltage decreases continuously as energy is removed.
Connecting the ATtiny85 directly to the supercapacitor would be possible within certain voltage limits. However, the LED brightness would change with the supply voltage, and the circuit would eventually reach the minimum operating voltage of the microcontroller.
To make better use of the stored energy, I decided to use a DC/DC converter. The component I selected is the MAX756CPA, a step-up switching converter from Maxim Integrated, now Analog Devices:
The MAX756 is not exactly a new component. Its design dates back to the 1990s. But it has one very important advantage for my project: it is available in a classic 8-pin DIP package. When looking for a suitable DC/DC converter, I found many modern components with excellent efficiency and extremely low power consumption. Unfortunately, most of them are only available in SMD packages.
The MAX756 fits my through-hole design philosophy much better, but yes it sometimes hard to get.
The basic MAX756 circuit
There is nothing particularly exotic about my implementation. It is based on the typical operating circuit described in the MAX756 datasheet.

The main components are:
- U1: MAX756CPA
- L1: 22 µH inductor
- D5: Schottky diode
- C3: 100 µF output capacitor
- C4: Reference bypass capacitor
The basic operating principle is that the converter temporarily stores energy in the magnetic field of the inductor and then transfers that energy through the Schottky diode to the output capacitor. By repeating this process, the converter can produce an output voltage higher than its input voltage.
The MAX756 uses pulse-frequency modulation (PFM). The switching activity changes according to the energy required by the load, which makes it useful for applications with varying power consumption.
In FireFly Solar, the load changes considerably between the short periods when the LED is illuminated and the much longer periods when the ATtiny85 is asleep.
3.3 V or 5 V?
The MAX756 offers two selectable output voltages: 3.3 V and 5 V. I included a selection connection, J3, on the PCB so that both options are available for experimentation.
For normal operation, I use the 3.3 V setting. There is simply no need to run the ATtiny85 and the LED at 5 V in this application. A lower voltage saves energy: the microcontroller draws less, and for the same LED current the power taken from the supply scales with the voltage, so 5 V would cost about 50 % more (5 V / 3.3 V ≈ 1.5). It also means less voltage is burned in the LED series resistor.
One important detail is that the MAX756 is a boost converter, not a buck-boost converter. If the supercapacitor voltage is higher than the selected output voltage, the converter cannot reduce it. The output then simply follows the input through the inductor and the Schottky diode, lower by the diode’s forward drop. With the supercapacitor at its Zener-limited 3.9 V and a drop of about 0.3 V, the output sits at roughly 3.6 V instead of 3.3 V. Maxim’s evaluation-kit notes recommend keeping the input below the output voltage plus 0.5 V (about 3.8 V in the 3.3 V mode), so a full supercapacitor is slightly above that recommendation. But bench test showed it worked well enough. Also with full supercap at 4V I have a stable voltage of 3.3V for the ATtiny.
For the ATtiny85 this is harmless, since it is specified up to 5.5 V. For the LED it matters: the voltage across the series resistor changes by about 0.3 V between a full and a partly discharged supercapacitor. If about 1 V drops across the resistor at 3.3 V, it is about 1.3 V at 3.6 V, which means roughly 30 % more LED current. That is why I did not calculate the resistor on paper, but tested different LEDs and resistors at the bench, with a full and a low supercapacitor.
So why 5 V at all?
The only reason for the 5 V setting is a blue LED. The forward voltage of an LED depends on its color, because it is set by the band gap of the semiconductor. Typical values at 10 to 20 mA (check the datasheet of your LED):
- Red, Green: about 2 V
- Yellow / amber: about 2.1 V
- Blue (and white): about 3.0 to 3.2 V, within a range of roughly 2.8 to 3.4 V
At a few milliamperes the voltage is lower by about 0.2 to 0.3 V. The LED is driven directly by two ATtiny85 pins, and each of them loses a few tenths of a volt at LED current. At 3.3 V, well under 3 V therefore remain for the LED and its series resistor. A red LED leaves about a volt for the resistor, which keeps its current well defined. A blue LED has no headroom at all: either it barely lights, or the resistor must be tiny and the current then depends strongly on the LED tolerance, the temperature and the supply voltage. It would also be brighter with a full supercapacitor (about 3.6 V at the output) than later in the night, when the converter regulates 3.3 V.
At 5 V, about 4.4 V remain. A blue LED of 3.1 V leaves about 1.3 V for the resistor, roughly the headroom a red LED has at 3.3 V. The price is energy: about 50 % more for the same current, and an ATtiny85 running at 5 V. I have not tested the 5 V setting yet. One more caveat: a blue LED only responds to short wavelengths, so as a light sensor it behaves differently from a red one, and the darkness threshold “darkSteps” in the firmware has to be recalibrated.
The cost of doing almost nothing
The MAX756 itself needs energy, even when the ATtiny85 is asleep. Its datasheet specifies a typical quiescent current of 60 µA. That is quite low for a switching converter of its generation, but in a system where the microcontroller spends most of its life asleep, even 60 µA becomes significant. This is one of the interesting aspects of low-power electronics: once you reduce the consumption of the microcontroller, other components that previously seemed insignificant suddenly become important. Another important point is that the MAX756 can continue operating at input voltages well below the minimum voltage of my hybrid supercapacitor.
The current circuit does not include a dedicated undervoltage disconnect. Adding one to protect the supercapacitor during extended periods without sufficient sunlight would be a worthwhile improvement for a future revision. Simply putting the converter into shutdown is not necessarily sufficient, because the boost circuit still provides a passive current path through the inductor and diode. There are certainly more efficient solutions available today. But all in SMD…
But for this version of FireFly, the MAX756 offers a nice combination of simplicity, understandable operation, and through-hole assembly.
3.3 The ATtiny85 – One LED, Two Jobs
The final part of the circuit is the firefly itself. Compared to the energy harvesting and power conversion stages, this part looks almost disappointingly simple. An ATtiny85, an LED, a resistor, and a few additional passive components.
But there is a little trick behind it. The LED does not only produce light. It also acts as a light sensor. An LED is a semiconductor junction. Just as electrical current can cause it to emit light, incident light can generate a small electrical response within the junction. The ATtiny85 uses this effect to determine whether it is day or night.
During light detection, the firmware changes the configuration of the GPIO pins and measures the behavior of the LED junction. During Morse transmission, the same LED is operated normally as a light-emitting diode. This means I do not need a separate phototransistor, photoresistor, or other light sensor.
The details of how this works, including the watchdog timer and the sleep modes of the ATtiny85, are described in my firmware article.
Selecting the LED resistor
This sounds like one of the easiest parts of the circuit. Choose an LED, calculate a resistor with Ohm’s law, and you are finished. Well, not quite. The basic equation is simple:
R = (Usupply − Uf − Upins) / ILED
Upins is the voltage lost in the two ATtiny85 pins that drive the LED directly, a few tenths of a volt in total. The forward voltage of an LED depends on its semiconductor technology, the operating current, the temperature and manufacturing tolerances. Furthermore, two LEDs with the same current can look very different: the eye is about three times more sensitive to green light (525 nm) than to red light (630 nm), and the dark-adapted eye shifts even further towards green. I experimented with different LEDs and resistor values until I found a good compromise between visibility and energy consumption.
For operation at a nominal supply voltage of 3.3 V, my tested combinations are:
| LED | Series resistor R2 | Calculated current at 3.3 V | Remarks |
|---|---|---|---|
| Red | 640 Ω | about 1.8 mA | a little bit dark, but ok in the night |
| Green | 330 Ω | about 2.9 mA | very bright, especially in the night |
The currents are calculated from typical forward voltages (about 1.9 V for red, 2.1 V for green at these low currents) and about 0.25 V lost in the pins. Both LEDs therefore run at less than 15 % of the 20 mA at which their datasheets specify forward voltage and brightness. Strictly speaking, that is outside the specified range, and the exact values vary from piece to piece. For this application that is fine: low current is the whole point. The ATtiny85 pins are comfortably within their guaranteed output levels at these currents. Over one Morse transmission the LED is lit for about 10.85 s, which costs roughly 64 mJ with the red LED and 104 mJ with the green one. Green looks much brighter, but it costs also about 60 % more energy.
These values are not universal recommendations for every red or green LED. They are the results of my experiments with the particular LEDs I selected for the FireFly. And because the LED is also used as a sensor, changing the LED also changes the light detection behavior, so the darkness threshold “darkSteps” in the firmware has to be checked again.
I have not tested blue LEDs or the 5 V setting yet.
Lessons learned
My first assembled PCB was, in the end, a rather messy little object. Different LED versions, different resistor values, modifications, more soldering, and another round of testing. What started as a nice, clean PCB became a record of my experiments. But that is exactly what a prototype is supposed to be.
One important lesson for a possible DIY kit is that the LED and its corresponding resistor should be considered a matched combination. A kit should contain a specific, tested LED together with the appropriate resistor value, rather than leaving the selection entirely to chance.
After a sunny day, my current FireFly prototypes have achieved approximately 14 hours of Morse operation during the night, the green and the red ones.
Better than I originally expected!
4. PCB Assembly – Making It Fit
The PCB was designed in KiCad with through-hole assembly in mind. Most components are relatively easy to solder, and there is no need for a hot-air station, solder paste, or a reflow oven (I alspo not own). Just a soldering iron and some patience. But the PCB is not only an electrical object. It also needs to fit into its little PET enclosure and survive outdoors.
The PCB design is in the KiCad Project at my gitea, also a pdf printout.
The supercapacitor
The largest mechanical challenge is the supercapacitor. Its diameter is approximately 8 mm, but its body is relatively long compared to the other components. Mounting it in the conventional way would increase the overall dimensions of the assembled PCB considerably. Therefore, the capacitor needs to be accommodated within a cutout in the PCB. This reduces the total profile of the assembly and makes better use of the available space inside the preform. It is a small detail, but one that is much easier to solve during PCB design than after receiving the manufactured boards.
Mechanical support – A little wire cage
There is another detail worth mentioning. FireFly is intended to live outdoors. Wind will move it, sometimes gently, sometimes not quite so gently. The supercapacitor has considerably more mass than most of the other components on the PCB. If it is supported only by its electrical leads, every movement creates mechanical stress on the leads, the solder joints, and the PCB pads.
Over time, I think this could become a problem. My solution is a small wire cage around the supercapacitor. The wire provides additional mechanical support and helps transfer forces to the PCB rather than leaving the solder joints to carry the entire mechanical load. The support wire must, of course, be arranged so that it cannot damage the capacitor’s insulation or create an electrical short circuit. Nothing sophisticated, but hopefully effective.
A little lesson from my experience in mechanical engineering: solder joints are primarily electrical connections, not structural mounting points.

IBN – Assembly Check and First Power-Up
IBN — Inbetriebnahme (German), or commissioning, as we engineers like to call it.
Before releasing a little electronic firefly into the wild, it is worth checking whether everything works as intended. After assembly, I first checked the PCB for the usual suspects: solder bridges, incorrect component orientation, and particularly the polarity of the diodes and the supercapacitor. For the first power-up, I used my laboratory power supply instead of the solar modules, connected to one of the solar inputs:
- Voltage: 4.5 V
- Current limit: 10 mA (0.01 A)
This provides a controlled environment for the initial charging of the supercapacitor. With 50 F, charging takes a little patience. The current limitation also helps to prevent damage if something is wrong with the assembly.
While charging, I checked the voltage across the supercapacitor and the output of the DC/DC converter. For the functional test, I used the Lab Bench Mode of the FireFly firmware. There is no need to wait for some time (13 minutes) to find out whether the little creature is alive. More about the FireFly firmware and its operating modes
There is, however, one little challenge: the FireFly is designed to operate in darkness, and my laboratory is usually quite well illuminated. My solution is a small piece of heat-shrink tubing that fits over the LED. For a typical 5 mm LED, a suitably sized tube can simply be slipped over it without shrinking it.
The tube acts as a little light shield, creating an artificial night for the LED. I leave the lower end open so that I can still observe the LED blinking and read its Morse code. Once charging, voltage conversion, light detection, and Morse transmission have all been checked, the FireFly is ready for its first real night outdoors.
In the video you can also see the measuring points for the Supercap at the PCB, just juse the pin of L1, connected to the supercap and ground is the “cage” of the superconductor:
A small recommendation about IC sockets
I use a socket for the ATtiny85. This makes it easy to remove the microcontroller for programming, testing, or replacement. For a project like FireFly, where I frequently experiment with the software, this is very convenient. However, I learned that not all IC sockets are equally good.
Some inexpensive sockets can develop contact problems after months of operation, particularly when exposed to the temperature variations and mechanical movement of an outdoor installation. My recommendation is to use a good-quality IC socket, preferably a precision socket with turned contacts. Saving a few cents on a socket is not particularly useful if you later have to investigate a mysterious microcontroller malfunction caused by an unreliable electrical connection.
Ready for the outdoors?
The PET preform provides a nice little protective enclosure, but it does not automatically make the FireFly weatherproof. Cable entries, condensation, moisture, UV exposure, and temperature cycling all need to be considered. For long-term operation, the enclosure and the temperature limits of the electronic components are just as important as the electrical design.
And this is another aspect of the project that I will continue to observe.
5. Closing Words
FireFly Solar is not the smallest solar-powered circuit possible. It is not the most efficient one either. There are more sophisticated energy harvesting ICs, better DC/DC converters, and much smaller SMD components available today. But that is not really the point of this version. I wanted to build a little autonomous device, using components that I can understand, experiment with, and assemble myself.
Along the way, I learned about solar energy harvesting, supercapacitors, low-power switching converters, LEDs as light sensors, PCB design, and the mechanical challenges of putting electronics into a rather small plastic tube.
And there is still plenty to explore. Perhaps the next generation of FireFly will have a more efficient energy harvesting circuit, a better protection system, or an entirely SMD-based PCB.
But for now, at my balcony, little electronic firefly collects sunlight during the day, waits for the darkness, sends out its little message, and goes back to sleep.
螢火や
闇にひとこと
又消えぬ
Hotarubi ya / A firefly’s glow
Yami ni hitokoto / a single word in the darkness,
Mata kienu / gone again.
Project resources
- FireFly Solar – Gitea Project Repository
- KiCad Schematic
- FireFly Solar – Firmware Article
- FireFly Solar – Project Start Article
Tōgō Lab / 塔郷研究所,











