|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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.
|
|
#3
|
|||
|
|||
|
Re: I got it to work! USB mice
No. It's to put a hardwired optical mouse on the robot for position tracking.
|
|
#4
|
|||
|
|||
|
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?
|
|
#5
|
|||
|
|||
|
Re: I got it to work! USB mice
Exactly.
|
|
#6
|
|||
|
|||
|
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?
|
|
#7
|
||||
|
||||
|
Re: I got it to work! USB mice
I'd also like to know... In my experience most mouse only maintain about 95% accuracy (meaning that the same motion repeated an infinite number of times will have a 5% deviance in delta distance). At the start of the season I expected to integrate the accelerometer to obtain velocity, but it's noise is horrendous. If the mouse gets good data, than it might be a good option.
Also, whats the issue with Code:
MouseInfo.getPointerInfo().getLocation().x Last edited by Arhowk : 20-02-2015 at 12:51. |
|
#8
|
|||
|
|||
|
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?
|
|
#9
|
||||
|
||||
|
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.
|
|
#10
|
||||
|
||||
|
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. |
|
#11
|
||||
|
||||
|
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
|
|
#12
|
|||
|
|||
|
Re: I got it to work! USB mice
Quote:
|
|
#13
|
||||
|
||||
|
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! |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|