Hello,
maybe this is a silly question - but let's give a try.
For my next PicAxe projects I'd like to use an USB-mouse as an input device.
As an example:
The mouse wheel - shall be used to select options ... or like a digital potentiometer( variable resistor)..
The mouse buttons - shall be used as switches-or push buttons ....
The PicAxe shall detect/count the amount of pulses (of the mousewheel....direction is in a first step not important
and the push button signals shall be input on a usual IN-pin of the PicAxe...)
Therefor I searched the web and this forum, but I couldn't find a hint or an example how to do this.
I found an USB-module on the PicAxe-Shop (~ 17 €) - and I'm not sure if this is the only solution.
Maybe I have to add - that I tried to read and understand the USB-protocol - but to be honest - this is
very complex and on a first look - I got the impression, it will take me day's / weeks to get into these details ...
Anybody ideas or hints for me?
Thanks in advance
albatros
P.S:
My fallback option is - to take all HW out of the mouse - and only leaving the sensors (IR-diode + buttons...)...
and rebuild the input-sequences ....the disadvantage is - that I have to adapt this for each different mouse-type
in future - w.r.t. different Mouse-HW inside.
maybe this is a silly question - but let's give a try.
For my next PicAxe projects I'd like to use an USB-mouse as an input device.
As an example:
The mouse wheel - shall be used to select options ... or like a digital potentiometer( variable resistor)..
The mouse buttons - shall be used as switches-or push buttons ....
The PicAxe shall detect/count the amount of pulses (of the mousewheel....direction is in a first step not important
and the push button signals shall be input on a usual IN-pin of the PicAxe...)
Therefor I searched the web and this forum, but I couldn't find a hint or an example how to do this.
I found an USB-module on the PicAxe-Shop (~ 17 €) - and I'm not sure if this is the only solution.
Maybe I have to add - that I tried to read and understand the USB-protocol - but to be honest - this is
very complex and on a first look - I got the impression, it will take me day's / weeks to get into these details ...
Anybody ideas or hints for me?
Thanks in advance
albatros
P.S:
My fallback option is - to take all HW out of the mouse - and only leaving the sensors (IR-diode + buttons...)...
and rebuild the input-sequences ....the disadvantage is - that I have to adapt this for each different mouse-type
in future - w.r.t. different Mouse-HW inside.