Developer Uses Claude Code to Build USB Dongle That Auto-Plays Chrome Dino Game

✍️ OpenClawRadar📅 Published: March 10, 2026🔗 Source
Developer Uses Claude Code to Build USB Dongle That Auto-Plays Chrome Dino Game
Ad

Hardware and Firmware Details

A developer created a USB dongle that automatically plays Chrome's offline Dino game without requiring host-side software or browser extensions. The device uses an ATtiny85 (Digispark) microcontroller with 8KB flash and 512 bytes of RAM, costing approximately $2.

How It Works

The dongle plugs into any PC and appears as a standard USB HID keyboard. It uses two LDR (light-dependent resistor) sensors mounted on the monitor to detect obstacles in the game:

  • Lower sensor detects cacti
  • Upper sensor detects birds

When obstacles are detected, the device sends appropriate keyboard commands (jump or duck) to control the game character.

Claude Code's Role in Development

The developer used Claude Code as the primary development partner for the firmware, which is written in bare-metal C using avr-gcc (not Arduino). Specific contributions included:

  • Writing the V-USB HID keyboard stack integration and report descriptor
  • Designing dual-sensor obstacle classification logic through iterative development
  • Creating pulse-width envelope measurement for speed-adaptive timing
  • Handling the fork-shaped cactus sprite issue (multiple sub-pulses merged via gap threshold)
  • Writing the full README, PLAN.md, and Makefile
Ad

Technical Implementation

The adaptive timing system addresses the game's acceleration by measuring how long each obstacle takes to pass the sensor, using a rolling minimum filter, and scaling the jump delay accordingly. Codex performed a code review that caught a bug in the envelope tracking logic where sensor polarity was inverted in four places.

The total firmware size is 2699 bytes. Hardware assembly, sensor mounting, LM393 potentiometer calibration, and physical testing were done manually by the developer.

Key Differentiators

  • USB HID keyboard implementation requires no host-side Python or browser extensions
  • No servo or solenoid pressing the spacebar
  • Dual vertically-stacked sensors for obstacle differentiation
  • Adaptive timing that remains accurate as game speed increases

📖 Read the full source: r/ClaudeAI

Ad

👀 See Also

OpenClaw User Report: Technical Setup Works, But Autonomy Requires Real Problems
Use Cases

OpenClaw User Report: Technical Setup Works, But Autonomy Requires Real Problems

A developer built a live OpenClaw agent on a VPS with Stripe and Vercel integration in 5 days, but found the real challenge isn't setup—it's having clear problems for the agent to solve autonomously. The setup-token OAuth method for flat subscriptions is now hard-blocked by Anthropic, forcing pay-per-token usage.

OpenClawRadar
Practical Limits of Multi-GPU AI Workstations: Lessons from a 9× RTX 3090 Build
Use Cases

Practical Limits of Multi-GPU AI Workstations: Lessons from a 9× RTX 3090 Build

A developer shares experience running 9 RTX 3090 GPUs for AI work, finding diminishing returns beyond 6 GPUs and recommending Proxmox for LLM experimentation. The RTX 3090 remains compelling at $750 for 24GB VRAM.

OpenClawRadar
AI Agents Running a Real E-commerce Business: Practical Insights from an Implementation
Use Cases

AI Agents Running a Real E-commerce Business: Practical Insights from an Implementation

An AI agent system operates an actual e-commerce store, handling design, coding, marketing, and customer operations without human task execution. The implementation reveals that judgment calls like design rejection thresholds and incident prioritization present harder challenges than technical agent coordination.

OpenClawRadar
How I Used OpenClaw to Build a Secret Party Calendar Invite from Messy Notes
Use Cases

How I Used OpenClaw to Build a Secret Party Calendar Invite from Messy Notes

A Reddit user shows how OpenClaw parsed unreliable notes, email, and group chat to generate a clean .ics invite for a surprise party, automatically ignoring a decoy calendar entry and keeping the guest of honor off the invite.

OpenClawRadar