1 Chapter 3: Tilt with the Memsic Dual-Axis Accelerometer Smart Sensors and Applications Chapter 3: Tilt with the Memsic Dual-Axis Accelerometer Presented.

Slides:



Advertisements
Similar presentations
Chapter 6: Digital Display
Advertisements

Chapter 3: Digital Inputs - Pushbuttons
1 Chapter 8: Frequency and Sound Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin A.
1 Chapter 9: Electronic Building Blocks Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin.
The arc length spanned, or cut off, by an angle is shown next:
Graphing Sine and Cosine. Graphing Calculator Mode— Radians Par Simul Window— –X min = -1 –X max = 2  –X scale =  /2 Window— –Y min = -3 –Y max = 3.
Graphing Sine and Cosine. Video Graphing Calculator Mode— Radians Par Simul Window— –X min = -1 –X max = 2  –X scale =  /2 Window— –Y min = -3 –Y max.
Evaluating Sine & Cosine and and Tangent (Section 7.4)
1 Chapter 7: Measuring Light Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin A. Hebel.
Parallax, Inc. Presentation based on: “Robotics: with the Boe-Bot"
1 Chapter 4: Controlling Motion Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin A.
1 Chapter 5: Measuring Rotation Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin A.
Starter a 6 c A 53° 84° 1.Use Law of Sines to calculate side c of the triangle. 2.Use the Law of Cosines to calculate side a of the triangle. 3.Now find.
The World’s Largest Ferris Wheel
Microsoft® Small Basic The Math Object Estimated time to complete this lesson: 1 hour.
Slide Menlo Drive Suite 100 Rocklin, CA Presentation based on: “What’s a Microcontroller?" by Andy Lindsay Presented by Andy.
1 Chapter 4: Hitachi HM55B Compass Module Smart Sensors and Applications Chapter 4: Hitachi HM55B Compass Module Presented by: Andy Lindsay Parallax, Inc.
Section 5.5 Inverse Trigonometric Functions & Their Graphs
Pegasus Lectures, Inc. COPYRIGHT 2006 Volume I Companion Presentation Frank R. Miele Pegasus Lectures, Inc. Ultrasound Physics & Instrumentation 4 th Edition.
EG280 - CS for Engineers Chapter 2, Introduction to C Part I Topics: Program structure Constants and variables Assignment Statements Standard input and.
Chapter 13 Section 3 Radian Measure.
Copyright © 2005 Pearson Education, Inc.. Chapter 6 Inverse Circular Functions and Trigonometric Equations.
Principles and Rules of Copyright Copyright is protection for intellectual property.
Slide Menlo Drive Suite 100 Rocklin, CA Presentation based on: “What’s a Microcontroller?" by Andy Lindsay Presented by Jessica.
1 Chapter 1: Parallax Serial LCD Display Smart Sensors and Applications Chapter 1: Parallax Serial LCD Display Presented by: Andy Lindsay Parallax, Inc.
1 A Modification of Chapters 5 & 7 Slides Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by:
Slide 1 Presentation based on: “Robotics: with the Boe-Bot" by Andy Lindsay Menlo Drive Suite 100 Rocklin, CA
1 Chapter 6: More Accelerometer Projects Chapter 7: LCD Bar Graphs for Distance and Tilt Smart Sensors and Applications Chapter 6: More Accelerometer Projects.
1 With the Parallax USB Oscilloscope Understanding Signals With the Parallax USB Oscilloscope Presented by: Andy Lindsay Parallax, Inc.
Slide Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
1 © 2010 Pearson Education, Inc. All rights reserved © 2010 Pearson Education, Inc. All rights reserved Chapter 4 Trigonometric Functions.
Copyright © 2011 Pearson, Inc. 4.7 Inverse Trigonometric Functions.
1 Chapter 1: Getting Started Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin A. Hebel.
Slide 1 IR Remote for the Boe-Bot IR Remote for the Boe-Bot.
Slide 1 IR Remote for the Boe-Bot IR Remote for the Boe-Bot.
CHAPTER 7: Trigonometric Identities, Inverse Functions, and Equations
1 Chapters 2 And 3 Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin A. Hebel Southern.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 4- 1 Homework, Page 411 Graph the function from -2π ≤ x ≤ 2π. State.
1 “Something to put it in perspective…” Slide Show Name “Something to put it in perspective…” Presented by: Andy Lindsay Parallax, Inc.
Chapter 4 Trigonometric Functions Copyright © 2014, 2010, 2007 Pearson Education, Inc Trigonometric Functions: The Unit Circle.
1 Chapter 1: Getting Started Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin A. Hebel.
Slide Menlo Drive Suite 100 Rocklin, CA Presentation based on: “What’s a Microcontroller?" by Andy Lindsay Presented by Andy.
© Prentice Hall CHAPTER 2 APPLICATION SOFTWARE.
1 Parallax BASIC Stamp ® Tutorial Developed by: Electronic Systems Technologies College of Applied Sciences and Arts Southern Illinois University Carbondale.
1 © 2011 Pearson Education, Inc. All rights reserved 1 © 2010 Pearson Education, Inc. All rights reserved © 2011 Pearson Education, Inc. All rights reserved.
Quiz 4-5 Describe how tan(x) is transformed to graph: -tan(2x)
Slide Menlo Drive Suite 100 Rocklin, CA
Section 7.5 Solving Trigonometric Equations Copyright ©2013, 2009, 2006, 2001 Pearson Education, Inc.
8.1-Law of the Sines Law of the Sines & Requirements Examples Practice Problems.
Inverse Trig Functions Law of the Sines Notation Inverse Trig Functions, Law of the Sines & Requirements Practice Problems.
1 Chapter 5: Accelerometer Gaming Basics Smart Sensors and Applications Chapter 5: Accelerometer Gaming Basics Presented by: Andy Lindsay Parallax, Inc.
Copyright © 2011 Pearson, Inc. 4.7 Inverse Trigonometric Functions.
Trigonometry Section 7.3 Define the sine and cosine functions Note: The value of the sine and cosine functions depend upon the quadrant in which the terminal.
14.1 The Unit Circle Part 2. When measuring in radians, we are finding a distance ____ the circle. This is called. What is the distance around a circle?
Trigonometry Section 7.4 Find the sine and cosine of special angles. Consider the angles 20 o and 160 o Note: sin 20 o = sin160 o and cos 20 o = -cos 160.
Chapter 5 Trigonometric Functions Copyright © 2014, 2010, 2007 Pearson Education, Inc Trigonometric Functions of Real Numbers; Periodic Functions.
Slide Menlo Drive Suite 100 Rocklin, CA
Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.
Numeric Functions Purpose:-
The Trigonometric Functions
Chapter 1 Angles and The Trigonometric Functions
Do Now Find the value of each expression. Sin 60 ° Cos 30 ° Tan 270 °
Chapter 8: Frequency and Sound
Inverse Trigonometric Functions
Evaluating Inverse Trig Expressions
3) Parsing Instructions: PARSE, ARG, Patterns.
Chapter 7: Measuring Light
Chapter 5: Measuring Rotation
Presentation transcript:

