Download presentation
Presentation is loading. Please wait.
5
Thicker end at bottom. Curve facing forwards
12
Making Rodni’s heart beat
14
Upload
15
-ve
22
8;
25
(3000); 8
26
How would you make the heart “beat”?
27
8 COPY
28
PASTE
31
Other uses of this? In projects? In industry/transport etc?
32
Making Rodni’s head move
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
45
Change to (sensorValue); Delete this line Let’s simplify this a little We can now read a number between 0 and 1023
47
Change to 80);
48
map 01023 080
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
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!
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.