|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Speed Sensor
I'm looking for some kind of sensor that can measure speed/velocity of a moving wheel. I considered encoders/gear teeth sensors but I'm out of interrupts.
Ideally I'd like to find something that would return an analog value based on the speed... Any ideas? Thanks |
|
#2
|
|||||
|
|||||
|
Re: Speed Sensor
What about using a seperate board, and have it communicate to the IFI board via a serial connection?
|
|
#3
|
|||||
|
|||||
|
Re: Speed Sensor
You can use accelerometers, which you have to integrate to get the speed. I don't know if they are included in the kit this year, but they were definitely in the kit last year.
|
|
#4
|
||||
|
||||
|
Re: Speed Sensor
Quote:
|
|
#5
|
|||
|
|||
|
Re: Speed Sensor
There is a 2 axis accelerometer in the kit this year.
An accelerometer will give you an accurate velocity reading (after a simple integration. Remember: position, velocity, and acceleration are all interconnected) for the robot as a system. If you are checking overall velocity, this will be fine. If you need each individual wheel's velocity, it may not be the best solution. If you can tell me, how are you out of interrupts? There's good ol' interrupts 1 and 2 (as configured in Kevin's encoder code), but you can also set your code to run interrupts off pins 3-6. Do you really have 6 interrupt driven sensors? I'd be afraid of interrupt overflow before I ever worried about not having enough hardware interrupts to work with. See the interrupt source at www.kevin.org/frc for more info. Quote:
Last edited by Tom Bottiglieri : 12-01-2006 at 14:24. |
|
#6
|
|||||
|
|||||
|
Re: Speed Sensor
Quote:
|
|
#7
|
||||
|
||||
|
Re: Speed Sensor
Quote:
|
|
#8
|
|||||
|
|||||
|
Re: Speed Sensor
Quote:
|
|
#9
|
||||
|
||||
|
Re: Speed Sensor
Quote:
|
|
#10
|
||||
|
||||
|
Re: Speed Sensor
Quote:
the dual axis accelerometer has an X and Y output that are analog voltage that is proportional to acceration. There for the input to the controller would use 2 analog ports and need to have a support routine relating the Analog to digital output to acceleration of the robot in the X and Y directions. This could be done with integer math only and could even be written as inline assembler code for optimal speed. Just a few thots from an old mentor. LRU. |
|
#11
|
||||
|
||||
|
Re: Speed Sensor
Quote:
-Kevin |
|
#12
|
||||
|
||||
|
Re: Speed Sensor
The Kit includes a accelerometer, a gyro, and two gear tooth sensors. You can use EasyC and drag and drop them into the code. There is also information in the help file on getting them going.
|
|
#13
|
||||
|
||||
|
Re: Speed Sensor
Quote:
|
|
#14
|
||||
|
||||
|
Re: Speed Sensor
A tachometer (an AC motor in reverse) gives voltage and frequency output porportional to the velocity of its shaft, but these arn't very precise at low speeds.
I have heard many different things in regards to using a microcontroller other that the RC, is it allowed? Can I forexample use a PIC or someother microcontroller to handle low level stuff? |
|
#15
|
|||
|
|||
|
Re: Speed Sensor
I think so, the rules dont specifically write about how we cant make a PIC. as long as its outputs go to the RC, they're okay..
We're going to use 2 low-g high precision Motorolla accelerometers (1 axis) run it through a kalman filter on a PIC or STAMP or whatever and output an analog signal.. be sure to eliminate every possible source of bias before your integrator (PIC in this case) or else your v measurements will be vastly off |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| air speed sensor for rc plane | Greg Needel | Technical Discussion | 19 | 07-10-2005 23:43 |
| Speed of banner sensor | Kashi Chan | Electrical | 7 | 06-03-2005 20:00 |
| PID control loops - closed loop feedback | KenWittlief | Technical Discussion | 56 | 26-04-2004 21:27 |
| Quick Optical Sensor Question | zorro | Technical Discussion | 10 | 21-01-2003 06:39 |
| What else do we want? | archiver | 2000 | 63 | 23-06-2002 23:19 |