I made this https://www.instructables.com/Space-Mouse-With-Arduino-Micro-Fully-Printable/ using the Arduino Micro Leonardo. The programming of the 3D mouse simulates the clicks and shortcuts from the Fusion 360 program. The thing is, I use other programs for 3D modeling and printing, such as Meshmixer, Solidworks, Chitubox, Cura, PrusaSlicer, and Lychee. And I would like to create a program that changes the configs of the arduino for that specific program, without the need to go into the Arduino IDE. I might add a button to the 3D mouse later to that but for now, I need help on how to do this and create the graphic interface. Tutorials, videos, and the like are very welcome.
The Arduino Micro has a USB HID Serial port, even if you don't use it. I think it can be called "Serial" and "SerialUSB".
You could make a program or a script that sends serial commands to the Arduino board.
Some feedback from the mouse would be nice when changing the mode. Can you add a buzzer or speaker ?
It would be fun make the settings in the Arduino board, but I think that you can do that on the computer as well.
You could have different sets of data for the controls, and select one of those sets with a serial command.
You could send a command that defines the buttons and the behavior for everything. Then you can do anything with a single sketch.
The sketch has to be turned upside down. Do you think you can do that or do you want too much ?
By the way, there is a lot that can be done with a single button. Long press, short press, double press, in combination with other buttons, and so on. I made a sketch once to see how far I could stretch it, but that went too far : Too_Much_For_One_Button.ino
Koepel:
The SpaceMouse code at Github seems alright.
The Arduino Micro has a USB HID Serial port, even if you don't use it. I think it can be called "Serial" and "SerialUSB".
You could make a program or a script that sends serial commands to the Arduino board.
Some feedback from the mouse would be nice when changing the mode. Can you add a buzzer or speaker ?
It would be fun make the settings in the Arduino board, but I think that you can do that on the computer as well.
You could have different sets of data for the controls, and select one of those sets with a serial command.
You could send a command that defines the buttons and the behavior for everything. Then you can do anything with a single sketch.
The sketch has to be turned upside down. Do you think you can do that or do you want too much ?
By the way, there is a lot that can be done with a single button. Long press, short press, double press, in combination with other buttons, and so on. I made a sketch once to see how far I could stretch it, but that went too far : Too_Much_For_One_Button.ino
I think a LED would be more pleasant than a buzzer or speaker.
What do you mean by turned upside down? Do you have examples?
I'll try adding the press variants on the coding! Thanks a lot for the contributions.
DrDiettrich:
Where do you want the GUI to reside, on the Leonardo or a mobile or PC?
For now, the GUI is better suited to be hosted on a PC. There is a more elaborate version of the 3D mouse with a screen and so on, but I want to focus solely on the 3D mouse for now.
I have not the experience, but the goal is to learn how to use it and create the interface. I'll follow the instructions given and try my best here, and i'll send the results.