Thank you Whit !
If you have time put a pen in your S2 upload the next spin code and see the result!
The S2 will draw a Greek dancer dancing "The Evdokia's Zeibekiko" and simultaneously plays the song!

The "Artist" performs the same activity more impresive due to the SD card and the vecho speaker, but the accuracy of the S2 is remarkable!

Another video with "Artist", dancing and singing the "Evdokias Zeibekiko" (Rock edition), during the 3rd day of 5th digital student's festival in Patras-Greece 2015

The drawing has some improvements: The figure "8" s are symetrical and smaller in order to fit the entire shape in the 2 X2,5m black moquette That I bought for this purpose....

Nicely done, and way to display the Parallax banner!

"When you make a thing, a thing that is new, it is so complicated making it that it is bound to be ugly. But those that make it after you, they don’t have to worry about making it. And they can make it pretty, and so everybody can like it when others make it after you."

Nicely done, and way to display the Parallax banner!

Thank you Erco!
I displayed the Parallax banner and in a second event (the same day) :

Saturday 5 April 2015, after the 5th student’s digital festival, another festival took place in Patras city.
The “Annual student’s festival”, that is supported mostly from young with strong political interest and political parts against the European Union.
One of my students (Tassos), a politically active student, asked me to present the “Artist” and the “Parallax S2 robot” in this festival.
Although I totally disagree with politics, I accepted this challenge because I believe that robots must be beyond politics and they consist a great way for a better future for young people.
It was a great opportunity to make a contact of that part of youth with robotics and Parallax.

After the Show, “Artist” and S2 robot got the applauses from the audience, and I accepted a lot of questions about Parallax and robots in general. I realized that many graduated student’s had a totally ignorance about robotics because of their only interest in politics!

Bravo, you're quite the showman! Seems like there's a joke in there somewhere about "how many politicians does it take to program a robot...?"

"When you make a thing, a thing that is new, it is so complicated making it that it is bound to be ugly. But those that make it after you, they don’t have to worry about making it. And they can make it pretty, and so everybody can like it when others make it after you."

