IOf you use a 3 axis device and do the math it will work. Think vectors. At rest the system will measure a 1 G down. When breaking a breaking acceleration will be added in as another vector so you should be able to remove the 1 G and get a resultant vector.Team 190 from WPI did that a few years ago on their First robot when we put in an inertial navigation system. Larry > > From: "David Van Horn" > Date: 2005/08/31 Wed PM 04:21:45 EDT > To: "Microcontroller discussion list - Public." > Subject: RE: [EE]: Looking for method to differentiate gravityfromacceleration > > > 2) If the car is on a banked surface then the device may think the car > > is going downhill since the perpendicular will read less than 1G. In > > this case the light would not come on if you did brake slowly. A > > three axis accelerometer would remedy this. Might only matter at the > > race track and some highway entrance and exit ramps. > > Would it work in San Francisco? > > :) > > > > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist