Presentation is loading. Please wait.

Presentation is loading. Please wait.

Thicker end at bottom. Curve facing forwards.

Similar presentations


Presentation on theme: "Thicker end at bottom. Curve facing forwards."— Presentation transcript:

1

2

3

4

5 Thicker end at bottom. Curve facing forwards

6

7

8

9

10

11

12 Making Rodni’s heart beat

13

14 Upload

15 -ve

16

17

18

19

20

21

22 8;

23

24

25 (3000); 8

26 How would you make the heart “beat”?

27 8 COPY

28 PASTE

29

30

31 Other uses of this? In projects? In industry/transport etc?

32 Making Rodni’s head move

33

34

35

36 80

37 40 Delete

38 Try changing these numbers to between 0 and 80

39 Change to 60 9

40 Change to 1500 Now save this programme as Rodniservo 9

41 Making Rodni see

42

43

44

45 Change to (sensorValue); Delete this line Let’s simplify this a little We can now read a number between 0 and 1023

46

47 Change to 80);

48 map 01023 080

49

50

51

52

53 Load ReadAnalogVoltage again Note the read-outs on the serial monitor when Rodni’s nose is shaded and in light.

54 80 Change to high and low numbers that you measured

55 Change these numbers

56 Training Rodni

57 Open the programme that you saved, RodniServo

58 Open Knob again

59

60 Type if (val>400) then add curly brackets as shown. Repeat as below. We are telling the Arduino that if the variable val is greater than 400 it should do what is between the following curly brackets. The next if statement tell the Arduino what to do if the variable is less or equal to 400.

61 What do these mean? Experiment!

62

63

64

65

66


Download ppt "Thicker end at bottom. Curve facing forwards."

Similar presentations


Ads by Google