1
00:00:07,030 --> 00:00:12,850
Hey everybody what's going on this is Caleb with Debb slopes dot com and welcome to the intro to accelerometer

2
00:00:12,850 --> 00:00:18,220
target topic in this Target topic we're going to learn all about the accelerometers specifically and

3
00:00:18,220 --> 00:00:21,300
how we can use it and it's data in iOS apps.

4
00:00:21,310 --> 00:00:25,900
We're also going to learn how to use the accelerometer to do really cool things like adding parallax

5
00:00:25,900 --> 00:00:29,440
effects images and table view cells even more so.

6
00:00:29,830 --> 00:00:35,080
The first section of this course is going to be the basic intro to the accelerometer how to actually

7
00:00:35,080 --> 00:00:37,280
use the accelerometer in its data.

8
00:00:37,330 --> 00:00:40,810
And the second section like I said is where we're going to do some fancy stuff.

9
00:00:40,810 --> 00:00:42,130
So let's go ahead.

10
00:00:42,130 --> 00:00:45,670
I want to show you the app we're going to build in this first section it's super simple.

11
00:00:45,790 --> 00:00:46,690
So check it out.

12
00:00:46,690 --> 00:00:47,800
Here we go.

13
00:00:47,920 --> 00:00:53,470
As you can see there are three labels one for the x value one for the y and one for the Z.

14
00:00:53,470 --> 00:01:00,100
Of course those are the horizontal or vertical and whatever Z stands for values in a 3D space there

15
00:01:00,100 --> 00:01:03,470
is X Y and Z for all three dimensions.

16
00:01:03,580 --> 00:01:09,400
And so if I pick up my phone here you'll see that the values change depending on how I move my device

17
00:01:09,410 --> 00:01:15,220
so if its length flat Z is pretty much a negative one and everything else is pretty much zero.

18
00:01:15,220 --> 00:01:17,920
Now if I tilt it up watch what happens.

19
00:01:18,010 --> 00:01:18,760
Why.

20
00:01:18,920 --> 00:01:24,100
OK the vertical axis becomes one or negative one and the other has become 0.

21
00:01:24,100 --> 00:01:27,450
If I tilt this way you'll see that Z becomes one.

22
00:01:27,520 --> 00:01:30,480
If I tilted backward this way it becomes negative 1.

23
00:01:30,720 --> 00:01:31,010
OK.

24
00:01:31,020 --> 00:01:36,940
Just like that y and z and x all can perfectly work the way that we are expecting.

25
00:01:36,940 --> 00:01:39,810
So let's go let's make y one.

26
00:01:39,820 --> 00:01:44,240
If we go all the way down you'll see y becomes one and everything else becomes 0.

27
00:01:44,260 --> 00:01:45,470
Super super cool guy.

28
00:01:45,470 --> 00:01:50,830
So this is the app we're going to build that's going to help us to use the accelerometer to capture

29
00:01:50,860 --> 00:01:51,970
data just like this.

30
00:01:51,970 --> 00:01:56,350
So let's head over to the next video where we're going to build this super easy interface and then dive

31
00:01:56,350 --> 00:01:57,210
right into the code.

32
00:01:57,210 --> 00:01:59,360
Very shortly after so I'll see you there.

33
00:01:59,380 --> 00:02:00,620
Let's head over now.
