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

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
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
👀 See Also

OpenClaw Creates 90% of Video Using AI Models for $69.5
A Reddit user created a video where OpenClaw handled 90% of the process, including topic selection, character generation, storyboarding, and video segment generation using GPT-5, VEO3.1 fast, and Nano Banana Pro models, with a total AI cost of $69.5.

Cheap OpenClaw Setup: $5/mo Hetzner VPS + DeepSeek API for Under $1
A Reddit user shares a practical OpenClaw setup using a $5/mo Hetzner VPS, DeepSeek API ($5 credit), Telegram bot, Grafana, and Netdata — all costing about $1 so far.

Building a Personal AI Agent with Claude Code: Lessons from 6 Months of Wiz
A developer shares their experience building Wiz, a personal AI agent on Claude Code that handles morning reports, evening summaries, and inbox triage. The post details 9 mistakes made during development, including starting with overly ambitious goals and letting Claude generate core instructions without review.

Accidental Dashboard Built with Claude Created a Product Commitment Nightmare
A developer built a dashboard with Claude in 2 days, forgot to feature-flag it, 40 customers found it and love it. Now customers want customization, requiring a 3-week refactor to make the hardcoded code extensible.