|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Speed Sensors
how do you connect the speed sensor???
![]() |
|
#2
|
||||
|
||||
|
Re: Speed Sensors
If you use encoders of some sort and have the weight/space I'd suggest mounting them on a non driven wheel that touches the floor to eliminate error from the robot doing spinning its wheels.
|
|
#3
|
||||
|
||||
|
Re: Speed Sensors
Accelerometer doesn't tell you current speed, it just measures acceleration. And if you are turning at the time, you will get the forward component of acceleration plus the lateral component (2-axis accelerometer).
Using encoders, you can figure distance travelled, speed, and acceleration. Put an IF statement in your code that executes its inner code at a known rate (eg: 10 times per second). Code:
if (time_elapsed_100msec)
{
Speed = CurrentEncoderCount - prev_EncoderCount;
Acceleration = Speed - prev_Speed;
prev_EncoderCount = CurrentEncoderCount;
prev_Speed = Speed;
}
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Wheel Speed Sensors / Vehicle Speed Sensors | chitu | Technical Discussion | 11 | 12-01-2008 02:46 |
| where can we buy hall effect sensors or gear tooth sensors | amirjpl | Electrical | 3 | 13-02-2006 11:02 |
| speed controller max speed | Team 668 | Programming | 15 | 13-02-2005 14:05 |
| sensors | edomus | General Forum | 5 | 19-11-2003 16:46 |
| Speed Sensors | archiver | 2000 | 7 | 23-06-2002 23:01 |