![]() |
I got it to work! USB mice
It has come full circle. Years ago I joined this forum as a student with the sole goal to learn how to get optical mice to work with the microcontroller we had at the time. Now, seven years later and back on board as a mentor, (and with the new roboRIO having USB ports) I can finally say I GOT IT!
So here's a video tutorial I made. I included links to the necessary files in the dooblydoo. https://www.youtube.com/watch?v=Aup6CQv_-j4 |
Re: I got it to work! USB mice
Very interesting. The idea to use a wireless mouse to control the robot, correct? Am I correct to assume this wouldn't be for competition use.
|
Re: I got it to work! USB mice
No. It's to put a hardwired optical mouse on the robot for position tracking.
|
Re: I got it to work! USB mice
I'm assuming the mouse would read the carpet then as move around. Then using the equation you stated you could tell how far away you are from your starting position?
|
Re: I got it to work! USB mice
Exactly.
|
Re: I got it to work! USB mice
So it reads in pixels then you'd divid it by your dpi. How accurate is it?
|
Re: I got it to work! USB mice
Quote:
Also, whats the issue with Code:
MouseInfo.getPointerInfo().getLocation().x |
Re: I got it to work! USB mice
This would be used to replace the gyro then? How close to the ground does the mouse have to be?
|
Re: I got it to work! USB mice
This is a pretty awesome achievement. Position this guy at the center of rotation, and the measurement is very precise. Do you know if it works on the HDPE surface of the scoring platform? I know mice tend to go crazy if used on glass, or sometimes even an overly-polished conference room table.
|
Re: I got it to work! USB mice
Quote:
Quote:
Quote:
Quote:
I do not know if it will work on the scoring platform. All it needs is imperfections on the surface at least 1/500th of an inch for it to work. Even if not, the main purpose of this was to drive precisely in auto, and we can just tell it to go around. |
Re: I got it to work! USB mice
hm. The only issue I see is sensor distance. I have a laser mouse with me ATM and I can only hover it ~1cm above the mousepad for it to pick up, any higher and the cursor doesn't move. How far above the carpet does your team plan to mount your mouse? My biggest fear would be chipping the mouse when going over the bump
|
Re: I got it to work! USB mice
Quote:
|
Re: I got it to work! USB mice
We are looking at options for tracking position ahead of next build season. Can you share how you physically mounted the mouse (pics), and any performance information you gained this season (how well it worked)?
Thanks! |
Re: I got it to work! USB mice
Quote:
I still do intend to update this thread with any information once we have it |
Re: I got it to work! USB mice
This would be useful in the coming season!
Correct me if I'm wrong, in order to use an optical mouse to track the robot's position it has to be centered around the rotation axis of the robot, otherwise it will sense rotation in place as a change in the robot's position. |
| All times are GMT -5. The time now is 19:22. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi