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 $
Elecrow community is a shared platform and we are not responsible for any design issues.

PCB Assembly

PCBA Qty: BomFile:
NO. OF UNIQUE PARTS: NO. of Components:
Assembly Cost: US $
Elecrow community is a shared platform and we are not responsible for any design issues.
Add to cart
3dPrintingFile : Size :
Unit : Volumn :
3D Printing Qty : Material :
Total: US $12.99
Elecrow community is a shared platform and we are not responsible for any design issues.
Add to cart
Acrylic Type : AcrylicFile :
Dimensions: Engrave:
Acrylic Qty :
Acrylic Thickness:
Acrylic Color:
Total: US $12.99
Elecrow community is a shared platform and we are not responsible for any design issues.
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
Elecrow community is a shared platform and we are not responsible for any design issues.
closed
user-img

Tim Lovett

Published: Sep 17,2024

Mouse Core Board for PMW3360

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

ccc ccc
Copyright Info

Attribution-NonCommercial-ShareAlike (CC BY-NC-SA)

Read More⇒
  96
  1
  0
cover-img
 
  • 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);
}
user-img

Tim Lovett

+ Follow

Topic

View All
mouse PMW3360 sensor
  • 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