Tilt Bounce
Play a Mario Tennis–style singles match: hold the Nano face-up like a racket, flip to swing, and rally against a CPU on a court. Time your swings for Nice / Great / Perfect — the onboard RGB LED flashes with every point.
Hold the board face-up like a tennis racket head, with the USB cable toward you as the handle. The sketch streams full IMU samples over BLE (~25 Hz). The browser watches gyro X for an upward flick to swing, and accelerometer X for which way you tip the face — that aims the return left or right. Your on-court racket auto-tracks the ball so the skills are timing and aim.
You play a singles rally against a CPU on a green tennis court. Flip when the ball reaches your baseline to return it; tip left/right during the flip to send the ball that way. Centered, powerful swings earn Nice / Great / Perfect callouts and faster shots. Miss past your baseline and the CPU scores; send it past theirs and you score. First to five wins (turn Match off for endless practice).
Returns, misses, start, and match-over each write a one-byte feedback code to the board. The sketch pulses the RGB + built-in LED — green for a good hit/point, red when the CPU scores, red/blue strobe for match over. Flash this sketch, connect as Nano33-Bounce, press Play, and swing.
Goals
- Stream gyroscope samples over BLE to detect racket swings
- Time swings for graded returns in a two-player court rally
- Write short LED feedback events from the match back to the board
Materials
- Arduino Nano 33 BLE Sense (onboard LSM9DS1 + RGB LED)
- USB cable
- Arduino IDE with ArduinoBLE and Arduino_LSM9DS1