Check if car is driving with a accelerometer

Hey

So I have a accelerometer connected to an Arduino in a car.
My question is that when the car is driving and WHILE driving the arduino gets turned on (so without acceleration data from still standing) can it detect that the car is driving?

I thought maybe I could check for bumps and shaking or whatever since the streets are not that smooth, but is there a better way? Or maybe with another sensor?

Thanks

Welcome to the forum

How about using a GPS receiver ?

1 Like

@UKHeliBob
Why haven't I thought about it :slight_smile:
Yeah I guess that would work :+1:

Problem may be distinguishing between bumps & shakes caused by driving and other things like wind etc. You could mainly use horizontal acceleration to estimate speed from standing start and while the speed is > some threshold assume car is moving - that could also be combined with other axis measurements. I'm fairly certain that the CAN bus in a vehicle carries information that could be used and it's accessible on the OBD2 connector near the steering wheel. Ideal would be "wheel ticks". Getting Started with OBD-II - SparkFun Learn

Would it suffusing to take a feed from the cars wiring that shows the ignition is on ?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.