Detecting vehicle motion
Don M
Posts: 1,652
Which sensor would be used to detect a vehicle stopping / starting ? A gyroscope or inertial sensor ?
Comments
If so then an accelerometer would probably provide enough information to detect when a vehicle starts. Detecting when the vehicle has come to a full stop will be harder. While the readings from an accelerometer can be integrated to compute speed, there's always some error and one generally needs additional information to compute speed.
An accelerometer coupled with a GPS unit would probably work reasonably well. Then a GPS unit by itself may be enough to do the job.
Can you hack into the vehicle's computer and read the speedometer?
A gyro detects angular motion. If the vehicle traveled in a straight line, the gyro wouldn't detect a change.
A gyroscope is a kind of inertial sensor.
As Duane mentions, an accellerometer would be the main component to detect the forward motion of a car, but a gyroscope -- especially a 3-axis one -- is also useful; for example, it would detect the movement of the car from or to stop, since that would almost always entail a momentary change in pitch.
Most late-model smart phones and other consumer devices combine both a gyroscope and accelerometer in one unit. There are some internal measurement modules that give you a "fused" output that gives a single reading per axis.
I should mention that I am not able to connect to anything in the vehicle to detect movement etc..
Of course, it won't work in tunnels or parking garages (or the like), but maybe you can include an override for such things.
Thanks Gordon. I'll look into this when I connect the GPS module and do a bit more playing with it.
Thanks Rich. I've heard of doing that before but as I mentioned this won't rely on any connections or feedback from the vehicle (which happens to be a diesel anyway...). Fully self contained and reliant on whatever sensors I build into it.
I found this APP Note but in the resources section the zip file it refers to doesn't exist. Anyone have the spin code for this APP Note?
EDIT:BTW, the code is on this page:
https://www.parallax.com/downloads/an002-real-time-gps-data-reception-and-parsing
... OR ...
A cigarette lighter adapter detecting AC ripple from the alternator: no ripple=engine is off / stop timing; has ripple = engine is running / start timing.
GPS could give you time stamps and location data if you need those logged.
I wonder if you could sense the zero mph position of the speedometer needle, with some kind of stick on sensor.
I'm interested to know about the no interface requirement. Is that a company rule or a design goal?
Other approaches: I've seen speedometer cable sensors that clip around the cable. Apparently they are sensitive to the turning of the steel cable inside. I've also seen some really simple aftermarket add-ons for wheelchair wheel sensors where a simple IR sensor reflects off the inside rim of the tire. It would be fairly easy to hotmelt an IR sensor -- similar to how the encoder on an Activity Bot works -- in the wheel well of the car. Look for a spot that doesn't show a lot of dirt or mud.
Anyway, we could go on...
Because it's a vehicle I do not own. Also it needs to be portable meaning it can be just connected to power in any vehicle. This is a project for in a school bus.
Now this is getting interesting. I was thinking in bad weather anything pointing outside will have issues.
What are the conditions of stopped time? Stopped at red lights, or stopped engine off taking a nap in the back stopped?
What accuracy are you looking for? Down to the second or minute on a couple hour drive?
Actually, I thought of the X-band since it can "see" through the glass and would not have to be outside the car. It can also see through walls (if they aren't metal) since it uses radar signals.