About
## Challenges we ran into
Double-bit errors breaking the protected side. Hamming SECDED corrects one flipped bit per byte but can only detect two. At high injection intensity, two flips landed in the same protected byte and a few pixels glitched on the "clean" side. Rather than hide this, we made it a feature: the red LED lights on uncorrectable errors, which shows why real satellites need stronger codes. We also added the memory scrubber, which continuously reads, corrects and rewrites Chip B so single errors can't pile up into uncorrectable pairs. Running the same heavy injection with the scrubber off and then on demonstrates the difference live. Keeping the comparison fair. For the demo to be honest, both chips had to take identical damage. We inject bit-flips at the same random addresses in both chips on every press, so any difference comes from the protection and not luck. Memory overhead. Check bits mean the protected chip needs roughly 1.5-2× the storage of raw data. We kept images small (64×64 or 128×128 grayscale) so they fit comfortably in the 128 KB chips, and we show the overhead on the stats panel so the trade-off is transparent. Real-time speed. Decoding every byte through Hamming on each refresh, while also scrubbing and driving the TFT display, could slow the screen down. We kept the SPI bus fast, shared it between both SRAM chips with separate chip-select pins, and used optimized C++ so the display stays smooth even during heavy injection. Verifying it works. Because the radiation is simulated, we tested each behavior before the demo: a single flip is fixed, many scattered flips are fixed, a double flip in one byte is detected, Reset restores both images, and the scrubber actually heals memory.
## The problem it solves
Radiation in space flips bits in a satellite's memory, and nobody can send a technician to fix it. One flipped bit can corrupt an image, a command or a sensor reading, and these errors (Single Event Upsets) are invisible, which makes them hard to design for, test and teach.
RAD-GUARD makes that failure visible and shows the fix working live. One ESP32 stores the same image in two SPI SRAM chips: one unprotected, one protected with Hamming SECDED error correction. A "cosmic ray" button flips the same random bits in both chips, and a side-by-side display shows the unprotected image collapsing into noise while the protected one stays clean.
What people can use it for:
Teaching: STEM educators and university students can see why error-correcting codes and memory scrubbing matter, without needing a radiation chamber or a lecture full of abstract theory. Prototyping and training: Aerospace and satellite engineers can use it to demonstrate and compare fault-tolerance strategies, such as how scrubbing on versus off changes survival under heavy injection. Building intuition about trade-offs: The live stats panel shows bits flipped, corrected and uncorrectable, plus the 1.5-2× memory overhead, so the cost-benefit of protection is clear. Low-cost access: The whole kit costs about $20-40 and runs fully offline, so any lab or classroom can build one.
How it makes things easier and safer: It turns an invisible, expensive-to-test problem into something anyone can see in seconds. Better understanding of fault tolerance leads to more reliable satellites, which means more dependable communications, weather tracking and GPS. Note that the bit-flips are simulated, not actual radiation exposure.
Team
From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.






