Gesture Controlled Remote Controlled Car submit flowchats, pseudo-code, and/or g
ID: 3673051 • Letter: G
Question
Gesture Controlled Remote Controlled Car
submit flowchats, pseudo-code, and/or graphs for the two problems in this lab.
1.Detail how you will translate the RAW ADC reading of the accelerometer’s Y-axis to the motor speed and direction.
2.Detail how you will translate the RAW ADC reading of the accelerometer’s X-axis to the servo’s positions to steer the car.
In Part 1 of the lab you will be wiring your own H-Bridge to the Dragon12 board. In the Part 2 of the lab, you will hook up the DC motors and servos and write the code that will control your toy car.
please help I need a flowchart or a pseudo-code for this problem
Explanation / Answer
In this case the box isn't moving but we still get a reading of -1g on the Z axis. The pressure that the ball has applied on the wall was caused by a gravitation force. In theory it could be a different type of force - for example, if you imagine that our ball is metallic, placing a magnet next to the box could move the ball so it hits another wall. This was said just to prove that in essence accelerometer measures force not acceleration. It just happens that acceleration causes an inertial force that is captured by the force detection mechanism of the accelerometer.
While this model is not exactly how a MEMS sensor is constructed it is often useful in solving accelerometer related problems. There are actually similar sensors that have metallic balls inside, they are called tilt switches, however they are more primitive and usually they can only tell if the device is inclined within some range or not, not the extent of inclination.
So far we have analyzed the accelerometer output on a single axis and this is all you'll get with a single axis accelerometers. The real value of triaxial accelerometers comes from the fact that they can detect inertial forces on all three axes. Let's go back to our box model, and let's rotate the box 45 degrees to the right. The ball will touch 2 walls now:
t
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.