The last part of this project is the drawings. Except from the figure 8s and the flowers( post #106), the robot must be able to make and other shapes like triangles, rectangles, polygons, curves , straight lines and Letters!!!

So it is very important to program it, in order to turning in place with accuracy.
In order to test the robots behavior, I made a square ring divided in 36 sectors with degrees from 0 to 360. Each sector is equal to 10 degrees.
I also added an indicator from cardboard on the front of the Artist in order to measure the turns.

I used the command drive speed (25, -25) and I found the certain amount of time that is needed for the various angles.
This time is given by the formula: time=Round(angle*14,7778)

The use of the drive_speed command gave me a very good result and accuracy! I have to say that using the drive_goto command, I had some problems......

Lets take a closer look at the drive_speed(a,b) command.
This command can make the robot to go at straight lines when (a=b), or make curves and circles when (a>b).

The calculations for straight lines in curtains distances are very easy as the distances are proportional to the amount of time on the Pause () command.

The question is how can we make certain circles (if we know the radius R of the circle) using the drive_speed (a,b) command? Can we have a formula to calculate the (a) and (b)?
The answer is yes. The remarkable is although (a) and (b) represent ticks per second of left and right wheel, their quotient is independent from encoders ticks and it depends only from the distance (d) between the two wheels of the robot.
So if we want for example to draw a circle with radius R=40cm with the Artist that has d=28,5cm (distance between the two wheels).

We use the Drive_speed(a,b) and we choose for a= 25 (or any other integer).Then the b=a*(2*R-d)/(2*R+d)=25*(2*40-28,5)/(2*40+28,5)=12 . So the right command is : drive_speed(25,12)
Lets see why:

After some tests I verified in practice all the above formulas and I am convinced that we can draw everything using only the drive_speed command.

The next step will be the creation of an ALPHABET for artist or ARLO robots in propeller C!

This thread and the information contained here just keeps getting better and better Nikos - Thanks again for your great documentation and willingness to share!

Ευχαριστώ!

P.S. - Even though I knew this - It is still fascinating to me that "Thank you" in Greek is essentially the same word as Eucharist!

Whit+

"We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths." - Walt Disney

Thank you Whit!
I hope you'll find interest and the next example:

Trying to verify the avove theory and formulas, I tried to draw 10 circles with gradually grow up the radius from 5 cm to 50 cm with step 5.

I found the appropriate drive_speed(a,b) commands, (the first parameter was a=25 and I changed only the b).
and I also found the time for the Pause command in order to complete every circle. And here it is:

Nikos, Is this a hobby or what you do for a living? Either way, you do awesome work.

Thank you Andy,
I am an ICT teacher, but I prefer to see my job as a hobby!.
So Parallax and robotics is a great way to show my students the beauty of programming and algorithms.!

For the next example the only we have to do is to make a copy of the above commands,
and change the position of "a" and "b" variables in every drive_speed(a,b).
Then we'll have the next:

I think it could be an "advanced erco's figure 8 challenge".....

Yes, erco loves it! Awesome job Nikos! Makes me want to try my Trike Bot on a course like that!

BTW Whit, thank you (very much) in Greek is "Efharisto" (poli). I guess you meant the Greek letters resemble "Eucharist" back in #130?

"When you make a thing, a thing that is new, it is so complicated making it that it is bound to be ugly. But those that make it after you, they don’t have to worry about making it. And they can make it pretty, and so everybody can like it when others make it after you."

Yes, erco loves it! Awesome job Nikos! Makes me want to try my Trike Bot on a course like that!

In real situations I had not a 100% symmetry as the theoretical drawings......
Maybe because the robot makes first the entire right group of circles, and then the entire left group and not sequential figure 8s

thank you (very much) in Greek is "Efharisto" (poli). I guess you meant the Greek letters resemble "Eucharist" back in #130?

... Not only the letters resemble "Eucharist". The meaning of the Greek "Ευχαριστώ" can be very similar to "Eucharist". Using the adjective "Θεία"=holy before "Ευχαριστώ" they have exactly the same meaning: "Θεία Ευχαριστία"="Eucharist"! (and the sound is also very similar)

That is truly a thing of beauty, Nikos! Music and technology mixed together, simply wonderful. Zorba the Greek bot dancing as it does its work.

When the robots come to kill us all, I hope they will play some nice music as you have demonstrated. It's the least they can do.

Great job, Boss!

"When you make a thing, a thing that is new, it is so complicated making it that it is bound to be ugly. But those that make it after you, they don’t have to worry about making it. And they can make it pretty, and so everybody can like it when others make it after you."

Just saw the photo of facebook, but the video is incredible! Great work as always friend!

Your robot is an Artist and so are you.

Thank you Whit,
From a short research about spirals, I found that except from the artistic interest (as drawings), spirals also have an extremely mathematical interest (much more than I initially thought)! Maybe I must spend some more time with them .. (It would be very interesting because all this theory can be applied to the S2 Robot too!). The spiral I made, is a type of Archimedean Spiral but there are many other types of spirals with different mathematic features ..

In order to make an Archimedean Spiral, you must draw sequential semicircles and gradually you must increase the radius in a constant amount.
So the 1st semicircle has radius r=5, the 2nd r=10, the 3rd r=15, the 4rth r=20, the 5th r=25, the 6th r=30 and son on ….
So we must calculate the appropriate “a”, “b” parameters for the Drive_speed(a,b) commands, according the formula from post#128. We must also calculate the time for the “pause” command in order to achieve a semicircle, taking into account that every semicircle is an arc with 180 degrees angle. So using the formula from post#129. we have :

For the double spiral in order to draw the 2nd spiral we write down the same commands as the 1rst spiral but reversely,
and we also change the order between “a” and “b” inside the drive_speed(a,b) commands…

Spirals are great. Makes me want to try some on servo-steered trikebot, except tracing the path might be difficult. It weighs so little that simply dragging a marker might throw off the steering/tracking.

"When you make a thing, a thing that is new, it is so complicated making it that it is bound to be ugly. But those that make it after you, they don’t have to worry about making it. And they can make it pretty, and so everybody can like it when others make it after you."

Spirals are great. Makes me want to try some on servo-steered trikebot, except tracing the path might be difficult. It weighs so little that simply dragging a marker might throw off the steering/tracking.

Spirals are great indeed! It is amazing that people from different places of the planet without internet or any type of communication, thousands years ago (like the Greek Archimedes and Indians from Chaco Canyon) had spirals in the center of their research!
Another interesting point is that “Fibonacci spiral” is connected also with the number “Phi” (the golden ratio) that is always in nature.

Some people call that number as the “fingerprint of God”.
In the next posts I’ll try to make a connection between Fibonacci spiral algorithm and Parallax robots

In order to make a Fibonacci spiral using a robot you must draw sequential arcs and not semicircles as the Archimedean spiral.
The radius of each arc must be a number from the Fibonacci sequence 0,1,1,2,3,5,8,13,,21,34,55,89,144, (We start with 0 and 1 and then each subsequent number is the sum of the previous two). The angle of each arc must be 90 degrees.
The only we have to do is to calculate the appropriate a, b for drive_speed(a,b) commands, and time for the Pause commands using the formulas from post #128 and post #129....

Inspired by Nikos "Artist," little brother wanted to get in on the fun. Thanks to Phil's S2 Object - it really wasn't that hard. I did end up going counter-clock-wise, but that is easy to change too!

Bravo and thanks Nikos for the fun idea!

Spin for the S2 is attached also. Use at will! And have fun!

Well done Whit! Now you're just shaming me into doing a spiral with my trike. Should be simple, just drive and slowly increment the steering servo, but I'm swamped right now, it will have to wait a few days.

You guys are having all the fun. Maybe Nikos' spiral challenge is the new figure 8! Certainly a companion challenge.

"When you make a thing, a thing that is new, it is so complicated making it that it is bound to be ugly. But those that make it after you, they don’t have to worry about making it. And they can make it pretty, and so everybody can like it when others make it after you."

"When you make a thing, a thing that is new, it is so complicated making it that it is bound to be ugly. But those that make it after you, they don’t have to worry about making it. And they can make it pretty, and so everybody can like it when others make it after you."

## Comments

6050Vote UpVote DownThank you Whit !

If you have time put a pen in your S2 upload the next spin code and see the result!

The S2 will draw a Greek dancer dancing "The Evdokia's Zeibekiko" and simultaneously plays the song!

The "Artist" performs the same activity more impresive due to the SD card and the vecho speaker, but the accuracy of the S2 is remarkable!

Here is my web page.http://www.youtube.com/user/NGYT40

6050Vote UpVote DownThe drawing has some improvements: The figure "8" s are symetrical and smaller in order to fit the entire shape in the 2 X2,5m black moquette That I bought for this purpose....

Here is my web page.http://www.youtube.com/user/NGYT40

18,4800Vote UpVote Down"When you make a thing, a thing that is new, it is so complicated making it that it is bound to be ugly. But those that make it after you, they don’t have to worry about making it. And they can make it pretty, and so everybody can like it when others make it after you."- Pablo Picasso

6050Vote UpVote DownThank you Erco!

I displayed the Parallax banner and in a second event (the same day) :

Saturday 5 April 2015, after the 5th student’s digital festival, another festival took place in Patras city.

The “Annual student’s festival”, that is supported mostly from young with strong political interest and political parts against the European Union.

One of my students (Tassos), a politically active student, asked me to present the “Artist” and the “Parallax S2 robot” in this festival.

Although I totally disagree with politics, I accepted this challenge because I believe that robots must be beyond politics and they consist a great way for a better future for young people.

It was a great opportunity to make a contact of that part of youth with robotics and Parallax.

After the Show, “Artist” and S2 robot got the applauses from the audience, and I accepted a lot of questions about Parallax and robots in general. I realized that many graduated student’s had a totally ignorance about robotics because of their only interest in politics!

Here is my web page.http://www.youtube.com/user/NGYT40

18,4800Vote UpVote Down"When you make a thing, a thing that is new, it is so complicated making it that it is bound to be ugly. But those that make it after you, they don’t have to worry about making it. And they can make it pretty, and so everybody can like it when others make it after you."- Pablo Picasso

6050Vote UpVote DownDrawings: The last part of the Artists projectThe last part of this project is the drawings. Except from the figure 8s and the flowers( post #106), the robot must be able to make and other shapes like triangles, rectangles, polygons, curves , straight lines and Letters!!!

So it is very important to program it, in order to turning in place with accuracy.

In order to test the robots behavior, I made a square ring divided in 36 sectors with degrees from 0 to 360. Each sector is equal to 10 degrees.

I also added an indicator from cardboard on the front of the Artist in order to measure the turns.

I used the command drive speed (25, -25) and I found the certain amount of time that is needed for the various angles.

This time is given by the formula:

time=Round(angle*14,7778)The use of the

drive_speedcommand gave me a very good result and accuracy! I have to say that using thedrive_gotocommand, I had some problems......Here is my web page.http://www.youtube.com/user/NGYT40

6050Vote UpVote Downdrive_speed(a,b)command.This command can make the robot to go at straight lines when (a=b), or make curves and circles when (a>b).

The calculations for straight lines in curtains distances are very easy as the distances are proportional to the amount of time on the

Pause ()command.The question is how can we make certain circles (if we know the radius R of the circle) using the

drive_speed (a,b)command? Can we have a formula to calculate the(a)and(b)?The answer is yes. The remarkable is although

(a)and(b)represent ticks per second of left and right wheel, their quotient is independent from encoders ticks and it depends only from the distance(d)between the two wheels of the robot.So if we want for example to draw a circle with radius R=40cm with the Artist that has d=28,5cm (distance between the two wheels).

We use the Drive_speed(a,b) and we choose for a= 25 (or any other integer).Then the b=a*(2*R-d)/(2*R+d)=25*(2*40-28,5)/(2*40+28,5)=12 . So the right command is :

drive_speed(25,12)Lets see why:

After some tests I verified in practice all the above formulas and I am convinced that we can draw everything using only the

drive_speedcommand.The next step will be the creation of an ALPHABET for artist or ARLO robots in propeller C!

Here is my web page.http://www.youtube.com/user/NGYT40

6050Vote UpVote DownThe answer is in the next image:

if you use the above formula on your robot the only thing that maybe must change is the constant 59,94.

That 59,94 is the time we put on Pause command after a drive_speed(25,25) in order to make the robot move straight for 1cm

Tip: find the time in order to move the robot straight 1m=100cm and then divide with 100.

You can trust all the above formulas as I have allready tested them.( I can explain if you have any question)

I tried to draw the letters "A" and "B" using the above theory. The letter "B" had curves that were arcs with radius 5 and angle 180

Although I didn't use Pen Up and Pen Down commands I think the result is right.

Any volunteer for the letter's design?

Here is my web page.http://www.youtube.com/user/NGYT40

3,7190Vote UpVote DownΕυχαριστώ!

P.S. - Even though I knew this - It is still fascinating to me that "Thank you" in Greek is essentially the same word as Eucharist!

Whit+"We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths." - Walt Disney6050Vote UpVote DownI hope you'll find interest and the next example:

Trying to verify the avove theory and formulas, I tried to draw 10 circles with gradually grow up the radius from 5 cm to 50 cm with step 5.

I found the appropriate drive_speed(a,b) commands, (the first parameter was a=25 and I changed only the b).

and I also found the time for the Pause command in order to complete every circle. And here it is:

The result was exactly as i expected !

Here is my web page.http://www.youtube.com/user/NGYT40

3,7190Vote UpVote DownWhit+"We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths." - Walt Disney3,6290Vote UpVote DownMy Index Page:

6050Vote UpVote DownThank you Andy,

I am an ICT teacher, but I prefer to see my job as a hobby!.

So Parallax and robotics is a great way to show my students the beauty of programming and algorithms.!

For the next example the only we have to do is to make a copy of the above commands,

and change the position of "a" and "b" variables in every drive_speed(a,b).

Then we'll have the next:

I think it could be an "advanced erco's figure 8 challenge".....

Here is my web page.http://www.youtube.com/user/NGYT40

3,7190Vote UpVote DownWhit+"We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths." - Walt Disney18,4800Vote UpVote DownBTW Whit, thank you (very much) in Greek is "Efharisto" (poli). I guess you meant the Greek letters resemble "Eucharist" back in #130?

"When you make a thing, a thing that is new, it is so complicated making it that it is bound to be ugly. But those that make it after you, they don’t have to worry about making it. And they can make it pretty, and so everybody can like it when others make it after you."- Pablo Picasso

6050Vote UpVote DownMaybe because the robot makes first the entire right group of circles, and then the entire left group and not sequential figure 8s

However I had enough accuracy with spirals.....

... Not only the letters resemble "Eucharist". The meaning of the Greek "Ευχαριστώ" can be very similar to "Eucharist". Using the adjective "Θεία"=holy before "Ευχαριστώ" they have exactly the same meaning: "Θεία Ευχαριστία"="Eucharist"! (and the sound is also very similar)

Here is my web page.http://www.youtube.com/user/NGYT40

6050Vote UpVote DownHere is my web page.http://www.youtube.com/user/NGYT40

18,4800Vote UpVote DownWhen the robots come to kill us all, I hope they will play some nice music as you have demonstrated. It's the least they can do.

Great job, Boss!

- Pablo Picasso

3,7190Vote UpVote DownYour robot is an Artist and so are you.

Whit+6050Vote UpVote DownThank you Whit,

From a short research about spirals, I found that except from the artistic interest (as drawings), spirals also have an extremely mathematical interest (much more than I initially thought)! Maybe I must spend some more time with them .. (It would be very interesting because all this theory can be applied to the S2 Robot too!). The spiral I made, is a type of Archimedean Spiral but there are many other types of spirals with different mathematic features ..

Here is my web page.http://www.youtube.com/user/NGYT40

6050Vote UpVote DownSo the 1st semicircle has radius r=5, the 2nd r=10, the 3rd r=15, the 4rth r=20, the 5th r=25, the 6th r=30 and son on ….

So we must calculate the appropriate “a”, “b” parameters for the Drive_speed(a,b) commands, according the formula from post#128. We must also calculate the time for the “pause” command in order to achieve a semicircle, taking into account that every semicircle is an arc with 180 degrees angle. So using the formula from post#129. we have :

For the double spiral in order to draw the 2nd spiral we write down the same commands as the 1rst spiral but reversely,

and we also change the order between “a” and “b” inside the drive_speed(a,b) commands…

A special interest has the " Fibonacci or Golden spiral"....

Here is my web page.http://www.youtube.com/user/NGYT40

9,7710Vote UpVote DownI am always amazed at your mathematical abilities, and the way that it shows the children how they relate to a direct output.

Excellent work again!

Jim

3,7190Vote UpVote DownWhit+18,4800Vote UpVote DownOf course, I've been a sucker for the magic of spirals since I learned about the sun dagger in Chaco Canyon. Jump to 1:00 at https://www.youtube.com/watch?v=sS73UpIy7zs

- Pablo Picasso

6050Vote UpVote DownAnother interesting point is that “Fibonacci spiral” is connected also with the number “Phi” (the golden ratio) that is always in nature.

Some people call that number as the “fingerprint of God”.

In the next posts I’ll try to make a connection between Fibonacci spiral algorithm and Parallax robots

Here is my web page.http://www.youtube.com/user/NGYT40

6050Vote UpVote DownThe radius of each arc must be a number from the Fibonacci sequence 0,1,1,2,3,5,8,13,,21,34,55,89,144, (We start with 0 and 1 and then each subsequent number is the sum of the previous two). The angle of each arc must be 90 degrees.

The only we have to do is to calculate the appropriate a, b for drive_speed(a,b) commands, and time for the Pause commands using the formulas from post #128 and post #129....

Here is my web page.http://www.youtube.com/user/NGYT40

3,7190Vote UpVote DownBravo and thanks Nikos for the fun idea!

Spin for the S2 is attached also. Use at will! And have fun!

Edit: Side by side comparison...

Whit+18,4800Vote UpVote DownYou guys are having all the fun. Maybe Nikos' spiral challenge is the new figure 8! Certainly a companion challenge.

- Pablo Picasso

9,7710Vote UpVote Down18,4800Vote UpVote DownWhich type of spiral shall I attempt?

Archimedes, Fibonacci, Logarithmic, Parabolic, or Hyperbolic? http://science.jrank.org/.../6396/Spiral-Types-spirals.html

- Pablo Picasso