user-img

Tim Lovett

  • 2 Projects
  • 3 Followers
  • Sep 17,2024
+ Follow

Mouse Core Board for PMW3360

A core board for use with a PMW3360 to connect 3V3 for use as a mouse.

Mouse Core Board for PMW3360
 
  • thumbnail-img
  • thumbnail-img
 

Story

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);
}

Mouse Core Board for PMW3360

A core board for use with a PMW3360 to connect 3V3 for use as a mouse.

150
 
1
0
5

Share your project on social media to expand its influence! Get more people to support it.

  • Comments( 0 )
  • Like( 1 )
/1000
Upload a photo:
You can only upload 1 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP

You May Also Like

View All
Add to cart
Board Type : GerberFile :
Layer : Dimensions :
PCB Qty :
Different PCB Design
PCB Thickness : PCB Color :
Surface Finish : Castellated Hole :
Copper Weight : 1 oz Production Time :
Total: US $
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.

PCB Assembly

PCBA Qty: BomFile:
NO. OF UNIQUE PARTS: NO. of Components:
Assembly Cost: US $
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
3dPrintingFile : Size :
Unit : Volumn :
3D Printing Qty : Material :
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
Acrylic Type : AcrylicFile :
Dimensions: Engrave:
Acrylic Qty :
Acrylic Thickness:
Acrylic Color:
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
CNC Milling File : Size:
Unit: Volumn:
CNC Milling Qty : Material:
Type of Aluminum: Surface Finish:
Tolerance:
Surface Roughness:
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
Item Price Qty Subtotal Delete
Total: US $0.00
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.