Freeflow Mouse Core Board
This project utlizes a PMW3360 to act as a mouse core board. The board has two methods of connection to allow for various setups. I've utilized the header approach for use as a mouse in my levitating custom mouse project.
With headers available the mouse is able to be connected to various devices and tested with a 3V3 power source:
For example here is the mouse connected to my freeflow mouse board:
I've attached my code for the mouse above. Feel free to adjust it and grab the parts you need if you utilize this mouse core board.
To control the board you'll need the PMW3360 library for Arduino.
First you should include the library and prepare the sensor and select a pin for SS:
#include <PMW3360.h> #include "USB.h" #include "USBHIDMouse.h" PMW3360 sensor; USBHIDMouse Mouse; #define SS A0
In the setup logic you should initialize the sensor:
void setup() { // Setup Mouse Sensor sensor.begin(SS); // Setup USB HID Mouse Mouse.begin(); USB.begin(); }
In the loop logic then control the mouse by using the polled sensor and applying the motion to the mouse:
void loop() // Poll the sensor for movement data PMW3360_DATA data = sensor.readBurst(); // Handle mouse movement if (data.isOnSurface && data.isMotion) { Mouse.move(-data.dx * 1, -data.dy * 1, 0); } delay(10); }
Freeflow Mouse Core Board
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.
- Comments(0)
- Likes(0)
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by Timothy Lovett
- Hive Helper - Home Assistant epaper display In addition to the PCB and its associated parts you'll need to source the following:Xiao ESP32C3 (ht...
- Level Up Board A Xiao form factor board for optional level shifting with the use a jumper. I have three uses for th...
- Mouse Touch Board This board acts as a touch board with a MPR121 for use along with my mouse core board this board has...
- Freeflow Mouse Core Board This project utlizes a PMW3360 to act as a mouse core board. The board has two methods of connection...
-
-
-
-
-
-
3D printed Enclosure Backplate for Riden RD60xx power supplies
154 1 1 -
-