Optical Flow Sensor - Arduino/ESP32 compatible

Hello everyone, I'm currently working on a personal project with the idea of ​​having a selection wheel to smoothly adjust certain settings.

I found a product that does exactly that: the BenQ Halo Brightness Adjustment Module Amazon Link.


I got one and took it apart to understand the mechanism (see photo). The sensor responsible for tracking the wheel is this small black sensor, which after a little reverse engineering appears to be the PAT9126JA-TKIT from Pixart. The moving side of the bearing is passing on it, and this way it can detect a pixel matrix of movement to calculate the rotation. The problem with this type of sensor is that it's not available (or not easily available for individuals) to order and integrate directly onto a PCB with an ESP32, made by LCSC, for example (or I don't know how to do it :slight_smile: )
Do any of you know of similar sensors that are readily available and Arduino/ESP32 compatible that allow this function?

I like the idea of ​​having no contact and having the ball bearing visible (without putting on a plastic cover or a black/white sticker to use other sensors), which is why I'm looking for an X-Y tracker rather than a classic incremental encoder or a magnetic sensor.

Most YouTube videos use sensors from old mouse, but as you can see, my goal here is to have, let's say, a clean, "factory-ready" PCB.

Perhaps there is another method to acquire this information without modifying the ball bearing, but I don't see what.

The idea is really to have a sensor doing the capture of this information:

Order your PCBs from JLCPCB, who claim to be able to add that part.

Or, look for more readily available optical flow sensors.

Thanks for that, I have never order at them, when they have a stock at 0 and you make an order with the component, they usually do a re-stock?

Yeah that's one of the two reasons i posted on the forum. You got any idea about one that can fit my need?

If you study the JLCPCB web page closely, you will see this note:

The component is currently unavailable for purchase but can still be used in assembly.

Contact JLCPCB customer service if you are still in doubt.