![]() |
Compass sensor
Alright i know this may be a bit out there but is it possible to get a compass sensor to work well with a robot? If so how would one go about doing so?
|
Re: Compass sensor
We tried one in 2008. Go look up some 364 video's on TBA for 2008, then come up with a conclusion.
The compass we tried was the biggest pain in the butt we've ever used. We could not find a decent place to put it on the robot, so we mounted it up top away from all the motors, then when we went under the steel underpass, guess what started tripping up. Do yourself a favor and use a Gyro. Some other teams may have gotten a compass working, but ours was way too sensitive. |
Re: Compass sensor
Quote:
|
Re: Compass sensor
Our team used (tried to use) a compass last year. It actually did work, but as the previous post described, they can be sensitive to motors and metal. If you use one I would suggest using it to check your heading, but use the gyro to control. The gyro with the integrator provided by the cRIO is very good, and didn’t seem to lose precision through these relatively short matches.
If you still have interest in a compass, here is basically how it worked: They started with a mems compass mounted on a breakout board from SparkFun.com The output is I2C, which the FIRST cRIO has on the digital sidecar, but we couldn’t find what we needed in the libraries to use it. So the team used an Arduino (which is an ATmega168 programmed with C), which could talk to the compass on the I2C buss, then sent an analog 0-5 volts to the cRIO that translated to 0-359 degrees. They also had to set a digital output to tell the Arduino to put the compass in calibration mode, then the robot went into a 720 degree spin. This addition seem to help quite a bit, but as I said above, they ended up using a gyro. The learning experience with the Arduino, and I2C was great, and there is also a lesson in the difference of how well something looks on paper Vs in practice… |
Re: Compass sensor
We have used a compass in the past. Not as effective as we had hoped. Many require a neutralizing high current pulse to demagnetize the chip and surrounding area before a read. They depend on being able to sense the earth's magnetic field and can be confused by ferrous metals and other magnetic fields. All of our motors use permanent magnets and trying to position a compass within the robot is a daunting task. Several teams have used them over the years but it does present some challenges.
|
Re: Compass sensor
Alright, Thanks for all the great replies guys, really appreciate everything. So what we are essentially trying to do is to get our Holonomic drive robot to maintain the same direction unless we want to change that "target direction" this will make it easier to control and also give us some cool design possibilities. How would you guys go about achieving this sort of control?
|
Re: Compass sensor
Quote:
|
Re: Compass sensor
Alright, So before this thread I always thought gyro's just measure the angle of your robot, heh. So I did some research and now I'm just wondering, how effective will the gyro you get in the KOP be at tracking your angle through the entire match? also how hard would it be to implement a system of "target angle"? If there is anything not clear with my questions just ask away and i'll explain to the best of my ability.
|
Re: Compass sensor
Alex,
You may not need to know the direction for the entire match. It will help target the robot or perform whatever auto function you want to run during the auto period. If you know where you are at the start of the match then you can move to another point on the field if you know distance traveled and direction you traveled. It would also be useful if you are using the camera to shoot so that you can know where you are in relation to the goal. i.e. The robot is pointed here but the camera says I should be pointed 30 degrees to the left, so turn left another 30 degrees. |
Re: Compass sensor
Yeah that is true, but what we are trying to achieve is a mode for our holonomic drive system so that it will stay in the same orientation just moving different ways, so would a gyro be able to hold that the whole match?
|
Re: Compass sensor
Alex,
You could do that but think about the whole game. What is your robot going to do for two minutes? Do you always want it pointing in the same direction? |
Re: Compass sensor
meh, im always bad at explaining things, What you have is a "target zone" in which you can pick where to point it, so you can change it whenever you want but it will stay in that position until you do change it, and holonomic drives are drives such as mecanum and omni drives so you can strafe.
|
Re: Compass sensor
Just to be clear, the Gyro used in FRC gives you the Rate of Turning, in degrees per second. So if you want to keep your robot from turning, just maintain the gyro value at zero - if it turns at 2 degrees per second for 3 seconds, then turn it back the same 6 degrees.
Just be aware that a gyro has some "drift"; that is, it reports small turn rates even while not moving. This can be mostly managed by adjusting for temperature (there is a temperature sensor on-board) and some empirical measurements, not perfectly but well enough for a 2 minute match. Not to mention your driver can 'adjust' the actual position a little if/when necessary, leaving the majority of the work to the automated system. |
Re: Compass sensor
Thanks a bunch for the info, how difficult do you think it would be to implement a system like this for a programmer with moderate experience?
|
Re: Compass sensor
Quote:
If your are pointed at a goal and then move left or right, the angle to the goal changes. If you stay on the same heading and move forward and back the heading to the goal also changes. It might help for you to draw out various positions on paper and then measure the different angles. |
| All times are GMT -5. The time now is 12:34. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi