forked from scratchfoundation/scratchx
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmartyScratch.html
52 lines (44 loc) · 3.03 KB
/
martyScratch.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<html>
<head>
<title>Marty Scratch</title>
</head>
<body>
<h1>Marty scratch challenges</h1>
<p>
<a href="/?url=scratch_extensions/martyBasic.js#scratch">Main Scratch Interface</a><br/ >
<a href="/?url=scratch_extensions/martyExtended.js#scratch">Extended commands</a><br />
<a href="/?url=scratch_extensions/martyWalk.js#scratch">Walk Challenge</a><br />
<!--<a href="/?url=scratch_extensions/martyDemo.js#scratch">Scratch Demo</a><br />-->
</p>
<h2>Examples Sheet</h2>
<a href="ChallengeOutlines.pdf" target="_blank">Here</a> is a big document showing lots of things you can do with Scratch and Marty.
<h2>Starter projects</h2>
<h3>Basic Movements</h3>
<a href="/?url=/scratch_extensions/basics-01.sbx#scratch">Making Marty move</a> <br/>
<a href="/?url=/scratch_extensions/basics-02.sbx#scratch">Try out loops!</a><br />
<a href="/?url=/scratch_extensions/basics-03.sbx#scratch">Make a function</a>
<h3>Walk Challenge</h3>
<p>
We challenge you to make Marty walk, but you're not allowed to just use the walk command!<br />
You'll need to think about balance and how Marty moves, and you'll actually teach a robot to walk!</p>
<p><a href="/?url=/scratch_extensions/walkChallenge-01.sbx#scratch">Intro with instructions</a></p>
Once you're through the basics, try the following!:
<ul>
<li>Try using the "Move <i>joint</i>..." block to make your own movement, and define it in a function</li>
<li>Try making a step function that makes marty turn. See if you can get it to take an <i>argument</i> - in this case a number input - to vary the amount it turns</li>
<li>If the turn amount is too large, Marty might get into trouble. How can you make sure that doesn't happen?</li>
</ul>
<h3>Reading Sensors</h3>
<p>These two examples assume you have some bump switches connected - ideally a forward facing one on Input 0, and a ground contact (downward facing) one on Input 1<br />
<a href="/?url=/scratch_extensions/sensors-01.sbx#scratch">Reading a bump switch and reacting</a><br />
<a href="/?url=/scratch_extensions/sensors-01a.sbx#scratch">Detecting a ledge (and not walking off!)</a>
</p>
<a href="/?url=/scratch_extensions/sensors-02.sbx#scratch">Reading motor current</a>
<h2>Complete examples</h2>
<a href="/?url=/scratch_extensions/graphTest.sbx#scratch">Showing a graph of force on the arm</a><br />
<a href="/?url=/scratch_extensions/handshake-basic.sbx#scratch">Simple Handshake</a><br />
<a href="/?url=/scratch_extensions/handshake-full.sbx#scratch">Complex Handshake</a>
<h2>Tools</h2>
<a href="calibration/index.html">Marty Calibration tool</a>
</body>
</html>