Shop OBEX P1 Docs P2 Docs Learn Events
S2 Draws an Easter Blessing — Parallax Forums

S2 Draws an Easter Blessing

Tony B.Tony B. Posts: 356
edited 2011-04-20 05:29 in Robotics
Video at
http://www.youtube.com/watch?v=kHZRsPo_wlI


Inspired by Jessica's Hokey Pokey video and lesson I decided to try making my S2 draw and play music at the same time. Using the GUI I developed the music code for "Amazing Grace" by entering the notes from a hymnal. I then viewed the code in the Propeller Tool. I added Jessica's movement code from "Draw your name with an S2 Robot" (mostly to save on typing) with a couple of modifications (see code comments) to draw a cross. To develop the coordinates for the cross I used Jessica's method of using graph paper shown in the "Draw your name with an S2 Robot".

I had drawn the cross with shadow lines, but the S2 missed the connection points as it moved back up the cross. I left the code in so you can try it if you want to. I'm working on the issue, but if you come up with a solution please share it with everyone.

Keep on Scribbling and have a Blessed Easter.

Tony

Comments

  • ercoerco Posts: 20,256
    edited 2011-04-19 16:07
    Very nice all around, Tony. Happy Easter!
  • WhitWhit Posts: 4,191
    edited 2011-04-19 19:06
    Neat! Glad to see you guys are enjoying your S2. The music programing is fun, huh? And the S2's scribbling accuracy is amazing. Looks like your son is making some great progress too!

    Happy Easter!
  • Jessica UelmenJessica Uelmen Posts: 490
    edited 2011-04-19 19:54
    Way cool Tony!! Happy Easter indeed!

    Haven't had a chance to look at the code, is it missing the connection points by a lot or a little? I've found that sometimes the Sharpie moving around in the pen port causes some inaccuracies. I've actually wrapped mine in some masking tape so they fit snuggly in the hole. :]
  • Tony B.Tony B. Posts: 356
    edited 2011-04-20 05:29
    Thanks for the replies!

    Jessica - When it draws the 3D shadow lines it starts at the bottom where the video ends and as it moves back up the cross on the left side it keeps missing points by an increasing amount till at the top it is off by a 1-2 cm. If you get a chance to run the code that would be great to see if it does the same for you. I will run the full code and post a picture as well.

    It is great having a little robot with so many features ready to go out of the box. When I get frustrated with my other robotic adventures I grab my S2 and make up a little program and have fun. That's when the head gets cleared and you remember why you do this - to have FUN!!!

    Thanks again all,
    Tony

    Edit: added pictures which show the best one to date. Some times errors greater.
    640 x 480 - 44K
    640 x 480 - 46K
    640 x 480 - 45K
    640 x 480 - 47K
Sign In or Register to comment.