Skip to main content
4 votes
Accepted

Mouse.move: how do I move the mouse to the center of a screen?

There are two ways of working with HID mice - absolute and relative. The Arduino Mouse library only works in relative mode, but you want absolute. There's another library https://github.com/NicoHood/...
Majenko's user avatar
  • 105k
4 votes

Using ATTiny85 as a USB HID Mouse

Due to the lack of USB-Support of the ATtiny85 you will be forced to use something like V-USB as the tutorial does. This might have implications when you are targeting a commercial product. ...
Kwasmich's user avatar
  • 1,513
3 votes
Accepted

Interfacing pc mouse (serial port DB-9)

A serial mouse is designed to connect to a PC's true serial port - it's an actual RS-232 device using ±5V. As such it won't connect directly to the Arduino's RX/TX pins, you'll have to go through an ...
John Burger's user avatar
  • 1,875
2 votes

How do I move more than 128 pixels when using Arduino Leonardo's Mouse.move?

The USB HID protocol for mouse is the limitation on sending more then a byte sized value for the mouse movement in one event. You can't create a faster USB mouse. Repeat the call of the move() ...
Juraj's user avatar
  • 18k
2 votes

Can the Mouse library scroll horizontally?

As suggested in the comments, I edited the core libraries to achieve this. I'm using PlatformIO, so the library files I needed to edit were here: ~/.platformio/packages/framework-arduinoavr/...
Ian Mackinnon's user avatar
2 votes
Accepted

Arduino as a real device to computer

As per my understanding, the mouse has a microcontroller and a TTL serial converter which is programmed a certain way that enable computer's default mouse driver to understand the instructions coming ...
Majenko's user avatar
  • 105k
2 votes

Debugging RN 42 HID Mouse

The problem with getting no response from the mouse was that the bluetooth did not auto reconnect to the computer after powering down. I solved this by sending the command SM,6 for auto reconnect and ...
ponderosa's user avatar
1 vote

How to Fix mouse cursor lag on voice & movement based head mouse in wireless setting?

In general, you want to stream some data. and the mouse lag is one of the main obstacles in data streams; lag. so many classic causes such as buffer over-runs and timing problems come to mind. The ...
Tirdad Sadri Nejad's user avatar
1 vote

Making a Bluetooth Mouse with Arduino

With that specific board, yes you can. According to this review: Bluno also supports the HID (Human Interface Device) mode. When running in this mode, Bluno simulates an input peripheral (keyboard,...
Majenko's user avatar
  • 105k
1 vote

Using MouseX in processing to control LEDs. Error in code - LEDs remain off

lightsOn=byte(mouseX); A byte can be any number from -128 to 127 (Java has no concept of "unsigned" values). The Arduino will reinterpret that as a value from 0 to 255. if (data>300) 255, the ...
Majenko's user avatar
  • 105k
1 vote
Accepted

Current mouse pointer position with Digispark attiny85

There is no way for a mouse of any kind (especially not one as minimal as DigiMouse.h) to know the current cursor position - USB just doesn't provide that kind of facility. Instead you need to ...
Majenko's user avatar
  • 105k
1 vote

Using ATiny102 as HID device(emulating mouse)

I have build a HID midi keyboard with the hiduino lib which is base on LUFA. http://code.google.com/p/hiduino/w/list I know LUFA is also capable to build a HID mouse device. But you need to switch to ...
coding Bott's user avatar
1 vote

Using ps2 mouse (PAW3402 / PAW3412) as a distance sensor for arduino

Assuming under normal conditions a relative pointing device such as a optical mouse always reports relative position changes with out regard to speed. If true, then consider that the speed of the ...
st2000's user avatar
  • 7,340
1 vote

what units do Mouse.move() use?

They're raw HID counts and as such don't have a unit. It is up to the OS to translate them from logical amounts to physical values.
Ignacio Vazquez-Abrams's user avatar
1 vote

Arduino Mousecontroller library doesn't work

USBHost Compatible with Arduino Due only source
Ignacio Vazquez-Abrams's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible