Using the FRDM-KL25 Board as a USB Mouse in KDS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using the FRDM-KL25 Board as a USB Mouse in KDS

Using the FRDM-KL25 Board as a USB Mouse in KDS

USB Mouse in KDS

 

Description:

 

A project made in KDS using the accelerometer on a FRDM-KL25Z128M4 board to control a USB mouse input.

The LED will flash red while not connected as a USB mouse, and flash green when it is.

The reset button will left click.

 

Sensitivity of the mouse can be changed by altering the HIDM1_Move command in main.c

Reset button can be changed from left to right click by altering comments in main.c

 

Sections of code taken from:

- http://mcuoneclipse.com/2012/09/21/tutorial-accelerating-the-kl25z-freedom-board/

- http://mcuoneclipse.com/2013/08/01/using-the-frdm-kl25z-as-a-usb-mouse-device/

Labels (1)
Attachments
Comments

Is it possible to adapt the board to use bluetooth, i.e. without using the debugging cable attached?

It may be possible with a Bluetooth to UART module. I will admit I am not experienced in this field though.

%3CLINGO-SUB%20id%3D%22lingo-sub-1111932%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EUsing%20the%20FRDM-KL25%20Board%20as%20a%20USB%20Mouse%20in%20KDS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1111932%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EUSB%20Mouse%20in%20KDS%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDescription%3A%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3EA%20project%20made%20in%20KDS%20using%20the%20accelerometer%20on%20a%20FRDM-KL25Z128M4%20board%20to%20control%20a%20USB%20mouse%20input.%3C%2FP%3E%3CP%3EThe%20LED%20will%20flash%20red%20while%20not%20connected%20as%20a%20USB%20mouse%2C%20and%20flash%20green%20when%20it%20is.%3C%2FP%3E%3CP%3EThe%20reset%20button%20will%20left%20click.%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESensitivity%20of%20the%20mouse%20can%20be%20changed%20by%20altering%20the%20HIDM1_Move%20command%20in%20main.c%3C%2FP%3E%3CP%3EReset%20button%20can%20be%20changed%20from%20left%20to%20right%20click%20by%20altering%20comments%20in%20main.c%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESections%20of%20code%20taken%20from%3A%3C%2FP%3E%3CP%3E%3CSPAN%3E-%20%3C%2FSPAN%3E%3CA%20class%3D%22jive-link-external-small%22%20href%3D%22http%3A%2F%2Fmcuoneclipse.com%2F2012%2F09%2F21%2Ftutorial-accelerating-the-kl25z-freedom-board%2F%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttp%3A%2F%2Fmcuoneclipse.com%2F2012%2F09%2F21%2Ftutorial-accelerating-the-kl25z-freedom-board%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E-%20%3C%2FSPAN%3E%3CA%20class%3D%22jive-link-external-small%22%20href%3D%22http%3A%2F%2Fmcuoneclipse.com%2F2013%2F08%2F01%2Fusing-the-frdm-kl25z-as-a-usb-mouse-device%2F%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttp%3A%2F%2Fmcuoneclipse.com%2F2013%2F08%2F01%2Fusing-the-frdm-kl25z-as-a-usb-mouse-device%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1111932%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EUSB%20Mouse%20in%20KDS%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDescription%3A%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3EA%20project%20made%20in%20KDS%20using%20the%20accelerometer%20on%20a%20FRDM-KL25Z128M4%20board%20to%20control%20a%20USB%20mouse%20input.%3C%2FP%3E%3CP%3EThe%20LED%20will%20flash%20red%20while%20not%20connected%20as%20a%20USB%20mouse%2C%20and%20flash%20green%20when%20it%20is.%3C%2FP%3E%3CP%3EThe%20reset%20button%20will%20left%20click.%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESensitivity%20of%20the%20mouse%20can%20be%20changed%20by%20altering%20the%20HIDM1_Move%20command%20in%20main.c%3C%2FP%3E%3CP%3EReset%20button%20can%20be%20changed%20from%20left%20to%20right%20click%20by%20altering%20comments%20in%20main.c%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESections%20of%20code%20taken%20from%3A%3C%2FP%3E%3CP%3E%3CSPAN%3E-%20%3C%2FSPAN%3E%3CA%20class%3D%22jive-link-external-small%22%20href%3D%22http%3A%2F%2Fmcuoneclipse.com%2F2012%2F09%2F21%2Ftutorial-accelerating-the-kl25z-freedom-board%2F%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttp%3A%2F%2Fmcuoneclipse.com%2F2012%2F09%2F21%2Ftutorial-accelerating-the-kl25z-freedom-board%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E-%20%3C%2FSPAN%3E%3CA%20class%3D%22jive-link-external-small%22%20href%3D%22http%3A%2F%2Fmcuoneclipse.com%2F2013%2F08%2F01%2Fusing-the-frdm-kl25z-as-a-usb-mouse-device%2F%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttp%3A%2F%2Fmcuoneclipse.com%2F2013%2F08%2F01%2Fusing-the-frdm-kl25z-as-a-usb-mouse-device%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1111932%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EGeneral%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1111934%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Using%20the%20FRDM-KL25%20Board%20as%20a%20USB%20Mouse%20in%20KDS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1111934%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIt%20may%20be%20possible%20with%20a%20Bluetooth%20to%20UART%20module.%20I%20will%20admit%20I%20am%20not%20experienced%20in%20this%20field%20though.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1111933%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Using%20the%20FRDM-KL25%20Board%20as%20a%20USB%20Mouse%20in%20KDS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1111933%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIs%20it%20possible%20to%20adapt%20the%20board%20to%20use%20bluetooth%2C%20i.e.%20without%20using%20the%20debugging%20cable%20attached%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎06-30-2014 07:27 AM
Updated by: