hitica9601
Posts: 1
Joined: Wed Jun 07, 2023 9:26 am

input simulation

Wed Jun 07, 2023 9:30 am

Dear community,

I am currently looking to create a program that can simulate mouse movements and keyboard inputs on my computer using a Raspberry Pi. I was wondering if anyone has any suggestions on which Raspberry Pi model would be best for this task, as I have heard that the Pico or Zero models may work well. Why these two?

Additionally, I am curious if it is possible to emulate the keyboard and mouse without physically inserting the Raspberry Pi between the keyboard and mouse. Can the Raspberry Pi be attached to the computer in some other way to achieve this desired outcome?

Thank you in advance for any insights or advice you can offer me.

cleverca22
Posts: 7761
Joined: Sat Aug 18, 2012 2:33 pm

Re: input simulation

Wed Jun 07, 2023 11:31 am

hitica9601 wrote:
Wed Jun 07, 2023 9:30 am
as I have heard that the Pico or Zero models may work well. Why these two?
to emulate any usb device, you need to have access to the usb controller, and it needs to be able to run in device mode

the pico can do both host/device, and exposes it directly on the micro-usb port
the zero's can do both host/device, and expose it directly on the micro-usb port
and the pi4/pi400 can do both host/device, and expose it directly on the usb-c port

but the model B pi1/pi2/pi3, are all behind the host end of a usb hub, which forces it to only work in host mode, even if the SoC is device capable
hitica9601 wrote:
Wed Jun 07, 2023 9:30 am
Additionally, I am curious if it is possible to emulate the keyboard and mouse without physically inserting the Raspberry Pi between the keyboard and mouse. Can the Raspberry Pi be attached to the computer in some other way to achieve this desired outcome?
you can just plug the pico/pi0/pi4/pi400 directly into the computer and ignore whatever other mouse/keyb you have


Return to “Beginners”