1 Chapter 3: Tilt with the Memsic Dual-Axis Accelerometer Smart Sensors and Applications Chapter 3: Tilt with the Memsic Dual-Axis Accelerometer Presented by: Andy Lindsay Parallax, Inc.

2 Copyrights and Trademarks This documentation is copyright 2006 by Parallax Inc. By downloading or obtaining a printed copy of this documentation or software you agree that it is to be used exclusively with Parallax products. Any other uses are not permitted and may represent a violation of Parallax copyrights, legally punishable according to Federal copyright or intellectual property laws. Any duplication of this documentation for commercial uses is expressly prohibited by Parallax Inc. Duplication for educational use is permitted, subject to the following conditions: the text, or any portion thereof, may not be duplicated for commercial use; it may be duplicated only for educational purposes when used solely in conjunction with Parallax products, and the user may recover from the student only the cost of duplication. BASIC Stamp, Stamps in Class, Board of Education, Boe-Bot SumoBot, SX-Key and Toddler are registered trademarks of Parallax, Inc. HomeWork Board, Propeller, Ping))) Parallax, and the Parallax logo are trademarks of Parallax Inc. If you decide to use trademarks of Parallax Inc. on our web page or in printed material, you must state that "(trademark) is a (registered) trademark of Parallax Inc.” upon the first appearance of the trademark name in each printed document or web page. Other brand and product names are trademarks or registered trademarks of their respective holders.

3 Chapter 3, Pages The Memsic Dual-Axis Accelerometer

4 Chapter 3, Page 67

5 Chapter 3, Activity #1, Page 68 Circuit: Figure 3-3 on page 68 Program: SimpleTilt.bs2 on page 70. √ Follow the checkmarks on pages

6 Chapter 3, Activity #1, Page 70

7 Chapter 3, Activity #2, Pages Using SEROUT commands instead of DEBUG Circuit: Figure 3-6 and Figure 3-7, pages Program: SimpleTiltLcd.bs2, page 74 √ Follow the checkmarks on page 74.

8 Chapter 3, Activity #3, Pages Applying Scale and Offset: 1.Apply offset to align the input scale to zero. 2.Apply the scale. 3.Apply any additional offset needed for the output scale. Scaling/Offset from 1875 — 3125 to -127 — 127 Applying Scale/Offset to the value variable

9 Chapter 3, Activity #3, Pages Choosing the right ** Constant for Scaling… …and Clamping the Input Range with MIN and MAX

10 Chapter 1, Activity #1, Pages Program: TestScaleOffset.bs2 √ Follow the checkmarks on pages 78 – 80.

11 Chapter 3, Activity #3, Pages PBASIC and Negative Numbers Program:SignedNumbers.bs2 √ Follow the checkmark instructions on page 81.  In PBASIC, only Word variables can hold signed numbers, for example: value VAR Word  All signed numbers have 16 bits.  Look at Bit 15 of the variable to know if a signed number is negative or positive.  For example, if the variable value.bit15 is equal to 1, the number is negative.

12 Chapter 3, Activity #4, Page 84 Sample Readings at Various Orientations Scaling and Offset for 1/100 g. Program: SimpleTilt.bs2 √ Follow the checkmark instructions on page 85.

13 Chapter 3, Activity #5, Pages , Calculating Arctangent with ATN The result of an ATN operation is expressed in Brads (Binary Radians) Program: TestAtn.bs2, p. 90 √ Follow the checkmarks on page 89.

14 Chapter 3, Activity #5, Pages Converting from Brads to Degrees with the */ Operator angle = 361 */ angle The */ operator multiplies the operand by a number of 256 ths Program: BradsToDegrees.bs2, page 90 √ Follow the checkmarks on page 90.

15 Chapter 3, Activity #5, Page 92 Measuring Tilt Angle on the Vertical Plane

16 Chapter 3, Activity #5, Pages Program: VertWheelRotation.bs2, p. 95 √ Follow the checkmark on page 95.

17 Chapter 3, Activity #6, Page 99

18 Chapter 3, Activity #6, Pages Sine, Cosine and the Unit Circle Program: SineCosine.bs2, page 101 √ Follow checkmarks on pages 101 – 102. The SIN and COS operators return values from -127 to 127

19 Chapter 3, Activity #6, Pages Arcsine and Arccosine Subroutines Program: TestArcsine.bs2, page 103 √ Follow checkmarks on pages 103, 105.

20 Chapter 3, Activity #6, Page Displaying Accelerometer Tilt Angle Program: HorizontalTilt.bs2, page 108 √ Follow checkmarks on page 108.