-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReadMe.txt
32 lines (22 loc) · 1.16 KB
/
ReadMe.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Trombone Champ Controler V04.0
For Pro Micro + Python
Controls the mouse based on the results from a VL53L1X sensor mounted on a trombone.
Hardware:
- Arduino Pro Micro
- VL53L1X TOF Sensor
- MPXV7007 Pressure Sensor
- Momentary Push Button
- Toggle Switch
The mouse movement is calibrated for a 1440X2560 monitor. You will need to modify the code to fit other screen sizes.
See the "Serial.println((distance*4));" at the end, Modify that multiplier (default is 4) Try 2 for 1080 Height screens?
WARNING: When you use the Mouse.move() command (in python in this case), the Arduino/python takes over your
mouse! Make sure you have control before you use the mouse commands. Flipping the switch on pin 5 to ground should stop the flow of data to python and give you mouse control back
this can be used to select levels or quit the python code.
If all else fails, unplugging the usb cable should return mouse control to you as well.
Created 2022 - 10 - 10
Modified on 2022 - 10 - 24
By Gearomatic
Used code from:
Reading distance from the laser based VL53L1X
By: Nathan Seidle
SparkFun Electronics