Is there a way to use the io pins on ESP32 DevkitC 32e to get input from a USB mouse? I want to use the optic sensors on a cheap mouse to track movement on a flat surface. The buttons are not used. I would prefer stripping the cable and soldering the individual wires than using something like a USB to i2C module.
USB mouse uses, surprisingly, USB protocol to connect with PC. So to use it directly you need a USB-host shield for your ESP32 board.
Is there another method using a USB to ps/2 converter?
Are you know a way to use a PS/2 interface on your ESP32 ?
I actually don't. It's my first time using an ESP board.
You need an ESP32 with USB stack like ESP32 -S2 or ESP32--S3.
Are these boards supports a USB-HOST mode?
Yes!
For example the ESP32-S3-Devkit-c1 has 2 USB connector already on board.
One is dedicated to programming and serial debug and the second one for USB stuff, both as host and as pheripheral.
I just figured out that the mouse I bought has a sensor that supports ps/2. I also found this video and library by Bytes N Bits. Do you think it would suit my needs? I'm just making a basic motion tracker.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.