Bez popisu

Ivan Podogov 6f45b0e34e Merge pull request #3 from rorosaurus/main před 3 roky
schematic 4f4da2fbb3 Nits před 3 roky
tracking 971a8f63d5 Use threading in Bluetooth mode to improve responsiveness před 3 roky
views 08b94b14d0 fix button direction to match flipper orientation před 3 roky
LICENSE 3930cc1d2f Initial commit před 3 roky
README.md 4966e1f8a6 Update README.md před 3 roky
air_mouse.c 1954e3bd3d fbt format everything před 3 roky
air_mouse.h 0553ae1a32 Initial commit před 3 roky
application.fam 0553ae1a32 Initial commit před 3 roky

README.md

Flipper Air Mouse

Brief

"You can turn anything into an air mouse if you're brave enough"

— Piper, a.k.a. Pez

Naturally, the quote above applies to Flipper as well.

What?

The app allows you to turn your Flipper into a USB or Bluetooth air mouse (you do need an extra module, see the Hardware section below)...

Using it is really simple:

  • Connect the Flipper via a USB cable and pick USB, or pick Bluetooth and pair it with your PC;
  • Hold the Flipper in your hand with the buttons pointing towards the screen;
  • Wave your Flipper like you don't care to move the cursor;
  • Up button for Left mouse click;
  • Down button for Right mouse click;
  • Center button for Middle mouse click;
  • Use calibration menu option if you notice significant drift (place your Flipper onto a level surface, make sure it doesn't move, run this option, wait 2 seconds, done).

See early prototype in action.

Hardware

The custom module is using Bosch BMI160 accelerometer/gyroscope chip connected via I2C.

Take a look into the schematic folder for Gerber, BOM and CPL files, so you can order directly from JLCPCB.

Original idea:

What I thought it would look like

Expectation:

What EDA though it would look like

Reality:

What it looks like

Software

The code is based on the original Bosch driver and an orientation tracking implementation from the Cardboard project

If you're familiar with Flipper applications, start in the firmware checkout folder and do the following:

cd applications/plugins
git clone https://github.com/ginkage/FlippAirMouse
cd ../..
./fbt fap_air_mouse

If you're not familiar with those, just grab a fap file from Releases.