NINTENDO The Legend of Dark Witch PS5 Release Brings 2D Action to PlayStation PHONES Xiaomi 18 Fold Leaked: XRING O3 Chip and Red Design Revealed PHONES Snapdragon 8 Elite Gen 6 Hits 5GHz, Qualcomm Claims World’s Fastest Mobile CPU PLAYSTATION 5 Transport Fever 3 Launches September 29 with $49.99 PC Price PLAYSTATION 5 Frictional Games ONTOS Gameplay Reveal Trailer Confirms 2027 Release XBOX SERIES X The Witcher 3 Update 4.040.200 Grants Free DLCs on PS5, Xbox Series X|S, and PC STEAM Gravhounds co-op action builder launches November 2 on Xbox Series and PC PLAYSTATION 5 Behaviour Interactive Announces Exterminauts Co-op Shooter for 2027 STEAM Paradox Interactive Announces Afterworld, a Post-Apocalyptic Survival Grand Strategy Game PLAYSTATION 5 Road Kings Delayed to March 11, 2027, for PS5, Xbox, PC HANDHELD GAMING iQOO Compact Gaming Tablet Leaked With 9,000 mAh Battery and Active Cooling CONSOLES Koei Tecmo TGS 2026 Lineup Reveals Five New Games for Switch 2 and PS5 ANDROID Google Pixel 11 Genshin Impact Bug: Google Confirms Fix for Purple Textures GAMES Crimson Desert Enhanced Update 2.00 Adds Arabic and New Skills

DIY Suitcase Robot Sparky Adjusts LLM Settings Based on Smoke

Daniel Cross 2 min read

A hobbyist built Sparky, a suitcase robot that uses an MQ- 2 gas sensor to adjust LLM sampling parameters like temperature and top_p in real time based on smoke.

A hobbyist has modified a suitcase robot to alter its speech patterns in real time based on ambient smoke levels. This project demonstrates a direct hardware-to-software link where physical sensor data controls large language model sampling parameters. The modification allows the robot, named Sparky, to simulate incoherence when exposed to specific gases. This approach offers a practical example of how environmental inputs can dynamically reshape AI output without manual intervention.

MQ-2 sensor data modifies temperature and top_p values instantly

The robot, built by Reddit user u/CreativelyBankrupt, integrates an MQ-2 gas sensor directly into its control system. The sensor detects volatile organic compounds and feeds this data into the LLM sampler. As the concentration of smoke increases, the system adjusts three key generation parameters: temperature, top_p, and top_k. These adjustments occur live, meaning the robot's verbal responses change instantly as the environment shifts.

Under clear conditions, the robot operates with a temperature of 1.0, a top_p value of 0.95, and a top_k of 64. When smoke is detected, the temperature rises to 1.6, top_p increases to 0.99, and top_k expands to 120. The system tracks a smoke phase value between 0 and 10, holding the maximum effect for seven minutes after detection. Every 500 milliseconds, the sensor reads the current gas levels to update these parameters continuously.

The physical modifications include drooping eyes and a voice drawl that activate at the highest smoke phase. A plasma display provides visual feedback to match the altered speech patterns. The MQ-2 sensor cannot distinguish between different sources of smoke, such as incense or cannabis. Both sources trigger the same response curve, treating all detected VOCs as equivalent triggers for the incoherence effect.

The creator stated that the robot's speech genuinely becomes loopier and avoids repetition due to the live parameter shifts. This setup proves that real-time sensor integration can create dynamic, non-deterministic AI behaviors in physical devices. The project highlights a specific use case for hobbyist robotics where environmental interaction drives software logic. The system remains a functional demo rather than a commercial product with defined pricing or availability.

Source: NotebookCheck