Is there any way to simulate a pressure sensitive device by using a Leonardo

Hey friends! Recently I've been trying to make a graphic tablet like one of those sold online for drawing purposes. And the solution I made was by using a 4-wire resistive touch panel, and a pen with FSR402 to collect pressure data and then sending back to Leonardo by an nRF24 chip.

[u]And there is a question, how can I simulate a pressure-sensitive device like a graphing tablet by using Leonardo as an HID? Is there any pre-made library for this purpose?[/u]

Thanks.

Crystal_EDM:
And the solution I made

Made, or imagined? Have you researched and/or written any software yet, for the devices you mention?

What type of signal does the touch panel output ?
Presumably it has at least 3 components x position, y position and pressure

There is a common USB device for a mouse, keyboard and joystick.

A "Graphics tablet" is something else. For example the Wacom Intuos: https://www.wacom.com/en-us/products/pen-tablets/wacom-intuos. I think that the graphics tablet uses its own specific protocol that works together with the driver and software.

Any device can be made: https://github.com/NicoHood/HID. There is even an "Absolute Mouse" emulation. As far as I know, there is no pre-made library for a graphics tablet. A graphics tablet can map the tablet coordinates to the screen in absolute mode and the pen is pressure sensitive. If someone has made an emulation for an Arduino, I would be interested as well !

aarg: Made, or imagined? Have you researched and/or written any software yet, for the devices you mention?

:)By now I had written a simple program to sense x and y-coordinate with pressure then send to Serial Monitor, but I have no way to simulate a device like one of those Wacom board

UKHeliBob: What type of signal does the touch panel output ? Presumably it has at least 3 components x position, y position and pressure

The panel is the kind like this https://www.ebay.com/itm/7-1-DIY-Digitizer-Resistive-Touch-Screen-Panel-165mm-105mm-1-59mm-4-Pins/121540218826?hash=item1c4c5c8fca:g:xFcAAOSwzrxUsC0w

and I'm planning to make a pen with pressure sensing and then send it back to Leonardo :)

Koepel: There is a common USB device for a mouse, keyboard and joystick.

A "Graphics tablet" is something else. For example the Wacom Intuos: https://www.wacom.com/en-us/products/pen-tablets/wacom-intuos. I think that the graphics tablet uses its own specific protocol that works together with the driver and software.

Any device can be made: https://github.com/NicoHood/HID. There is even an "Absolute Mouse" emulation. As far as I know, there is no pre-made library for a graphics tablet. A graphics tablet can map the tablet coordinates to the screen in absolute mode and the pen is pressure sensitive. If someone has made an emulation for an Arduino, I would be interested as well !

Thanks so much for replying! The lib that you mentioned is really interesting and we'll give it a try:)