Shop OBEX P1 Docs P2 Docs Learn Events
The S2 Reveals its Soul - IMPROVED VIDEO — Parallax Forums

The S2 Reveals its Soul - IMPROVED VIDEO

WhitWhit Posts: 4,191
edited 2011-02-13 05:33 in Robotics
Hey All,

Okay, its far from perfect, but the video below is called the S2 Reveals its Soul.

It is a simple ordered pair plot. Code is attached in an archieved format and I would love to know how it works on your S2. My wheel calibration is set at -7, yours may need to be adjusted a bit.

Edit - Improved Video in Thread
«1

Comments

  • Roy ElthamRoy Eltham Posts: 3,000
    edited 2011-02-04 11:10
    That very cool!
  • Duane DegnDuane Degn Posts: 10,588
    edited 2011-02-04 11:17
    Yes, very nice.

    There's got to be a way to smooth out those curves. Who is going to write the vector graphics software for the S2?

    Your S2 has the soal of an artist.

    Duane
  • WhitWhit Posts: 4,191
    edited 2011-02-04 11:27
    Yes, It is absolutely possible to make the curves smooth. That is my next project. The abiity to do this is all in the S2 Object.

    I went with the ordered pair plot first because I knew I come pretty close right off the bat.
  • W9GFOW9GFO Posts: 4,010
    edited 2011-02-04 12:09
    Very nice!

    Rich H
  • zappmanzappman Posts: 418
    edited 2011-02-04 13:22
    Very Nice !!!
  • ctwardellctwardell Posts: 1,716
    edited 2011-02-04 14:02
    Nice!

    Pretty good dead reckoning to keep things lined up that well.

    C.W.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-02-04 14:27
    Wow, Whit! That's a real tour de force! Congrats!

    -Phil
  • Jen J.Jen J. Posts: 649
    edited 2011-02-04 14:49
    Super awesome, Whit!
    I'm going to make sure all the Parallaxians see it.

    Jen J.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-02-04 14:51
    Whoa! Jen! What's up with the Lizzie Borden avatar motif? :)

    -Phil
  • Matt GillilandMatt Gilliland Posts: 1,406
    edited 2011-02-04 15:06
    Way Cool Whit!
    -Matt
  • WhitWhit Posts: 4,191
    edited 2011-02-04 16:42
    Thanks for the compliments guys...but Duane layed down the challenge. So...

    Here is a pic of the Better Propeller Beanie 1.0 and code. Nice and smooth and 3-D to boot. No stripes yet, but soon... It is amazing how this thing closes such a complex shape so closely. The wierd thing is that the code is actually a bit simpler!

    Better Propeller Beanie.jpg
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-02-04 17:14
    Very nicely done, Whit! Out of curiosity: how do you plan your trajectories? Graph paper, CAD program, or ... ?

    -Phil
  • Martin_HMartin_H Posts: 4,051
    edited 2011-02-04 18:44
    White, nice job! Thanks for posting it.
  • WhitWhit Posts: 4,191
    edited 2011-02-04 19:37
    All right folks. Here is the latest Better Propeller Beanie 2.0 (now with stripes). The stripes were pretty tricky and took lots of fooling with - lots of accumulated error in so many moves - but still amazing!

    Better Propeller Beanie 2.0 Stripes.jpg


    @Phil, I plotted the ordered pair version on graph paper. The new version I just worked out from the original. I used a tape measure to estimate the radii. (sp?)

    I will post a video of the new drawing when I get a chance.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-02-04 19:41
    Wow! That's very nice! Now, I really think you need to shade alternate stripes, along with the beanie's interior. (Just kidding! :) )

    -Phil
  • WhitWhit Posts: 4,191
    edited 2011-02-04 19:48
    Hey Phil,

    Great idea! What if I paused the plot long enough to change pen colors at each stripe?

    What an amazing robot this is! Whether you are inexperienced or extremely experienced (not me) - I believe you will find fun things to do with the S2.

    My students (club mebers) love it and I can't wait to show them this stuff.
  • NikosGNikosG Posts: 705
    edited 2011-02-06 10:39
    Nice project Whit!
    The propeller drawing is amazing!
    I like the idea of a multi-color marker!
  • KMyersKMyers Posts: 433
    edited 2011-02-06 11:10
    Whit,
    Great job!! Unfortunately its getting me interested in the S2.. Way to go (grin)
  • Jessica UelmenJessica Uelmen Posts: 490
    edited 2011-02-07 09:11
    That's stunning Whit! And are you using a white board to do your scribbling? That's a fantastic idea.

    -- Jessica
  • Tony B.Tony B. Posts: 356
    edited 2011-02-07 12:04
    Whit,

    Very Cool! How many hours do you have in the code?

    I wonder if you could get Sharpie to sponsor you and your robotic efforts? I also wonder if Parallax and Sharpie could co-sponsor a drawing contest with the S2? I think that would be a fun contest. They could have youth and adult divisions.

    Tony
  • WhitWhit Posts: 4,191
    edited 2011-02-07 12:09
    @Jess - See http://forums.parallax.com/showthread.php?128178-Greener-Scribbling&p=962970#post962970 - Greener Scribbling...

    @Tony, the first ordered pair plot took the longest. The code of the true arcs is actuaully more simple because of the S2 Object. Take a look at the code.

    Cool idea about the contest. See the link about to see how I freed my self from the permament markers though...
  • W9GFOW9GFO Posts: 4,010
    edited 2011-02-07 14:18
    A drawing contest sounds like a good idea for the UPEs.

    Rich H
  • schillschill Posts: 741
    edited 2011-02-07 14:27
    W9GFO wrote: »
    A drawing contest sounds like a good idea for the UPEs.

    Rich H

    I was just thinking the other day that we should try and arrange some sort of S2 event for the UPEs. Either individual "performances" or some sort of mass S2 extravaganza. Something done en mass may require some additional hardware or pre-UPE configuration (depending on what it was).

    I wonder how many would show up.
  • W9GFOW9GFO Posts: 4,010
    edited 2011-02-07 14:57
    schill wrote: »
    I wonder how many would show up.

    I guess that is the real risk. It seems that often there are very few entrants to contests.

    Rich H
  • schillschill Posts: 741
    edited 2011-02-07 15:06
    W9GFO wrote: »
    I guess that is the real risk. It seems that often there are very few entrants to contests.

    Rich H

    I'm not really thinking of making it too much of a contest. Even just throwing a bunch in a small area (with low walls) and letting them bounce around might be interesting - interacting with the walls and each other. And if each had a different color pen we could create a work of art. :)
  • WhitWhit Posts: 4,191
    edited 2011-02-07 20:21
    Okay, Here is the the video of Better Propeller Beanie 2.0 - The S2 Reveals its Soul - Only Better.
  • NikosGNikosG Posts: 705
    edited 2011-02-08 03:38
    These arcs are really perfect!
    Congratulations!
  • WhitWhit Posts: 4,191
    edited 2011-02-08 05:40
    @NikosG - If they are off in any way, it is that my estimated radius for each is off. The S2 makes it easy to draw or travel arcs. It has a draw method "arc_to" where you supply x and y coordinates relative to your position the radius to be traveled.
  • Duane DegnDuane Degn Posts: 10,588
    edited 2011-02-08 09:23
    Whit, Wow!

    That's amazing. That's a fun video to watch.

    So do I owe you a challenge or do you owe me a challenge?

    I hope we didn't bet anything on this.

    I'm very impressed.

    Now we need to figure out which dead artist's soul is possessing your S2.

    Duane
  • NikosGNikosG Posts: 705
    edited 2011-02-12 05:50
    Hi Whit
    Your code is very sophisticated! I was trying to understand its function reading your spin code and I made a small code to propose polygons and circles creation based on LOGO and Geometry theory. I have tested this code with a homemade robot in Basic language years ago. The equivalent SPIN code I tried is the following:
    PUB do_mycircle(dist)
    {{ another way to do circles,
       like the Logo turtle
      }}
      counter := 0
      n := 36
      dw := 10
      repeat until  counter == n
       turn_by_deg(dw)
       go_forward(dist)
       counter:= counter+1
    
    Unfortunately I don't have a S2 robot yet to test it. But if you want you can try this code in your robot.
    The follow image explains the relation between the variables I use. If you increase the "n" from 9 to 36 you will have a circle instead of 9 angle-polygon
    attachment.php?attachmentid=78187&d=1297518239
    Whit wrote: »
    @NikosG - If they are off in any way, it is that my estimated radius for each is off. The S2 makes it easy to draw or travel arcs. It has a draw method "arc_to" where you supply x and y coordinates relative to your position the radius to be traveled.
    883 x 602 - 59K
Sign In or Register to comment.