<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6843923120789186996</id><updated>2011-12-01T15:05:59.742-05:00</updated><category term='LOGO'/><category term='microworlds'/><category term='robotics'/><category term='Legos'/><category term='cricket'/><category term='TechK-12'/><title type='text'>The Logo Blog</title><subtitle type='html'>A blog about learning with the Logo programming language</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://logoandlearning.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://logoandlearning.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Erik N.</name><uri>http://www.blogger.com/profile/10844866651453037733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_RpZn6kJXWEo/SmPiJvdh_HI/AAAAAAAAAMw/piGhwtCXGJc/S220/erik.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>29</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6843923120789186996.post-7126165425525822912</id><published>2010-06-03T15:27:00.002-04:00</published><updated>2010-06-03T15:27:51.820-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cricket'/><category scheme='http://www.blogger.com/atom/ns#' term='robotics'/><category scheme='http://www.blogger.com/atom/ns#' term='LOGO'/><title type='text'>Displaying messages</title><content type='html'>&lt;span class="Apple-style-span" style="color: #000066; font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;span style="color: red;"&gt;;here is a simple word&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #000066; font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #000066; font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;to sayHi&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #000066; font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="color: #000066; font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px; margin-left: 40px;"&gt;display-bits $00 $00 $76 $06&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #000066; font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;end&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #000066; font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #000066; font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #000066; font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;span style="color: red;"&gt;;this sub-procedure is required whenever you use the display-bits command&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #000066; font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #000066; font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;to display-bits :d1 :d2 :d3 :d4&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #000066; font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #000066; font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;bsend $110&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #000066; font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #000066; font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;bsend 64&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #000066; font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #000066; font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;bsend low-byte :d1&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #000066; font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #000066; font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;bsend low-byte :d2&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #000066; font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #000066; font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;bsend low-byte :d3&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #000066; font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #000066; font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;bsend low-byte :d4&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #000066; font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #000066; font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;end&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6843923120789186996-7126165425525822912?l=logoandlearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://logoandlearning.blogspot.com/feeds/7126165425525822912/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6843923120789186996&amp;postID=7126165425525822912' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/7126165425525822912'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/7126165425525822912'/><link rel='alternate' type='text/html' href='http://logoandlearning.blogspot.com/2010/06/displaying-messages.html' title='Displaying messages'/><author><name>Erik N.</name><uri>http://www.blogger.com/profile/10844866651453037733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_RpZn6kJXWEo/SmPiJvdh_HI/AAAAAAAAAMw/piGhwtCXGJc/S220/erik.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6843923120789186996.post-1872414976551526690</id><published>2010-06-03T15:07:00.000-04:00</published><updated>2010-06-03T15:07:30.720-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cricket'/><category scheme='http://www.blogger.com/atom/ns#' term='microworlds'/><category scheme='http://www.blogger.com/atom/ns#' term='LOGO'/><title type='text'>Commands for Cricket-MicroWorlds communication</title><content type='html'>&lt;ul style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;li style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;span style="font-weight: bold;"&gt;sendmessagetomicroworlds&lt;/span&gt;: This command will send a numerical message to the MicroWorlds program. For example, if you tell the Cricket "&lt;span style="font-family: 'courier new', courier, monospace;"&gt;sendmessagetomicroworlds 1&lt;/span&gt;" the robot will send the number 1 to MicroWorlds.&lt;/li&gt;&lt;/ul&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;ul style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;li style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;span style="font-weight: bold;"&gt;messagefromrobot&lt;/span&gt;: This command reads the message sent from the robot. For example, if you tell MicroWorlds&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px; margin-left: 40px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;if messagefromrobot = 1 [melody1]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;MicroWorlds will play a melody file if it reads the number 1 from the robot. You would want to loop this, as in a button set to forever.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6843923120789186996-1872414976551526690?l=logoandlearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://logoandlearning.blogspot.com/feeds/1872414976551526690/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6843923120789186996&amp;postID=1872414976551526690' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/1872414976551526690'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/1872414976551526690'/><link rel='alternate' type='text/html' href='http://logoandlearning.blogspot.com/2010/06/commands-for-cricket-microworlds.html' title='Commands for Cricket-MicroWorlds communication'/><author><name>Erik N.</name><uri>http://www.blogger.com/profile/10844866651453037733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_RpZn6kJXWEo/SmPiJvdh_HI/AAAAAAAAAMw/piGhwtCXGJc/S220/erik.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6843923120789186996.post-8044666253912626302</id><published>2010-06-03T15:03:00.000-04:00</published><updated>2010-06-03T15:05:23.300-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cricket'/><category scheme='http://www.blogger.com/atom/ns#' term='robotics'/><category scheme='http://www.blogger.com/atom/ns#' term='LOGO'/><title type='text'>Basic Sender and Receiver Procedures</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;For communicating between crickets:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;to send-it&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px; margin-left: 40px;"&gt;send 1&lt;br /&gt;wait 10&lt;br /&gt;send-it&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;end&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;to receive-it&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px; margin-left: 40px;"&gt;waituntil [newir?]&lt;br /&gt;if ir = 1 [beep]&lt;br /&gt;receive-it&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;end&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6843923120789186996-8044666253912626302?l=logoandlearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://logoandlearning.blogspot.com/feeds/8044666253912626302/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6843923120789186996&amp;postID=8044666253912626302' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/8044666253912626302'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/8044666253912626302'/><link rel='alternate' type='text/html' href='http://logoandlearning.blogspot.com/2010/06/basic-sender-and-receiver-procedures.html' title='Basic Sender and Receiver Procedures'/><author><name>Erik N.</name><uri>http://www.blogger.com/profile/10844866651453037733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_RpZn6kJXWEo/SmPiJvdh_HI/AAAAAAAAAMw/piGhwtCXGJc/S220/erik.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6843923120789186996.post-8454660656326667682</id><published>2010-06-03T15:01:00.000-04:00</published><updated>2010-06-03T15:05:23.301-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cricket'/><category scheme='http://www.blogger.com/atom/ns#' term='robotics'/><category scheme='http://www.blogger.com/atom/ns#' term='LOGO'/><title type='text'>Using a Variable to Count</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;Until now you've had to write each new number you want the LED to display as it counts to 10. If you wanted it to count higher this would start to get tedious. To avoid the tedium you can use a variable. It is similar to a variable in algebra in that you use a name that stands for a value that can be changed.&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;Here is how:&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;global [number]&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;span style="color: red; font-family: 'courier new', courier, monospace; font-style: italic;"&gt;;this creates a variable and names it&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br style="font-family: 'courier new', courier, monospace;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br style="font-family: 'courier new', courier, monospace;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;to count&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br style="font-family: 'courier new', courier, monospace;" /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px; margin-left: 40px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;setnumber 1&lt;/span&gt;&amp;nbsp;&lt;span style="color: red; font-family: 'courier new', courier, monospace; font-style: italic;"&gt;;this sets the value of the variable&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px; margin-left: 40px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;repeat 10 [&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px; margin-left: 80px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;display number&lt;/span&gt;&amp;nbsp;&lt;span style="color: red; font-family: 'courier new', courier, monospace; font-style: italic;"&gt;;this displays the current value of the variable&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px; margin-left: 80px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;wait 5&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px; margin-left: 80px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;setnumber number + 1&lt;/span&gt;&amp;nbsp;&lt;span style="color: red; font-family: 'courier new', courier, monospace; font-style: italic;"&gt;;this sets the value again, adding one to the current value&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px; margin-left: 40px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;]&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;end&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6843923120789186996-8454660656326667682?l=logoandlearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://logoandlearning.blogspot.com/feeds/8454660656326667682/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6843923120789186996&amp;postID=8454660656326667682' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/8454660656326667682'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/8454660656326667682'/><link rel='alternate' type='text/html' href='http://logoandlearning.blogspot.com/2010/06/using-variable-to-count.html' title='Using a Variable to Count'/><author><name>Erik N.</name><uri>http://www.blogger.com/profile/10844866651453037733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_RpZn6kJXWEo/SmPiJvdh_HI/AAAAAAAAAMw/piGhwtCXGJc/S220/erik.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6843923120789186996.post-3650279142295395646</id><published>2010-06-03T14:38:00.000-04:00</published><updated>2010-06-03T14:59:42.237-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cricket'/><category scheme='http://www.blogger.com/atom/ns#' term='robotics'/><category scheme='http://www.blogger.com/atom/ns#' term='LOGO'/><title type='text'>What is tail recursion?</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;span style="font-weight: bold;"&gt;Tail recursion&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;is another way to loop commands. With loop or repeat you give the command and then in brackets specify what is to be repeated. Tail recursion is simpler and a bit of a trick. Here's how:&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;to count&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px; margin-left: 40px;"&gt;display 1&lt;br /&gt;wait 5&lt;br /&gt;display 2&lt;br /&gt;wait 5&lt;br /&gt;display 3&lt;br /&gt;wait 5&lt;br /&gt;count&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;end&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;See? If you put the name of the procedure at the end of the procedure itself, it will just keep looping itself!&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6843923120789186996-3650279142295395646?l=logoandlearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://logoandlearning.blogspot.com/feeds/3650279142295395646/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6843923120789186996&amp;postID=3650279142295395646' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/3650279142295395646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/3650279142295395646'/><link rel='alternate' type='text/html' href='http://logoandlearning.blogspot.com/2010/06/what-is-tail-recursion.html' title='What is tail recursion?'/><author><name>Erik N.</name><uri>http://www.blogger.com/profile/10844866651453037733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_RpZn6kJXWEo/SmPiJvdh_HI/AAAAAAAAAMw/piGhwtCXGJc/S220/erik.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6843923120789186996.post-8669902239800322454</id><published>2010-06-03T14:37:00.002-04:00</published><updated>2010-06-03T14:59:42.238-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cricket'/><category scheme='http://www.blogger.com/atom/ns#' term='robotics'/><category scheme='http://www.blogger.com/atom/ns#' term='LOGO'/><title type='text'>Two Ways to Loop</title><content type='html'>&lt;h3 style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 1.1em;"&gt;Two Ways to Loop&lt;/h3&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;There are two commands that can make other commands repeat.&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;span style="font-weight: bold;"&gt;Loop&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;makes the commands repeat indefinitely:&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;to beepForever&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br style="font-family: 'courier new', courier, monospace;" /&gt;&lt;/span&gt;&lt;div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px; margin-left: 40px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;loop [beep wait 2]&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;end&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;span style="font-weight: bold;"&gt;Repeat&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;makes the commands repeat as many times as you tell it to:&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;to beepFiveTimes&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br style="font-family: 'courier new', courier, monospace;" /&gt;&lt;/span&gt;&lt;div style="font-family: 'courier new', courier, monospace; font-size: 16px; margin-left: 40px;"&gt;repeat 5 [beep wait 2]&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;end&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6843923120789186996-8669902239800322454?l=logoandlearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://logoandlearning.blogspot.com/feeds/8669902239800322454/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6843923120789186996&amp;postID=8669902239800322454' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/8669902239800322454'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/8669902239800322454'/><link rel='alternate' type='text/html' href='http://logoandlearning.blogspot.com/2010/06/two-ways-to-loop.html' title='Two Ways to Loop'/><author><name>Erik N.</name><uri>http://www.blogger.com/profile/10844866651453037733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_RpZn6kJXWEo/SmPiJvdh_HI/AAAAAAAAAMw/piGhwtCXGJc/S220/erik.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6843923120789186996.post-8352474975572537524</id><published>2010-06-03T14:36:00.002-04:00</published><updated>2010-06-03T14:59:42.238-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cricket'/><category scheme='http://www.blogger.com/atom/ns#' term='robotics'/><category scheme='http://www.blogger.com/atom/ns#' term='LOGO'/><title type='text'>What if you want the LED display to not display anything?</title><content type='html'>&lt;h2 style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 1.4em;"&gt;Problem&lt;/h2&gt;&lt;div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;The LED display will automatically turn off after a little while if it's idle to conserve battery power. But how can you make it go blank right away?&lt;/div&gt;&lt;h2 style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 1.4em;"&gt;Solution&lt;/h2&gt;&lt;div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;You have to use a procedure called "&lt;span style="font-family: 'courier new', courier, monospace;"&gt;display-bits&lt;/span&gt;." Here it is:&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;to display-bits :d1 :d2 :d3 :d4&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br style="font-family: 'courier new', courier, monospace;" /&gt;&lt;/span&gt;&lt;div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px; margin-left: 40px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;bsend $110&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px; margin-left: 40px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;bsend 64&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace;" /&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;bsend low-byte :d1&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace;" /&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;bsend low-byte :d2&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace;" /&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;bsend low-byte :d3&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace;" /&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;bsend low-byte :d4&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;end&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;Bits are the individual bars that can light up in each of the four spaces. D1, d2, d3, and d4 stand for the four spaces. To make all of the bits turn off, you would send the command "&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;display-bits $00 $00 $00 $00&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;."&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;h2 style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 1.4em;"&gt;Applying the solution&lt;/h2&gt;&lt;div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;If you only sent this command, the Cricket wouldn't know how to "display-bits," so here is an example of how you use this command. Notice that you have to include the "display-bits" procedure because it's acting as a sub-procedure to "count." The "count" procedure will make it count 1, 2, then go blank.&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;to count&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br style="font-family: 'courier new', courier, monospace;" /&gt;&lt;/span&gt;&lt;div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px; margin-left: 40px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;display 1&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace;" /&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;wait 5&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace;" /&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;display 2&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace;" /&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;wait 5&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace;" /&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;display-bits $00 $00 $00 $00&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;end&lt;br /&gt;&lt;br /&gt;to display-bits :d1 :d2 :d3 :d4&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br style="font-family: 'courier new', courier, monospace;" /&gt;&lt;/span&gt;&lt;div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px; margin-left: 40px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;bsend $110&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace;" /&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;bsend 64&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace;" /&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;bsend low-byte :d1&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace;" /&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;bsend low-byte :d2&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace;" /&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;bsend low-byte :d3&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace;" /&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;bsend low-byte :d4&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;end&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6843923120789186996-8352474975572537524?l=logoandlearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://logoandlearning.blogspot.com/feeds/8352474975572537524/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6843923120789186996&amp;postID=8352474975572537524' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/8352474975572537524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/8352474975572537524'/><link rel='alternate' type='text/html' href='http://logoandlearning.blogspot.com/2010/06/what-if-you-want-led-display-to-not.html' title='What if you want the LED display to not display anything?'/><author><name>Erik N.</name><uri>http://www.blogger.com/profile/10844866651453037733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_RpZn6kJXWEo/SmPiJvdh_HI/AAAAAAAAAMw/piGhwtCXGJc/S220/erik.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6843923120789186996.post-6927661452435407254</id><published>2010-06-03T14:35:00.003-04:00</published><updated>2010-06-03T14:59:16.844-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cricket'/><category scheme='http://www.blogger.com/atom/ns#' term='robotics'/><category scheme='http://www.blogger.com/atom/ns#' term='LOGO'/><title type='text'>To Display Numbers</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;The command that makes the LED display numbers is "&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;display&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;".&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;Before the Cricket can access this command you will probably have to do the following:&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;ol style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;li style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;Make sure the procedures window ("Cricket Logo Programs") is empty.&lt;/li&gt;&lt;li style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;Click the download button to clear out the Cricket's memory.&lt;/li&gt;&lt;li style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;Now type "&lt;span style="font-family: 'courier new', courier, monospace;"&gt;display 1234&lt;/span&gt;" in the command center and hit enter.&lt;/li&gt;&lt;li style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;If the LED display shows the number 1234 it is now working.&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6843923120789186996-6927661452435407254?l=logoandlearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://logoandlearning.blogspot.com/feeds/6927661452435407254/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6843923120789186996&amp;postID=6927661452435407254' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/6927661452435407254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/6927661452435407254'/><link rel='alternate' type='text/html' href='http://logoandlearning.blogspot.com/2010/06/to-display-numbers.html' title='To Display Numbers'/><author><name>Erik N.</name><uri>http://www.blogger.com/profile/10844866651453037733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_RpZn6kJXWEo/SmPiJvdh_HI/AAAAAAAAAMw/piGhwtCXGJc/S220/erik.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6843923120789186996.post-2512807250445842549</id><published>2010-06-03T14:33:00.000-04:00</published><updated>2010-06-03T14:33:06.955-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cricket'/><category scheme='http://www.blogger.com/atom/ns#' term='robotics'/><category scheme='http://www.blogger.com/atom/ns#' term='LOGO'/><title type='text'>What is a conditional statement?</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;What is a conditional statement?&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;span style="font-weight: bold;"&gt;It's when you tell your robot to do something only if a certain condition is true.&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;If the condition is not true, the robot won't do it.&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;We use conditional statements all the time in real life, like when we say, for example, "If they are serving fish for lunch, I'm going to the salad bar."&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;In Logo, this would look something like this:&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px; margin-left: 40px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;to eat.lunch&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace; font-weight: bold;" /&gt;&lt;div style="margin-left: 40px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;if fish&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace; font-weight: bold;" /&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;[eat saladbar]&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;end&lt;/span&gt;&lt;br /&gt;(Note: I don't have anything against fish.)&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;Your robot can't eat, though, so let's see what it could do as a result of a conditional statement.&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;If you want your robot to start driving if you press a switch, this will do it:&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px; margin-left: 40px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;to drive&lt;/span&gt;&lt;br /&gt;&lt;div style="margin-left: 40px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;if switcha&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace; font-weight: bold;" /&gt;&lt;div style="margin-left: 40px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;[ab, onfor 20]&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;end&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;Notice where the brackets go! They enclose the 'if true' command like bread on a sandwich.&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;If you want your robot to stop driving if you press a switch, this will do it:&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px; margin-left: 40px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;to stop.driving&lt;/span&gt;&lt;br /&gt;&lt;div style="margin-left: 40px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;ab, on&lt;/span&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;if switcha&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace; font-weight: bold;" /&gt;&lt;div style="margin-left: 40px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;[ab, off]&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;end&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;Well, actually, I kind of lied. The two examples above won't really work because they check if the switch is pressed only once. We need it to check continuously so it will carry out the commands whenever we press the switch. So we have to "loop" the procedure, like this:&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;&lt;br /&gt;to drive&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px; margin-left: 40px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;loop [&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px; margin-left: 40px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;if switcha&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px; margin-left: 40px;"&gt;&lt;div style="margin-left: 40px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;[ab, onfor 20]&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;end&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;This example will keep checking whether the switch is pressed because loop makes the part inside the brackets repeat indefinitely.&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;span style="font-weight: bold;"&gt;Here's how you can use a switch to control your robot:&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;Use a switch to start your robot driving on its road course. First plug a switch into sensor port 'a'.&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;You can keep your program the way it is and just wrap a conditional statement around it.&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px; margin-left: 40px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;to start&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace; font-weight: bold;" /&gt;&lt;div style="margin-left: 40px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;loop [&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace; font-weight: bold;" /&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;if switcha&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace; font-weight: bold;" /&gt;&lt;div style="margin-left: 40px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;[drive]&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;]&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;end&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace; font-weight: bold;" /&gt;&lt;br style="font-family: 'courier new', courier, monospace; font-weight: bold;" /&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;to drive&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace; font-weight: bold;" /&gt;&lt;div style="margin-left: 40px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;ab, thisway&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace; font-weight: bold;" /&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;ab, on&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace; font-weight: bold;" /&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;wait 20&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace; font-weight: bold;" /&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;etc, etc,&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;end&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;Now be sure to put the name 'start' in the 'run this' window so when you press the run button on the robot, it will start the loop instead of just skipping the loop and going straight to the 'drive' procedure.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6843923120789186996-2512807250445842549?l=logoandlearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://logoandlearning.blogspot.com/feeds/2512807250445842549/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6843923120789186996&amp;postID=2512807250445842549' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/2512807250445842549'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/2512807250445842549'/><link rel='alternate' type='text/html' href='http://logoandlearning.blogspot.com/2010/06/what-is-conditional-statement.html' title='What is a conditional statement?'/><author><name>Erik N.</name><uri>http://www.blogger.com/profile/10844866651453037733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_RpZn6kJXWEo/SmPiJvdh_HI/AAAAAAAAAMw/piGhwtCXGJc/S220/erik.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6843923120789186996.post-5749390109497460762</id><published>2010-06-03T14:31:00.002-04:00</published><updated>2010-06-03T14:31:50.136-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cricket'/><category scheme='http://www.blogger.com/atom/ns#' term='robotics'/><category scheme='http://www.blogger.com/atom/ns#' term='LOGO'/><title type='text'>Using Sub-procedures</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;Sub-procedures are separate procedures in your program that are called upon in the main procedure. Here is what one looks like:&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px; margin-left: 40px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;to drive&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace; font-weight: bold;" /&gt;&lt;div style="margin-left: 40px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;ab, thisway&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace; font-weight: bold;" /&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;ab, on&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace; font-weight: bold;" /&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;wait 20&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace; font-weight: bold;" /&gt;&lt;span style="color: #cc0000; font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;&lt;span style="color: black;"&gt;turnright&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #cc0000; font-family: 'courier new', courier, monospace; font-style: italic;"&gt;;sub-procedure is being called upon here&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace; font-weight: bold;" /&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;wait 30&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;end&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace; font-weight: bold;" /&gt;&lt;br style="font-family: 'courier new', courier, monospace; font-weight: bold;" /&gt;&lt;span style="color: #cc0000; font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;&lt;span style="color: black;"&gt;to turnright&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #cc0000; font-family: 'courier new', courier, monospace; font-style: italic;"&gt;;here is the sub-procedure&lt;/span&gt;&lt;br style="color: #cc0000; font-family: 'courier new', courier, monospace; font-weight: bold;" /&gt;&lt;div style="color: black; margin-left: 40px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;b, off&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace; font-weight: bold;" /&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;wait 10&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace; font-weight: bold;" /&gt;&lt;span style="font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;b, on&lt;/span&gt;&lt;/div&gt;&lt;span style="color: black; font-family: 'courier new', courier, monospace; font-weight: bold;"&gt;end&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;So "turnright" is a sub-procedure of "drive." "Drive" is the main procedure. In other programming languages a sub-procedure is called a&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;span style="font-weight: bold;"&gt;function&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;but it basically works the same.&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;The benefit of using a sub-procedure is that it makes your program much more efficient and can save you a lot of work.&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;How will you use this in your program?&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;In your procedures window, add a procedure called "turnright" and type in the commands that will make your car turn right. Do the same to add another procedure called "turnleft." In your main procedure every time there is a right turn, remove those commands and just type "turnright." Do the same for left turns. You will have to test your program to make sure the turnright and turnleft sub-procedures turn the correct amount, but all of the turns are right angles, so if it works once it should work for the rest.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6843923120789186996-5749390109497460762?l=logoandlearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://logoandlearning.blogspot.com/feeds/5749390109497460762/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6843923120789186996&amp;postID=5749390109497460762' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/5749390109497460762'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/5749390109497460762'/><link rel='alternate' type='text/html' href='http://logoandlearning.blogspot.com/2010/06/using-sub-procedures.html' title='Using Sub-procedures'/><author><name>Erik N.</name><uri>http://www.blogger.com/profile/10844866651453037733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_RpZn6kJXWEo/SmPiJvdh_HI/AAAAAAAAAMw/piGhwtCXGJc/S220/erik.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6843923120789186996.post-5832844362877190532</id><published>2010-06-03T14:30:00.002-04:00</published><updated>2010-06-03T14:30:39.084-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cricket'/><category scheme='http://www.blogger.com/atom/ns#' term='robotics'/><category scheme='http://www.blogger.com/atom/ns#' term='LOGO'/><title type='text'>Your Robot Follows Commands in a Sequence</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;How is this:&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px; margin-left: 40px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;to drive&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace;" /&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;beep&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace;" /&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;ab, on&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace;" /&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;wait 30&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace;" /&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;ab, off&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace;" /&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;end&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;different from this?&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px; margin-left: 40px;"&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;to drive&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace;" /&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;&lt;/span&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;ab, on&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace;" /&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;wait 30&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;ab, off&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;beep&lt;/span&gt;&lt;br style="font-family: 'courier new', courier, monospace;" /&gt;&lt;span style="font-family: 'courier new', courier, monospace;"&gt;end&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;The first procedure beeps, turns motors a and b on, waits 3 seconds, and turns motors a and b off. The second procedure beeps&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;span style="font-weight: bold;"&gt;after&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;the motors turn on and off.&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;What is the rule the Cricket is following?&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 16px;"&gt;&lt;span style="font-weight: bold;"&gt;The Cricket will follow the sequence of commands from the top of the procedure to the bottom.&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6843923120789186996-5832844362877190532?l=logoandlearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://logoandlearning.blogspot.com/feeds/5832844362877190532/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6843923120789186996&amp;postID=5832844362877190532' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/5832844362877190532'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/5832844362877190532'/><link rel='alternate' type='text/html' href='http://logoandlearning.blogspot.com/2010/06/your-robot-follows-commands-in-sequence.html' title='Your Robot Follows Commands in a Sequence'/><author><name>Erik N.</name><uri>http://www.blogger.com/profile/10844866651453037733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_RpZn6kJXWEo/SmPiJvdh_HI/AAAAAAAAAMw/piGhwtCXGJc/S220/erik.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6843923120789186996.post-2341037801536140364</id><published>2009-12-21T22:24:00.004-05:00</published><updated>2009-12-21T22:31:47.400-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cricket'/><category scheme='http://www.blogger.com/atom/ns#' term='robotics'/><category scheme='http://www.blogger.com/atom/ns#' term='LOGO'/><title type='text'>Switch-Operated Elevator</title><content type='html'>Two of my 9th grade students created this elevator. It raises up at the press of a switch, then waits for another press before descending. The motors also gear down for increased torque.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;object width="320" height="266" class="BLOG_video_class" id="BLOG_video-3a8ae6202f9bdf0e" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;&lt;param name="movie" value="http://www.youtube.com/get_player"&gt;&lt;param name="bgcolor" value="#FFFFFF"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="flashvars" value="flvurl=http://v15.nonxt4.googlevideo.com/videoplayback?id%3D3a8ae6202f9bdf0e%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1330005127%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D119D7BD34527D721121A9CCA0BF86BDDCAC66549.240DC7B803DEBE0EC2D8873F7A68A866B7F43A5%26key%3Dck1&amp;amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D3a8ae6202f9bdf0e%26offsetms%3D5000%26itag%3Dw160%26sigh%3DHNp-fRLBZXlYQrE-f_w4IZgf494&amp;amp;autoplay=0&amp;amp;ps=blogger"&gt;&lt;embed src="http://www.youtube.com/get_player" type="application/x-shockwave-flash"width="320" height="266" bgcolor="#FFFFFF"flashvars="flvurl=http://v15.nonxt4.googlevideo.com/videoplayback?id%3D3a8ae6202f9bdf0e%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1330005127%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D119D7BD34527D721121A9CCA0BF86BDDCAC66549.240DC7B803DEBE0EC2D8873F7A68A866B7F43A5%26key%3Dck1&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D3a8ae6202f9bdf0e%26offsetms%3D5000%26itag%3Dw160%26sigh%3DHNp-fRLBZXlYQrE-f_w4IZgf494&amp;autoplay=0&amp;ps=blogger"allowFullScreen="true" /&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6843923120789186996-2341037801536140364?l=logoandlearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='enclosure' type='video/mp4' href='http://www.blogger.com/video-play.mp4?contentId=3a8ae6202f9bdf0e&amp;type=video%2Fmp4' length='0'/><link rel='replies' type='application/atom+xml' href='http://logoandlearning.blogspot.com/feeds/2341037801536140364/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6843923120789186996&amp;postID=2341037801536140364' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/2341037801536140364'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/2341037801536140364'/><link rel='alternate' type='text/html' href='http://logoandlearning.blogspot.com/2009/12/switch-operated-elevator.html' title='Switch-Operated Elevator'/><author><name>Erik N.</name><uri>http://www.blogger.com/profile/10844866651453037733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_RpZn6kJXWEo/SmPiJvdh_HI/AAAAAAAAAMw/piGhwtCXGJc/S220/erik.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6843923120789186996.post-4633056891051146225</id><published>2009-12-12T08:40:00.002-05:00</published><updated>2009-12-12T08:42:47.888-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cricket'/><category scheme='http://www.blogger.com/atom/ns#' term='robotics'/><category scheme='http://www.blogger.com/atom/ns#' term='LOGO'/><title type='text'>Ways to Program a Loop</title><content type='html'>If you need a switch to work repeatedly when you run its program, you need to loop it. Here are some ways depending on exactly how you want them to work:&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; color: rgb(0, 0, 102); "&gt;;this strategy repeats indefinitely&lt;br /&gt;to main&lt;br /&gt;&lt;div style="margin-left: 40px; "&gt;loop&lt;br /&gt;[&lt;span style="font-style: italic; "&gt;commands to loop&lt;/span&gt;]&lt;br /&gt;&lt;/div&gt;end&lt;br /&gt;&lt;br /&gt;;this strategy makes the program run itself indefinitely&lt;br /&gt;to main&lt;br /&gt;&lt;div style="margin-left: 40px; "&gt;&lt;span style="font-style: italic; "&gt;commands to loop&lt;/span&gt;&lt;br /&gt;main&lt;br /&gt;&lt;/div&gt;end&lt;br /&gt;&lt;br /&gt;;this strategy repeats the commands many times&lt;br /&gt;to main&lt;br /&gt;&lt;div style="margin-left: 40px; "&gt;repeat 100&lt;br /&gt;[&lt;span style="font-style: italic; "&gt;commands to loop&lt;/span&gt;]&lt;br /&gt;&lt;/div&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6843923120789186996-4633056891051146225?l=logoandlearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://logoandlearning.blogspot.com/feeds/4633056891051146225/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6843923120789186996&amp;postID=4633056891051146225' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/4633056891051146225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/4633056891051146225'/><link rel='alternate' type='text/html' href='http://logoandlearning.blogspot.com/2009/12/ways-to-program-loop.html' title='Ways to Program a Loop'/><author><name>Erik N.</name><uri>http://www.blogger.com/profile/10844866651453037733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_RpZn6kJXWEo/SmPiJvdh_HI/AAAAAAAAAMw/piGhwtCXGJc/S220/erik.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6843923120789186996.post-5573376373716461569</id><published>2009-12-12T08:39:00.000-05:00</published><updated>2009-12-12T08:40:54.452-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cricket'/><category scheme='http://www.blogger.com/atom/ns#' term='robotics'/><category scheme='http://www.blogger.com/atom/ns#' term='LOGO'/><title type='text'>Many Ways to Program Switches</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; color: rgb(0, 0, 102); "&gt;;simplest way, one switch&lt;br /&gt;to go&lt;br /&gt;&lt;div style="margin-left: 40px; "&gt;waituntil [switcha = 1]&lt;br /&gt;&lt;span style="font-style: italic; "&gt;motor commands&lt;/span&gt;&lt;br /&gt;waituntil [switcha = 1]&lt;br /&gt;&lt;span style="font-style: italic; "&gt;more motor commands&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;end&lt;br /&gt;&lt;br /&gt;;another way, one switch&lt;br /&gt;to go&lt;br /&gt;&lt;div style="margin-left: 40px; "&gt;if switcha = 1&lt;br /&gt;[&lt;span style="font-style: italic; "&gt;motor commands&lt;/span&gt;]&lt;br /&gt;if switcha = 0&lt;br /&gt;[&lt;span style="font-style: italic; "&gt;more motor commands&lt;/span&gt;]&lt;br /&gt;&lt;/div&gt;end&lt;br /&gt;&lt;br /&gt;;another way, one switch&lt;br /&gt;to go&lt;br /&gt;&lt;div style="margin-left: 40px; "&gt;ifelse switcha = 1&lt;br /&gt;[&lt;span style="font-style: italic; "&gt;motor commands&lt;/span&gt;]&lt;br /&gt;[&lt;span style="font-style: italic; "&gt;more motor commands&lt;/span&gt;]&lt;br /&gt;&lt;/div&gt;end&lt;br /&gt;&lt;br /&gt;;two switches!&lt;br /&gt;to go&lt;br /&gt;&lt;div style="margin-left: 40px; "&gt;if switcha = 1&lt;br /&gt;[&lt;span style="font-style: italic; "&gt;motor commands&lt;/span&gt;]&lt;br /&gt;if switchb = 1&lt;br /&gt;[&lt;span style="font-style: italic; "&gt;more motor commands&lt;/span&gt;]&lt;br /&gt;&lt;/div&gt;end&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6843923120789186996-5573376373716461569?l=logoandlearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://logoandlearning.blogspot.com/feeds/5573376373716461569/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6843923120789186996&amp;postID=5573376373716461569' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/5573376373716461569'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/5573376373716461569'/><link rel='alternate' type='text/html' href='http://logoandlearning.blogspot.com/2009/12/many-ways-to-program-switches.html' title='Many Ways to Program Switches'/><author><name>Erik N.</name><uri>http://www.blogger.com/profile/10844866651453037733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_RpZn6kJXWEo/SmPiJvdh_HI/AAAAAAAAAMw/piGhwtCXGJc/S220/erik.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6843923120789186996.post-9116395231156608376</id><published>2009-11-17T21:40:00.002-05:00</published><updated>2009-11-17T21:45:30.211-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='robotics'/><category scheme='http://www.blogger.com/atom/ns#' term='LOGO'/><title type='text'>Programming a Switch</title><content type='html'>I've been working with RobotC for a bit now and I've come to realize something about the way switches can be programmed in Logo. Logo allows you to write this implied boolean equation with &lt;span style="font-style: italic;"&gt;if switcha [a, on] &lt;/span&gt;or &lt;span style="font-style: italic;"&gt;if not swticha [a, off]&lt;/span&gt;, while boolean equations are true or false or 0 or 1 in other programming languages. So I tried programming a switch with &lt;span style="font-style: italic;"&gt;if switcha = 1 [a, on]&lt;/span&gt; and it worked just as well. I much prefer that approach because of its similarity to most other programming languages.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6843923120789186996-9116395231156608376?l=logoandlearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://logoandlearning.blogspot.com/feeds/9116395231156608376/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6843923120789186996&amp;postID=9116395231156608376' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/9116395231156608376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/9116395231156608376'/><link rel='alternate' type='text/html' href='http://logoandlearning.blogspot.com/2009/11/programming-switch.html' title='Programming a Switch'/><author><name>Erik N.</name><uri>http://www.blogger.com/profile/10844866651453037733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_RpZn6kJXWEo/SmPiJvdh_HI/AAAAAAAAAMw/piGhwtCXGJc/S220/erik.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6843923120789186996.post-3102477013358472781</id><published>2009-11-17T21:36:00.001-05:00</published><updated>2009-11-17T21:40:32.077-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cricket'/><category scheme='http://www.blogger.com/atom/ns#' term='robotics'/><title type='text'>Learning Through Discovery</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_RpZn6kJXWEo/SwNeAL8KkrI/AAAAAAAAAN8/7HD68IwMosk/s1600/cricketLogo.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 200px; height: 186px;" src="http://4.bp.blogspot.com/_RpZn6kJXWEo/SwNeAL8KkrI/AAAAAAAAAN8/7HD68IwMosk/s200/cricketLogo.jpg" alt="" id="BLOGGER_PHOTO_ID_5405267335072879282" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;One of my 9th grade students was making an important discovery, an instance of self-guided learning with the cricket logo console. She had 3 separate procedures that controlled different aspects of her dj robot--one spun the turntables, one set the dj's arms in motion, and one displayed a message on the LED display. She hadn't been taught how to crate a main procedure that calls all of the other three, so she was typing the name of each in the command center and beaming them to the cricket in turn to make them start up individually. I thought that was a very inventive way to get it to do all three of its procedures without knowing the 'right' way. Of course when I showed her the usefulness of a main procedure she got it right away because it was immediately useful.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6843923120789186996-3102477013358472781?l=logoandlearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://logoandlearning.blogspot.com/feeds/3102477013358472781/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6843923120789186996&amp;postID=3102477013358472781' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/3102477013358472781'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/3102477013358472781'/><link rel='alternate' type='text/html' href='http://logoandlearning.blogspot.com/2009/11/learning-through-discovery.html' title='Learning Through Discovery'/><author><name>Erik N.</name><uri>http://www.blogger.com/profile/10844866651453037733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_RpZn6kJXWEo/SmPiJvdh_HI/AAAAAAAAAMw/piGhwtCXGJc/S220/erik.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_RpZn6kJXWEo/SwNeAL8KkrI/AAAAAAAAAN8/7HD68IwMosk/s72-c/cricketLogo.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6843923120789186996.post-2982969452534630425</id><published>2009-07-27T14:50:00.007-04:00</published><updated>2009-07-27T15:17:26.489-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cricket'/><category scheme='http://www.blogger.com/atom/ns#' term='TechK-12'/><category scheme='http://www.blogger.com/atom/ns#' term='robotics'/><title type='text'>Do It Yourself video</title><content type='html'>Here is my final (for now) version of my technology video. It focuses on encouraging my students to experiment with technology, not to be afraid to break it.&lt;div&gt;&lt;object width="320" height="266" class="BLOG_video_class" id="BLOG_video-802f4767d813b263" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;&lt;param name="movie" value="http://www.youtube.com/get_player"&gt;&lt;param name="bgcolor" value="#FFFFFF"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="flashvars" value="flvurl=http://v7.nonxt8.googlevideo.com/videoplayback?id%3D802f4767d813b263%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1330005127%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D54AED5F96855F8FA650CCBC2A0CB65CF6C385F55.6A61336E343CC47EFB2A726C58BC357253B72012%26key%3Dck1&amp;amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D802f4767d813b263%26offsetms%3D5000%26itag%3Dw160%26sigh%3DBGypKZzAP9VsIeHWheWmgWYZlGM&amp;amp;autoplay=0&amp;amp;ps=blogger"&gt;&lt;embed src="http://www.youtube.com/get_player" type="application/x-shockwave-flash"width="320" height="266" bgcolor="#FFFFFF"flashvars="flvurl=http://v7.nonxt8.googlevideo.com/videoplayback?id%3D802f4767d813b263%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1330005127%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D54AED5F96855F8FA650CCBC2A0CB65CF6C385F55.6A61336E343CC47EFB2A726C58BC357253B72012%26key%3Dck1&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D802f4767d813b263%26offsetms%3D5000%26itag%3Dw160%26sigh%3DBGypKZzAP9VsIeHWheWmgWYZlGM&amp;autoplay=0&amp;ps=blogger"allowFullScreen="true" /&gt;&lt;/object&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6843923120789186996-2982969452534630425?l=logoandlearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='enclosure' type='video/mp4' href='http://www.blogger.com/video-play.mp4?contentId=802f4767d813b263&amp;type=video%2Fmp4' length='0'/><link rel='replies' type='application/atom+xml' href='http://logoandlearning.blogspot.com/feeds/2982969452534630425/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6843923120789186996&amp;postID=2982969452534630425' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/2982969452534630425'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/2982969452534630425'/><link rel='alternate' type='text/html' href='http://logoandlearning.blogspot.com/2009/07/do-it-yourself-video.html' title='Do It Yourself video'/><author><name>Erik N.</name><uri>http://www.blogger.com/profile/10844866651453037733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_RpZn6kJXWEo/SmPiJvdh_HI/AAAAAAAAAMw/piGhwtCXGJc/S220/erik.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6843923120789186996.post-3458105048264939543</id><published>2009-07-16T14:14:00.010-04:00</published><updated>2009-08-03T17:41:28.495-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TechK-12'/><category scheme='http://www.blogger.com/atom/ns#' term='robotics'/><category scheme='http://www.blogger.com/atom/ns#' term='Legos'/><title type='text'>Building Better Robots Podcast No 1</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_RpZn6kJXWEo/Sl_OvverlXI/AAAAAAAAAMk/-iyMfn964j4/s1600-h/logo.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 200px; height: 200px;" src="http://3.bp.blogspot.com/_RpZn6kJXWEo/Sl_OvverlXI/AAAAAAAAAMk/-iyMfn964j4/s200/logo.jpg" alt="" id="BLOGGER_PHOTO_ID_5359229401188504946" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;Welcome to the first episode of the Building Better Robots podcast. This podcast is designed to supplement my 9th grade robotics class in which we are building and programming Super Cricket Robots with Legos and the Logo programming language. But even if you're not taking the class, you might get some good tips out of it. In this episode I'll be talking about how to get the most out of this podcast and I'll introduce some of the specific topics coming up.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;Thanks to Flickr user &lt;a href="http://www.flickr.com/photos/zoologist/21317262/"&gt;Brandy Shaun&lt;/a&gt; for the Lego photo, Flickr user &lt;a href="http://www.flickr.com/photos/nifmus/2576506229/"&gt;Steve Kay&lt;/a&gt; for the Optimus Prime photo, and the music is brought to you by Elysis Raudenbausch, &lt;a href="http://commons.wikimedia.org/wiki/File:Elysis-breakdown_easy.ogg" style="color: rgb(68, 136, 136);"&gt;Breakdown Easy&lt;/a&gt;, available on Wikimedia Commons.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6843923120789186996-3458105048264939543?l=logoandlearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://openblackboard.com/ErikNauman/k12/audio/bbr.m4a' title='Building Better Robots Podcast No 1'/><link rel='enclosure' type='audio/mpeg' href='http://openblackboard.com/ErikNauman/k12/audio/bbr.m4a' length='0'/><link rel='replies' type='application/atom+xml' href='http://logoandlearning.blogspot.com/feeds/3458105048264939543/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6843923120789186996&amp;postID=3458105048264939543' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/3458105048264939543'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/3458105048264939543'/><link rel='alternate' type='text/html' href='http://logoandlearning.blogspot.com/2009/07/building-better-robots-podcast-no-1.html' title='Building Better Robots Podcast No 1'/><author><name>Erik N.</name><uri>http://www.blogger.com/profile/10844866651453037733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_RpZn6kJXWEo/SmPiJvdh_HI/AAAAAAAAAMw/piGhwtCXGJc/S220/erik.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_RpZn6kJXWEo/Sl_OvverlXI/AAAAAAAAAMk/-iyMfn964j4/s72-c/logo.jpg' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6843923120789186996.post-4586451283982603726</id><published>2009-02-13T21:32:00.003-05:00</published><updated>2009-02-13T21:40:51.503-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cricket'/><title type='text'>Cricket timer</title><content type='html'>Here's a simple program to make a timer with an LED. A couple of my 9th grade students applied and modified my base program a bit to get theirs to work with a switch you can see in the video.&lt;br /&gt;&lt;br /&gt;&lt;object type="application/x-shockwave-flash" data="http://www.flickr.com/apps/video/stewart.swf?v=67090" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" height="300" width="400"&gt; &lt;param name="flashvars" value="intl_lang=en-us&amp;amp;photo_secret=b62bebebe0&amp;amp;photo_id=3200923473"&gt; &lt;param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=67090"&gt; &lt;param name="bgcolor" value="#000000"&gt; &lt;param name="allowFullScreen" value="true"&gt;&lt;embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=67090" bgcolor="#000000" allowfullscreen="true" flashvars="intl_lang=en-us&amp;amp;photo_secret=b62bebebe0&amp;amp;photo_id=3200923473" height="300" width="400"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;global [number]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;to start&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    loop [&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    if switcha [&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    count&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    ]&lt;br /&gt;]&lt;br /&gt;end&lt;br /&gt;&lt;br /&gt;to count&lt;br /&gt;    setnumber 1&lt;br /&gt;    repeat 60 [&lt;br /&gt;    display number&lt;br /&gt;    wait 10&lt;br /&gt;    setnumber number + 1&lt;br /&gt;    if switcha [wait 5 stop]&lt;br /&gt;    ]&lt;br /&gt;end &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6843923120789186996-4586451283982603726?l=logoandlearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://logoandlearning.blogspot.com/feeds/4586451283982603726/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6843923120789186996&amp;postID=4586451283982603726' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/4586451283982603726'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/4586451283982603726'/><link rel='alternate' type='text/html' href='http://logoandlearning.blogspot.com/2009/02/cricket-timer.html' title='Cricket timer'/><author><name>Erik N.</name><uri>http://www.blogger.com/profile/10844866651453037733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_RpZn6kJXWEo/SmPiJvdh_HI/AAAAAAAAAMw/piGhwtCXGJc/S220/erik.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6843923120789186996.post-8460939433549097999</id><published>2009-01-11T01:01:00.003-05:00</published><updated>2009-01-11T01:07:39.308-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='robotics'/><title type='text'>Giving up on Jackal</title><content type='html'>My 9th grade robotics class has really liked the &lt;a href="http://logoandlearning.blogspot.com/2008/08/syntax-coloring-for-logo.html"&gt;syntax coloring Jackal&lt;/a&gt; provides for our cricket microcomputers. But after a lot of frustration I've abandoned Jackal in favor of Cricket Logo. CL is much more stable, especially transmitting data to the cricket. We now get very few errors, and this was driving my students crazy with Jackal. As a result we're really working on properly indenting programs as a way to make them more readable.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6843923120789186996-8460939433549097999?l=logoandlearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://logoandlearning.blogspot.com/feeds/8460939433549097999/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6843923120789186996&amp;postID=8460939433549097999' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/8460939433549097999'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/8460939433549097999'/><link rel='alternate' type='text/html' href='http://logoandlearning.blogspot.com/2009/01/giving-up-on-jackal.html' title='Giving up on Jackal'/><author><name>Erik N.</name><uri>http://www.blogger.com/profile/10844866651453037733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_RpZn6kJXWEo/SmPiJvdh_HI/AAAAAAAAAMw/piGhwtCXGJc/S220/erik.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6843923120789186996.post-3104038403392394862</id><published>2008-10-25T23:28:00.004-04:00</published><updated>2008-10-25T23:56:21.147-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='LOGO'/><title type='text'>A better way to teach making a timer</title><content type='html'>Last year I taught my 6th graders how to make a timer for an application we were making by using all of the primitives available. So I showed them how to use resett and print the time every. second with 'timer / 10'. I missed a great opportunity that I'm finally talking advantage of. In one fell swoop I can teach them how Logo can do math, loop, and use variables. Here's the model for the timer we're working with now:&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;to start-timer&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;make "seconds "0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;repeat 60&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[time, pr :seconds&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;wait 10&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ct&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;make "seconds :seconds + 1]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;end&lt;br /&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-family: georgia;"&gt;With this approach my students this year are getting what were doing, much better than last year.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6843923120789186996-3104038403392394862?l=logoandlearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://logoandlearning.blogspot.com/feeds/3104038403392394862/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6843923120789186996&amp;postID=3104038403392394862' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/3104038403392394862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/3104038403392394862'/><link rel='alternate' type='text/html' href='http://logoandlearning.blogspot.com/2008/10/better-way-to-teach-making-timer.html' title='A better way to teach making a timer'/><author><name>Erik N.</name><uri>http://www.blogger.com/profile/10844866651453037733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_RpZn6kJXWEo/SmPiJvdh_HI/AAAAAAAAAMw/piGhwtCXGJc/S220/erik.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6843923120789186996.post-3613994270823697611</id><published>2008-10-22T00:54:00.002-04:00</published><updated>2008-10-22T01:11:58.332-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='LOGO'/><title type='text'>Teaching is a political act</title><content type='html'>I came across &lt;a href="http://eric.ed.gov/ERICWebPortal/custom/portlets/recordDetails/detailmini.jsp?_nfpb=true&amp;amp;_&amp;amp;ERICExtSearch_SearchValue_0=ED409004&amp;amp;ERICExtSearch_SearchType_0=no&amp;amp;accno=ED409004"&gt;this paper&lt;/a&gt; that traces the history of LOGO in terms of its function in most schools. Agalianos argues that, while the creators of LOGO envisioned it as a tool for children and teachers to subvert the institutional controls on learning and teaching by inventing their own individualized math curricula, it was introduced into schools in the 80s at a time when the dominant institutional philosophy was swinging from relatively progressive to conservative. In this "back to basics" climate, which continues today, LOGO wasn't rejected, but integrated into the standards and required as its own subject separate from the rest of the curriculum. Its function has ended up in many schools as no more than a "turtle graphics" program, a fun environment for kids to practice problem-solving skills. The tension between the possibilities inherent in LOGO and the constraints of the over-scheduled and fragmented school environment has been a preoccupation of mine since I began teaching technology. What is the purpose and larger context of what I'm teaching? For now I'll just keep asking.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6843923120789186996-3613994270823697611?l=logoandlearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://logoandlearning.blogspot.com/feeds/3613994270823697611/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6843923120789186996&amp;postID=3613994270823697611' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/3613994270823697611'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/3613994270823697611'/><link rel='alternate' type='text/html' href='http://logoandlearning.blogspot.com/2008/10/teaching-is-political-act.html' title='Teaching is a political act'/><author><name>Erik N.</name><uri>http://www.blogger.com/profile/10844866651453037733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_RpZn6kJXWEo/SmPiJvdh_HI/AAAAAAAAAMw/piGhwtCXGJc/S220/erik.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6843923120789186996.post-1196204672466724107</id><published>2008-10-18T01:11:00.002-04:00</published><updated>2008-10-18T01:15:19.784-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='microworlds'/><title type='text'>Logo Word Counter</title><content type='html'>&lt;span style="font-family:courier new;"&gt;numwords, pr count parse words&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;where "words" and "numwords" are text boxes and words is the box containing text to count.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6843923120789186996-1196204672466724107?l=logoandlearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://logoandlearning.blogspot.com/feeds/1196204672466724107/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6843923120789186996&amp;postID=1196204672466724107' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/1196204672466724107'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/1196204672466724107'/><link rel='alternate' type='text/html' href='http://logoandlearning.blogspot.com/2008/10/logo-word-counter.html' title='Logo Word Counter'/><author><name>Erik N.</name><uri>http://www.blogger.com/profile/10844866651453037733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_RpZn6kJXWEo/SmPiJvdh_HI/AAAAAAAAAMw/piGhwtCXGJc/S220/erik.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6843923120789186996.post-5292517516466922660</id><published>2008-10-18T01:08:00.002-04:00</published><updated>2008-10-18T01:11:37.901-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='microworlds'/><title type='text'>Logo Timer</title><content type='html'>Given, you have a text box on the screen named "time," the following makes a nice timer:&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;to start&lt;br /&gt;make "seconds "60&lt;br /&gt;repeat 61&lt;br /&gt;[time, pr :seconds&lt;br /&gt;wait 10&lt;br /&gt;ct&lt;br /&gt;make "seconds :seconds - 1]&lt;br /&gt;end&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6843923120789186996-5292517516466922660?l=logoandlearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://logoandlearning.blogspot.com/feeds/5292517516466922660/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6843923120789186996&amp;postID=5292517516466922660' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/5292517516466922660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/5292517516466922660'/><link rel='alternate' type='text/html' href='http://logoandlearning.blogspot.com/2008/10/logo-timer.html' title='Logo Timer'/><author><name>Erik N.</name><uri>http://www.blogger.com/profile/10844866651453037733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_RpZn6kJXWEo/SmPiJvdh_HI/AAAAAAAAAMw/piGhwtCXGJc/S220/erik.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6843923120789186996.post-6651984755981062885</id><published>2008-08-13T14:32:00.000-04:00</published><updated>2008-08-13T14:40:50.649-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cricket'/><category scheme='http://www.blogger.com/atom/ns#' term='robotics'/><title type='text'>Syntax coloring for Logo</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_RpZn6kJXWEo/SKMpOAUIEBI/AAAAAAAAAIA/7ChthlA3WDw/s1600-h/jackal.gif"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://2.bp.blogspot.com/_RpZn6kJXWEo/SKMpOAUIEBI/AAAAAAAAAIA/7ChthlA3WDw/s400/jackal.gif" alt="" id="BLOGGER_PHOTO_ID_5234072512513970194" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;As far as I know, this is only available in one place--the Java-based &lt;a href="http://www.instituteofthefuture.org/jackal/"&gt;Jackal&lt;/a&gt; for Cricket microcomputers. Now that &lt;a href="http://logoandlearning.blogspot.com/2008/08/microworlds-ver-17-for-windows.html"&gt;MicroWorlds EX Robotics supports the Cricket&lt;/a&gt; this is the only reason I'm sticking with Jackal for my 9th graders this year. I think colored syntax is a really important feature of any programmer's software toolkit and an essential type of feedback for someone beginning to learn to program in a text-based environment.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6843923120789186996-6651984755981062885?l=logoandlearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://logoandlearning.blogspot.com/feeds/6651984755981062885/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6843923120789186996&amp;postID=6651984755981062885' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/6651984755981062885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/6651984755981062885'/><link rel='alternate' type='text/html' href='http://logoandlearning.blogspot.com/2008/08/syntax-coloring-for-logo.html' title='Syntax coloring for Logo'/><author><name>Erik N.</name><uri>http://www.blogger.com/profile/10844866651453037733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_RpZn6kJXWEo/SmPiJvdh_HI/AAAAAAAAAMw/piGhwtCXGJc/S220/erik.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_RpZn6kJXWEo/SKMpOAUIEBI/AAAAAAAAAIA/7ChthlA3WDw/s72-c/jackal.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6843923120789186996.post-6212256388238692640</id><published>2008-08-13T12:13:00.000-04:00</published><updated>2008-08-13T12:23:19.938-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='robotics'/><category scheme='http://www.blogger.com/atom/ns#' term='microworlds'/><title type='text'>MicroWorlds ver 1.7 for Windows</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_RpZn6kJXWEo/SKMJyFP4jDI/AAAAAAAAAH4/jzE2lo1YbVA/s1600-h/new+ver.gif"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; cursor: pointer;" src="http://2.bp.blogspot.com/_RpZn6kJXWEo/SKMJyFP4jDI/AAAAAAAAAH4/jzE2lo1YbVA/s400/new+ver.gif" alt="" id="BLOGGER_PHOTO_ID_5234037947941555250" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;I just installed the upgrade to &lt;a href="http://www.microworlds.com/"&gt;MicroWorlds&lt;/a&gt; EX Robotics for Windows, version 1.7, and was thrilled to see not just support for the NXT but also the Cricket! I can't believe how much of an upgrade this is. And the help resources are robot-specific, so if you've checked the NXT, for example, and restarted the program, you'll see Robotics resources only for the NXT. One things I've learned from this is that different variations of Logo aren't dependent on the programs that you use it with so much as the robotic hardware you use it with, or maybe it's both.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6843923120789186996-6212256388238692640?l=logoandlearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://logoandlearning.blogspot.com/feeds/6212256388238692640/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6843923120789186996&amp;postID=6212256388238692640' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/6212256388238692640'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/6212256388238692640'/><link rel='alternate' type='text/html' href='http://logoandlearning.blogspot.com/2008/08/microworlds-ver-17-for-windows.html' title='MicroWorlds ver 1.7 for Windows'/><author><name>Erik N.</name><uri>http://www.blogger.com/profile/10844866651453037733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_RpZn6kJXWEo/SmPiJvdh_HI/AAAAAAAAAMw/piGhwtCXGJc/S220/erik.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_RpZn6kJXWEo/SKMJyFP4jDI/AAAAAAAAAH4/jzE2lo1YbVA/s72-c/new+ver.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6843923120789186996.post-2304601930481352308</id><published>2008-08-11T20:10:00.000-04:00</published><updated>2008-08-12T00:44:46.856-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='microworlds'/><title type='text'>Snaparea command</title><content type='html'>I've been finding the MicroWorlds EX &lt;a href="http://mia.openworldlearning.org/voctable.htm#snaparea"&gt;&lt;span style="font-family:courier new;"&gt;snaparea&lt;/span&gt;&lt;/a&gt; command really useful recently. It's come in handy when I've needed to turn some text into a graphic that can be used as a shape for turtles. In this project (&lt;a href="http://openblackboard.com/logo/counting.html"&gt;here for web&lt;/a&gt;, &lt;a href="http://openblackboard.com/logo/counting.mwx"&gt;here for download&lt;/a&gt;) I made for a kid to learn some counting skills I made a text box and moved it to the coordinates [0 0], typed in the number 1 and made it larger, then ran the command &lt;span style="font-family:courier new;"&gt;snaparea 1 [-5 5] [20 20]&lt;/span&gt; in the command center and there was my '1' graphic in the shapes panel. The first set of coordinates is the upper left corner of the graphic and the second set is the length across and down from there. I did the same for the other nine numbers but changed the number after the command so they'd be different shape numbers. After giving 10 different turtles these graphics as shapes and making each turtle reveal a number of other turtles when clicked, she could then click a nice big number to see how much it represents. I could have used buttons with numbers as the labels, but they would have been so small.&lt;br /&gt;&lt;span style="display: block;" id="formatbar_Buttons"&gt;&lt;span class="on down" style="display: block;" id="formatbar_CreateLink" title="Link" onmouseover="ButtonHoverOn(this);" onmouseout="ButtonHoverOff(this);" onmouseup="" onmousedown="CheckFormatting(event);FormatbarButton('richeditorframe', this, 8);ButtonMouseDown(this);"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Another more involved project (&lt;a href="http://openblackboard.com/logo/text-to-pix.mwx"&gt;download only&lt;/a&gt;) is one I made for a French teacher that allows her to import her own pictures and type sentences (on the teacher page) which then become graphics the students drag on to the pictures on a Smart Board. When the right sentence touches the picture they get a "Bravo!" &lt;span style="font-family:courier new;"&gt;Snaparea&lt;/span&gt; comes into play when the sentences on page6 are being copied to graphics used by the turtles on each page.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6843923120789186996-2304601930481352308?l=logoandlearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://logoandlearning.blogspot.com/feeds/2304601930481352308/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6843923120789186996&amp;postID=2304601930481352308' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/2304601930481352308'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/2304601930481352308'/><link rel='alternate' type='text/html' href='http://logoandlearning.blogspot.com/2008/08/snaparea-command.html' title='Snaparea command'/><author><name>Erik N.</name><uri>http://www.blogger.com/profile/10844866651453037733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_RpZn6kJXWEo/SmPiJvdh_HI/AAAAAAAAAMw/piGhwtCXGJc/S220/erik.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6843923120789186996.post-1002399012177896120</id><published>2008-08-09T23:51:00.000-04:00</published><updated>2008-08-10T00:02:46.831-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cricket'/><category scheme='http://www.blogger.com/atom/ns#' term='robotics'/><title type='text'>Handy Cricket LED hexadecimal codes</title><content type='html'>Pretty esoteric post for one of the first, but I recently finished &lt;a href="http://openblackboard.com/ledchart"&gt;making a web page&lt;/a&gt; that lists the hexadecimal values for all configurations of LEDs on the 4-digit LED display bus for use with the Handy and Super Cricket microcontroller. &lt;a href="http://projects.cs.uml.edu/browse.php?cubeid=2862"&gt;Ryan Tucker of UMass&lt;/a&gt; figured out and listed the codes for the alphabet, but I want my students this fall to be able to design and create more abstract animations in addition to messages, like a snake zig-zagging around. &lt;a href="http://handyboard.com/cricket/bus/4digit.shtml"&gt;This page&lt;/a&gt; on handyboard.com shows how to program the LED display.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6843923120789186996-1002399012177896120?l=logoandlearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://logoandlearning.blogspot.com/feeds/1002399012177896120/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6843923120789186996&amp;postID=1002399012177896120' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/1002399012177896120'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/1002399012177896120'/><link rel='alternate' type='text/html' href='http://logoandlearning.blogspot.com/2008/08/handy-cricket-led-hexadecimal-codes.html' title='Handy Cricket LED hexadecimal codes'/><author><name>Erik N.</name><uri>http://www.blogger.com/profile/10844866651453037733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_RpZn6kJXWEo/SmPiJvdh_HI/AAAAAAAAAMw/piGhwtCXGJc/S220/erik.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6843923120789186996.post-1901567214882750919</id><published>2008-08-09T23:02:00.000-04:00</published><updated>2008-08-09T23:03:13.315-04:00</updated><title type='text'>Why a Logo blog?</title><content type='html'>I'm not a programmer by training. I've come into programming through teaching technology and my lifetime interest in making things. That could have led me to focus on teaching graphic design, video editing, or Flash animation, but when I started working seriously with computers about 7 years ago I needed to understand how they work. The need to see under the hood has made me eschew all GUIs when practical and learn to do things with code. I've learned to use HTML, JavaScript, PHP, a (very) little Java, Processing, AppleScript, DOS batch files, and VBScript, all out of needing to solve some problem or other. Logo has allowed me to communicate the use of computer languages for solving problems and understanding how things work to middle school children. It has also allowed me to become a programmer because it's more accessible than other languages and I'm not too mathematically or logically inclined. So I'm grateful to Logo and the people who made it and the people who continue to develop it. This blog is mostly about using Logo to solve problems and create new things.�&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6843923120789186996-1901567214882750919?l=logoandlearning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://logoandlearning.blogspot.com/feeds/1901567214882750919/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6843923120789186996&amp;postID=1901567214882750919' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/1901567214882750919'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6843923120789186996/posts/default/1901567214882750919'/><link rel='alternate' type='text/html' href='http://logoandlearning.blogspot.com/2008/08/why-logo-blog.html' title='Why a Logo blog?'/><author><name>Erik N.</name><uri>http://www.blogger.com/profile/10844866651453037733</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_RpZn6kJXWEo/SmPiJvdh_HI/AAAAAAAAAMw/piGhwtCXGJc/S220/erik.jpg'/></author><thr:total>0</thr:total></entry></feed>
