|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#61
|
||||
|
||||
|
Re: Hall Effect Sensor.
Quote:
-Kevin |
|
#62
|
||||||
|
||||||
|
Re: Hall Effect Sensor.
Quote:
Excelsior, When you tested it, how exactly did you have it hooked up electrically, and what were you trying to test? |
|
#63
|
|||||
|
|||||
|
Re: Hall Effect Sensor.
Quote:
|
|
#64
|
||||||
|
||||||
|
Re: Hall Effect Sensor.
Quote:
|
|
#65
|
|||
|
|||
|
Re: Hall Effect Sensor.
Quote:
|
|
#66
|
||||
|
||||
|
Re: Hall Effect Sensor.
We got it up and running last night, very cool. A couple of things... We did not use pin 3 (internal connection), I bet it is a safeguard for grounding and we may hook this up and retry it soon. As far as mounting it, we made a small hole in the top of the transmission closest to the 50 tooth output gear and wired it to a piece of proto circuit board and connected it directly to the analog input on the RC via PWM cable. The sensor must get fairly close to the gear teeth, within a 2-4 mm. Also its "self adjusting" which means you can't move it once your program is running. You have to adjust it then reset the program. Also run a test program in user_routines_fast.c . I'll take a picture of our simple test setup tomorrow and post it here.
|
|
#67
|
|||||
|
|||||
|
Re: Hall Effect Sensor.
Quote:
Hoever, after lunch on Saturday, it wasn't working any more. I replaced the sensor with the other one, and it didn't work either. I had a couple of students double-check the wiring to make sure it matched the documentation. I took it apart and reassembled everything in a nicer arrangement with a PWM connector. They still didn't work. They haven't worked since. I can't figure out why. I am discouraged. We will probably use something else to measure the robot's speed. Quote:
|
|
#68
|
||||
|
||||
|
Re: Hall Effect Sensor.
Alan,
If it were me, I'd check to make sure the gear is rotating in the way described in the datasheet (I think it's so the flat part on the top is pointing away from the middle of the gear. Check the datasheet to be sure.) I hooked up our hall-effect to a proto-board and it wouldn't do anything until the gear was positioned correctly. By the way, I will test some more, but I couldn't get much of a duty cycle change out of the hall effect sensor by changing directions. I may do more testing on this, but as of now, it's software's problem ![]() Keep us updated. Sparks |
|
#69
|
|||
|
|||
|
Re: Hall Effect Sensor.
Pardon my ignorance, but can't you tell direction by how you are controlling the motors? Aside from determining if you are getting pushed in the wrong direction by another robot, what is the purpose of using the encoders for determining direction?
I was just informed of the fact (at least for our setup) that if you fully power motors for each side to make the robot go forward, that the motor for one side will be going running "forward" while the other will be going in reverse. I was told the motor going forward will run slightly faster than the one going in reverse meaning that the robot will tend to angle off of a straight path. If what I was told is correct, using an encoder on each side (rather than two on one side) would allow you to determine if this is happening. Also, as mentioned elsewhere, this could replace dead reckoning. c h e t ! |
|
#70
|
|||||
|
|||||
|
Re: Hall Effect Sensor.
Quote:
|
|
#71
|
|||||
|
|||||
|
Re: Hall Effect Sensor.
Quote:
Still, having feedback on the actual motor speed is important if you do want to control things well. |
|
#72
|
|||||
|
|||||
|
Re: Hall Effect Sensor.
Quote:
|
|
#73
|
|||||
|
|||||
|
Re: Hall Effect Sensor.
Quote:
-Drive your robot forward and it's no great problem determining direction. -Now cut all power and coast to a stop. -You can assume your motors are still going in the last direction commanded, but when is that over? The robot will coast forward, but if it bumps into a wall/goal/robot and drifts backwards the s/w will think the robot is a foot further in one direction when it is actually a foot further back (that's a location error of two feet in this example). |
|
#74
|
|||
|
|||
|
Re: Hall Effect Sensor.
Thanks to all who replied!
First, thanks for the info on the motors. Armed with your information, we will check ours to see if they get the same results. Regarding Mr. McLeod's comments, good example! You are right about the double error. You made me realize that the accelerometer combined with the gyro would help in the situation you mentioned. Regarding Mr. Skierkiewicz' comments, while you also are correct, I wasn't clear in that I am not against using the encoders but was wondering if they wouldn't be better used - if you only have two - with one on each side of the vehicle. With the accelerometer and gyro you should then be able to tell direction. Slippage, of course, nullifies the encoders, which might happen if you are being pushed opposite the direction of your motors. I could be wrong, but it seems to me that with only two encoders plus the gyro and the accelerometer, you would get more information with the encoders on different sides than you would by mounting both on the same side. With mounting on opposite sides, you can count teeth on both sides, yielding distance and difference in speed between the two sides (again, not counting slippage). c h e t ! |
|
#75
|
|||||
|
|||||
|
Re: Hall Effect Sensor.
Quote:
Hope this answers your question |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Making a Sensor Board | SpaceOsc | Technical Discussion | 11 | 15-05-2004 12:46 |
| heres the code. y this not working | omega | Programming | 16 | 31-03-2004 15:18 |
| Banner Sensor Programming Problem | 2Crisis | Programming | 4 | 24-02-2004 13:40 |
| IR sensor trouble | D.Viddy | Electrical | 2 | 30-01-2004 09:49 |
| Quick Optical Sensor Question | zorro | Technical Discussion | 10 | 21-01-2003 06:39 |