1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <?xml-stylesheet type="text/xsl" href="helma.xsl"?>
3 <xmlroot xmlns:hop="http://www.helma.org/docs/guide/features/database">
4 <hopobject id="2927" name="Page" prototype="Page" created="1375134478947" lastModified="1382163301897">
5 <hop:parent idref="0" prototyperef="Root"/>
6 <is_xhtml type="boolean">true</is_xhtml>
7 <http_remotehost>71.239.244.4</http_remotehost>
8 <http_language>en-US,en;q=0.8</http_language>
9 <uri>makerfairedetroit2013</uri>
10 <http_browser>Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.9 (KHTML, like Gecko) Chrome/20.0.1115.1 Safari/536.9</http_browser>
11 <time type="date">19.10.2013 01:15:01 CDT</time>
12 <hopsession>71.239.244.14ecwad7644ne</hopsession>
13 <body><script src="/static/bonescript-demo.js"></script>
\r
14 <h1>BeagleBone Black workshop at Maker Faire Detroit 2013</h1>
\r
15 <h3>Sponsored by <a href="http://www.element14.com/community/community/knode/single-board_computers/next-gen_beaglebone/blog/2013/07/31/beaglebone-black-hands-on-workshop">element14</a></h3>
\r
17 <a href="https://docs.google.com/file/d/0B9D7XdBlve3HeDZwaHVEbmVJYUE/edit?usp=sharing" class="external">Workshop Instructions [PDF]</a>
\r
19 <p>Bill of Materials (BOM) for the workshop with Newark element14 SKUs:
\r
21 <tr><th>Qty</th><th>Desc</th></tr>
\r
22 <tr><td>1</td><td><a href="http://www.newark.com/jsp/search/productdetail.jsp?SKU=65W6016">BeagleBone Black</a></td></tr>
\r
23 <tr><td>1</td><td><a href="http://www.newark.com/jsp/search/productdetail.jsp?SKU=53W6187">Adafruit BeagleBone Black Protoplate</a></td></tr>
\r
24 <tr><td>1</td><td><a href="http://www.newark.com/jsp/search/productdetail.jsp?SKU=53W6131">Adafruit half-size breadboard</a></td></tr>
\r
25 <tr><td>3</td><td><a href="http://www.newark.com/jsp/search/productdetail.jsp?SKU=38K0357">270 Ohm resistor</a></td></tr>
\r
26 <tr><td>3</td><td><a href="http://www.newark.com/jsp/search/productdetail.jsp?SKU=09J9321">Red LED</a></td></tr>
\r
27 <tr><td>1</td><td><a href="http://www.newark.com/jsp/search/productdetail.jsp?SKU=66W7458">Adafruit tactile switch buttons (10 pack)</a></td></tr>
\r
28 <tr><td>10</td><td><a href="http://www.newark.com/jsp/search/productdetail.jsp?SKU=38K0327">1K Ohm resistor</a></td></tr>
\r
29 <tr><td>2</td><td><a href="http://www.newark.com/jsp/search/productdetail.jsp?SKU=19M9015">TMP36 temperature sensor</a></td></tr>
\r
30 <tr><td>1</td><td><a href="http://www.newark.com/jsp/search/productdetail.jsp?SKU=53W6160">BeagleBone sticker</a></td></tr>
\r
33 <h2>Let's start with a quick board tour</h2>
\r
34 <iframe width="640" height="360" src="//www.youtube.com/embed/ciX08ysl6LE" frameborder="0" allowfullscreen></iframe>
\r
35 <h2>Task #1 - Blink an LED</h2>
\r
36 <iframe width="480" height="360" src="//www.youtube.com/embed/d3-_aoOa8SE" frameborder="0" allowfullscreen></iframe>
\r
38 <pre id="task1" class="use-editor">
\r
40 var b = require('bonescript'); // Read library
\r
41 var LED = "P9_14"; // Where the LED is connected
\r
42 var state = 0; // Define the 'state' variable
\r
43 b.pinMode(LED, b.OUTPUT); // Enable the pin
\r
45 // Call 'blink' every 100ms
\r
46 setInterval(blink, 100);
\r
48 // Define the 'blink' function
\r
51 b.analogWrite(LED, state);
\r
53 <button class="dynlink" onclick="demoRun('task1')">run</button>
\r
55 <div style="clear:both;"></div>
\r
56 <h2>Run examples from this web page</h2>
\r
57 <p>If you don't want to type these programs into the Cloud9 IDE, you can connect
\r
58 your board over USB and the box below should turn green. You can then use
\r
59 the run buttons above.
\r
61 <div id='connect-status'></div>
\r
62 <div style="clear:both;"></div></body>
63 <pseudoparent idref="0" prototyperef="Root"/>
64 <http_referer>http://beagleboard.org/makerfairedetroit2013/edit</http_referer>
65 <http_host>beagleboard.org</http_host>
66 <user>pdp7pdp7@gmail.com</user>