Closed griswaldbrooks closed 7 years ago
Forgot to mention, the sensor was powered with 5V and the baselines were: No magnet, No slug: 2.494V No magnet, Slug: 2.579V
I was told that the new version of the sensor (I didn't realize I was using the old version) uses a more sensitive hall effect. I'll have to retest.
Looks like Small Disc w/slug, allowing for an inch or more of movement by the bumper arm? Seems like that will be sensitive enough to know we ran into something, but not too noisy if we bump around. Assuming there is a spring on the bumper arm...
Right, well, we'd be comparing Small Disc with Slug at 1 inch: 2.768 V to No Magnet with Slug: 2.579 So, it'll probably be fine, depending on testing with vibrations. I think the mechanism is sound, and we'll get things as close as we can, but we can also swap sensors, adjust their position, and swap magnets if we have a problem without fundamentally overhauling the mechanism.
I was thinking it would be more like 3.8v (when very close, .25) compared to 2.75v (when 1 inch removed). Maybe I don't understand that chart.
Consider bumper extended vs bumper compressed.
The sensor is inside the robot, facing orthogonal to the motion of the magnet. Therefore it only sees the magnet or not. The distance is meant for how close we can get the sensor and magnet together in one of these states and still allow the robot to be opened up. I guess the magnet can be very close to the shell, since it only moves relative to it, but the sensor can only be so close.
An overhead view would look something like this.
The distance here is what I was testing.
Updated test with the other sensor.
So as a quick test, I "mounted" the hall effect sensor in the robot
It's inset by the amount it is because the upper shell is inset
So, using a spacer about 0.2 inches thick
I placed the small disc magnet over the "new" sensor until I got the max response.
Then I moved it a bit to the left. The results are:
Displacement (in) | Voltage (V) |
---|---|
0 | 1.83 |
0.25 | 1.5 |
0.5 | 1.09 |
Given these results, I'm guessing we can build whatever is practical and calibrate it.
Bumper is installed, no hall sensors installed
Hall sensors installed https://youtu.be/vJRPw-XxklI
Pictures of the sensor on the inside. Still need to crimp new connectors and get the design files up and then this can be closed.
Note, right now when the bumper is extended (not bumping), the magnet and the hall sensor are aligned and receiving full signal. The advantage of doing it this way versus the other way is that if the cover (top shell) is removed, the robot will think it's bumper is compressed (bumping) and will not run.
As the integration of the sensors, electrically, is going to be addressed in https://github.com/victoriarobotics/victoria_electrical/issues/9 I'm going to close this one.
So, I did a quick test with the neato hall effect sensor to see what kind of responses there were. There were several testing conditions. The primary one was voltage vs distance, but I also tested three different magnet sizes that I have, and the presence of a metal slug that is usually behind the sensor that channels the flux through the sensor.
Here is a chart of the response: (https://github.com/victoriarobotics/victoria_mechanical/files/784392/hall_effect_data1.xlsx)
Obviously the largest disc magnet with the slug gives the best response but if that interferes with the compass I believe the small disc with slug would suffice. I feel like the ball magnet is going to be trouble. In general, we should use the slug.
Here is the data: [hall_effect_data1.xlsx]
Picture of the sensor without slug:
Picture of the sensor with slug:
Picture of the magnets tested and the testing blocks I used.
The discs were of 1 inch and 3/8 inch diameter and the ball was 3/16 inch diameter.