Saturday, October 18, 2014

Binary Counting Addition and Subtraction Continued...

This time we do some Binary Addition and Subtraction as one S2 counts the other as it passes. The S2 passing Left to Right is added to the total and the same S2 passing from Right to Left is subtracted from the count total.

The original Binary Addition and Subtraction code was modified with a "wait" to allow time for the counted S2 to pass (and allows a full pass in either direction without being "counted" on both sides in a pass). See BinaryCountAddSubwWait code The S2 being counted makes Counter-Clockwise and Clockwise circles - the loops can be adjusted to get different results. See TwoDirectionCircle code and photo below - with a nod to Nikos (on the Parallax Forums) and his nice noted photos. This version results in an answer count of 2 in binary form - just the center LED lighted green! Again 4 is my max count in the code. 

See the video and for the code - visit the Parallax Forums in this thread.

Thursday, October 16, 2014

Binary Counting - Addition and Subtraction

Last example for Ken from this thread on the Parallax Forums.  - this is a follow up to the Binary Counting below. This version counts when objects pass the S2 left to right and subtracts when objects pass from right to left. I used a screen/target in the video - you could count passing S2s or Scribblers as I did previously.

I wanted to count/add to 7 and subtract back to 0 - but I ran into the limitation of variables (I think - the program wouldn't load - till I reduced to a maximum count of 4). So we count to 4 and subtract to zero. See other info in the post below (on Binary Count using the LEDs), video below and the good and bad code posted on the Forums at the link above.

NOTE: The code there labeled TOOMANYVAR - which looks okay to me (may have an error), never would load properly - again I think because it exceeds the limits of the Program Maker or the S2 - I asked for input on the Forums and there may be more there eventually.

Hope Ken has a great time with his class! The S2 is an amazing robot to teach with...

When to Saints Go Marching In!

Alright, here is the one robot parade promised to erco. The S2 dances in to "When the Saints Go Marching In!" This is another example of a program written only with the GUI Program Maker in response to a call from Ken Gracey of Parallax for some examples for an upcoming class.

Music photo, and video attached. For code and other info - including Ken's original post - see the Parallax Forums in this thread.

Wednesday, October 15, 2014

Tektronix MDO3000

Tektronix is giving away one of these - an MDO3000! Just what I need - Something so far above my head that I don't even understand all it can do. ;-) I hope I win...  Check out the video...

Saturday, October 11, 2014

Light-N-Logo Tracking

This one is called Light-N-Logo Tracking (though it is really just light tracking!) It also features simple GUI Program Maker programming with the S2.
The Target Bot S2 is equipped with an LED flashlight in a container (two bowls stuck together sticky tack) complete with the Parallax Logo - it rotates clockwise and counter-clockwise (randomized by a coin toss) around the second S2 Tracking Bot. Can the tracker follow? See photos and video.

This is similar to Light following but a bit easier since the Tracking Bot rotates in place. The Target Bot just runs a circle with changes of direction.

Friday, October 10, 2014

Parallax Scribbler and S2 GUI Programming Fun

My friend, Ken Gracey, at Parallax is teaching a  course in Iowa for 45 teachers who will be learning the S2 robot for their elementary school programs. He posted the announcement on the Parallax Forums here and  said, "The S2 GUI provides a whole semester's worth of projects, but what gets teachers and students really excited is when the robots interact with one another...I know there's more we can do, using the GUI and the sensors on the S2. Can you give me some more ideas about how we can make the S2s communicate with one another - strictly from GUI programming activities."

So here are a couple of ideas that I came up with.

Number One - Here is a demo with two programs written in the GUI (that means they will run on the Original Scribbler and S2, of course). Old blue is programmed to count in binary numbers up to 7 (with 3 LED indicators we have 0 - 7 - 1s column, 2s column and 4s column - On is 1 and Off is 0). See graphics below.

The S2 (because of its encoders and ability to stay on course) is programmed to run 7 circles (can be simply reset to some other number up to 7 in the loop counter). As it passes by, old blue will count as it passes, using the IR detectors.

See the following demo video...

Number Two - Variation on the theme above. Should be easy for your teachers to figure out and students will love it because it resembles a magic trick - "Fire Stealer"

The sneaky S2 sings Charge!, runs erco's figure 8 and "steals" LED light - "fire" - from Scribbler A and drops it off at Scribbler B. When all the light is stolen from Blue A - it says Uh-Oh!, and when all the LEDs are lit on Scribbler B, it says TaDa!

Enjoy the video! The code for both of these examples is available on the Forums at the link above.

Number Three - And last one... maybe!

I call this one Ribbon Following.

I took a black piece of ribbon (weighted with a quarter taped to the back) and attached it to my blue Scribbler. Using the S2 default line following program, the S2 gives chase. The slightly raised ribbon attached to the Scribbler seems to work well - with the usual goofs, of course! I had to adjust the speeds of the two bots to make the following work best. See photo below and...Enjoy this video - Thanks to videographer, scribbler-kart!

Monday, October 6, 2014

The Innovators

Great author interview tonight on Fresh Air - All Tech Considered. I've got to read this book!
In The Innovators, Walter Isaacson explains that Pentagon officials wanted a system the Russians couldn't attack, and 1984 made the public wary of new...