My Robot's AI Isn't Scripted to Act High — A Real Smoke Sensor Makes It Unravel Live
Blowing smoke at a suitcase robot scrambles its LLM in real time for unique responses.
Sparky, a quirky offline suitcase robot built by Reddit user /u/CreativelyBankrupt, now features a non-scripted 'stoned' mode driven by an MQ-2 gas sensor. Every 0.5 seconds, the sensor reads smoke levels against an adaptive clean-air baseline, converting hits into a 0–10 phase that naturally decays over minutes. Crucially, this phase rewires the LLM's sampling parameters per token: temperature rises from 1.0 to 1.6, top_p from 0.95 to 0.99, and top_k from 64 to 120. As the phase climbs, the model selects lower-probability, more associative tokens, making the robot's cognition genuinely noisier and its replies freshly generated each time. A subtle persona nudge and physical cues—eye droop, drawl, and a bloodshot display—complete the illusion without explicit announcements. At phase 10, the sensor display escalates to a smoke-and-plasma freakout, keeping Sparky 'blitzed' for seven minutes.
The creator acknowledges the MQ-2 is a generic smoke and VOC sensor, meaning cigarettes or incense could also trigger it. They've posed a community question: what sensor or combination could distinguish cannabis smoke from other smoke? This project is a playful Easter egg in an already goofy suitcase robot, but it highlights a novel approach to real-time, sensor-driven LLM behavior modulation. For hardware enthusiasts, the challenge of specificity remains open. Sparky's demo underscores how low-cost sensors and creative parameter tweaking can yield emergent, entertaining AI interactions—blending physical input with generative text in a way that feels alive and unpredictable.
- Uses MQ-2 gas sensor to detect smoke and map it to a 0–10 phase that alters LLM sampling parameters in real time.
- Temperature shifts from 1.0 to 1.6, top_p from 0.95 to 0.99, and top_k from 64 to 120 as phase increases, causing noisier, associative outputs.
- Robot displays unscripted 'stoned' behavior including eye droop, drawl, and plasma screen freakout at max phase, with each reply freshly generated.
Why It Matters
Pioneers real-time LLM behavior modulation through physical sensors, blending hardware and AI in a creative, interactive Easter egg.