mondada
Posts: 12
Joined: Thu Jan 16, 2014 10:09 am

Re: Thymio II Educational Robot

Tue Jan 28, 2014 8:33 pm

:-) well alive

simplesi
Posts: 2327
Joined: Fri Feb 24, 2012 6:19 pm
Location: Euxton, Lancashire, UK
Contact: Website

Re: Thymio II Educational Robot

Tue Jan 28, 2014 10:14 pm

And here it is up and running :)
So downloaded the deb package for the Raspberry Pi (installed the other dependacniesa s well)
Connected RPi to Thymio - ran Aesba Studio for Thymio and loaded and ran this program

Code: Select all

call leds.top(0, 32, 0)
motor.left.target=100 
motor.right.target=100 
onevent prox
# if a sensor measures a value less than 300, it does not see the table
if prox.horizontal[2] > 300  then 
    # stop the motors
    motor.left.target=0 
    motor.right.target=0 
    # switch on a red light on the robot to signal an emergency stop 
    call leds.top(32, 0, 0)

end
Which simply switchs RGB led to max Blue
Both motors to 100
And then it waits till the middle front sensor detects an object in front of it, stops and switches RGB LED to Red
https://vine.co/v/Mutv10K7ZD3
Just need to work out how to send commands using Python and I'll have myself a Scratch controlled Thymio :)

This robot is brilliant - it can be manually steered - it can be programmed using a very simple visual tool (not tried it yet but looks easy) and it can be programmed in a simple text language making it EXTREMELY suitable as a multi-level device usable by a wide range of ages and abilities.

And by golly - its cute!!!!
@mondada and your team - well done :)
Simon
Seeking help with Scratch and I/O stuff for Primary age children
http://cymplecy.wordpress.com/ @cymplecy on twitter

simplesi
Posts: 2327
Joined: Fri Feb 24, 2012 6:19 pm
Location: Euxton, Lancashire, UK
Contact: Website

Re: Thymio II Educational Robot

Tue Jan 28, 2014 11:06 pm

@mondada
Just for Information
I tried to register on your forum using email address but I am not getting any confirmation email.

Logging in via Facebook does work though

Simon
Seeking help with Scratch and I/O stuff for Primary age children
http://cymplecy.wordpress.com/ @cymplecy on twitter

simplesi
Posts: 2327
Joined: Fri Feb 24, 2012 6:19 pm
Location: Euxton, Lancashire, UK
Contact: Website

Re: Thymio II Educational Robot

Tue Jan 28, 2014 11:35 pm

And now I've used the info here
https://aseba.wikidot.com/en:thymioexplorer
to get Python to control it :)

:-)

Simon
Seeking help with Scratch and I/O stuff for Primary age children
http://cymplecy.wordpress.com/ @cymplecy on twitter

mondada
Posts: 12
Joined: Thu Jan 16, 2014 10:09 am

Re: Thymio II Educational Robot

Wed Jan 29, 2014 6:47 am

On https://aseba.wikidot.com/en:thymioexplorer you have an example how to control Thymio in python directly from the Raspberry PI ....

Ravenous
Posts: 1956
Joined: Fri Feb 24, 2012 1:01 pm
Location: UK

Re: Thymio II Educational Robot

Wed Jan 29, 2014 9:46 am

simplesi wrote:by simplesi » 28 Jan 2014 23:35
Someone didn't get much sleep last night :lol:

Classic.

simplesi
Posts: 2327
Joined: Fri Feb 24, 2012 6:19 pm
Location: Euxton, Lancashire, UK
Contact: Website

Re: Thymio II Educational Robot

Wed Jan 29, 2014 1:37 pm

Tonight will be the big push target to get this working

On Spacebar
Set MotorA to 100
Set MotorB to 100


and off it trundles :)

Simon
Seeking help with Scratch and I/O stuff for Primary age children
http://cymplecy.wordpress.com/ @cymplecy on twitter

simplesi
Posts: 2327
Joined: Fri Feb 24, 2012 6:19 pm
Location: Euxton, Lancashire, UK
Contact: Website

Re: Thymio II Educational Robot

Wed Jan 29, 2014 6:29 pm

Eureka :)
https://vine.co/v/Mu9TPEDvWVW

I've got simple motor control up and running already :)

Simon
Seeking help with Scratch and I/O stuff for Primary age children
http://cymplecy.wordpress.com/ @cymplecy on twitter

mondada
Posts: 12
Joined: Thu Jan 16, 2014 10:09 am

Re: Thymio II Educational Robot

Wed Jan 29, 2014 7:07 pm

Wow, this was fast! What will you do next night ???? :lol:

simplesi
Posts: 2327
Joined: Fri Feb 24, 2012 6:19 pm
Location: Euxton, Lancashire, UK
Contact: Website

Re: Thymio II Educational Robot

Wed Jan 29, 2014 7:42 pm

Sleep :)
Seeking help with Scratch and I/O stuff for Primary age children
http://cymplecy.wordpress.com/ @cymplecy on twitter

User avatar
meltwater
Posts: 1014
Joined: Tue Oct 18, 2011 11:38 am

Re: Thymio II Educational Robot

Thu Jan 30, 2014 9:16 am

Makes me want one!
______________
http://www.themagpi.com/
A Magazine for Raspberry Pi Users
Read Online or Download for Free.

My new book: goo.gl/dmVtsc

Meltwater's Pi Hardware - pihardware.com

Like the MagPi? @TheMagP1 @TheMagPiTeam

simplesi
Posts: 2327
Joined: Fri Feb 24, 2012 6:19 pm
Location: Euxton, Lancashire, UK
Contact: Website

Re: Thymio II Educational Robot

Thu Jan 30, 2014 9:30 am

It is a brilliant design - The only thing it doesn't do that I'd liked it to do would be ability to enter a sequence of moves via the top arrow keys and get it to repeat them a la BeeBot.

That would require motor wheel encoders to provide the positional feedback required

However, you could make some sort of sensors - stick em to the wheels and use an RPi to count rotations

This would make a good excercise for KS3/4.

The educational possibilities of the device are vast across a wide range of ages.

Couple it with an RPi and WOW!!!!

Simon
PS Did I mention how much I like it?
Seeking help with Scratch and I/O stuff for Primary age children
http://cymplecy.wordpress.com/ @cymplecy on twitter

Ravenous
Posts: 1956
Joined: Fri Feb 24, 2012 1:01 pm
Location: UK

Re: Thymio II Educational Robot

Thu Jan 30, 2014 11:45 am

simplesi wrote:The only thing it doesn't do that I'd liked it to do would be ability to enter a sequence of moves via the top arrow keys and get it to repeat them a la BeeBot.
If the gears have a fairly low ratio, you're operating on a smooth desktop, and you're not carrying that raspi or any other weight you might just be able to use fixed time intervals. They look fairly repeatable on the "Harlem shake" video on the website? Won't be accurate I expect, but it might be passable.

And I think I saw the firmware source on the web too, so maybe anyone who can do PIC programming could rewrite the basic firmware to emulate a Bigtrak or something... :twisted:
PS Did I mention how much I like it?
I think we got that, yes... :lol:

bradvoy
Posts: 8
Joined: Sat Nov 30, 2013 7:50 pm

Re: Thymio II Educational Robot

Thu Jan 30, 2014 2:15 pm

The Thymio II looks great. I've also had my eye on this one: http://www.ebay.com/itm/200946129133?_t ... EBIDX%3AIT

Does anyone with more hardware knowledge than me (probably most of you in this thread) care to compare them in terms of capabilities, components, etc?

simplesi
Posts: 2327
Joined: Fri Feb 24, 2012 6:19 pm
Location: Euxton, Lancashire, UK
Contact: Website

Re: Thymio II Educational Robot

Thu Jan 30, 2014 2:25 pm

Nice bot - its one to be hacked and used by big boys and girls :)

The Thymio is a superlative educational tool for younger roboteers (although quite a lot of fun can be had by older ones as well ) :)

Simon
Seeking help with Scratch and I/O stuff for Primary age children
http://cymplecy.wordpress.com/ @cymplecy on twitter

User avatar
meltwater
Posts: 1014
Joined: Tue Oct 18, 2011 11:38 am

Re: Thymio II Educational Robot

Thu Jan 30, 2014 8:55 pm

One similar to that one from ebay, would be the one by Dawn Robotics:
http://www.dawnrobotics.co.uk/raspberry ... d-sd-card/

Both lack the onboard sensors (IR proximity), feedback (lights/accelerometer) and control (buttons), which the Thymio has. Although obviously they could be added, but wouldn't be as neat (depends on who is going to use it to if that is a problem).
______________
http://www.themagpi.com/
A Magazine for Raspberry Pi Users
Read Online or Download for Free.

My new book: goo.gl/dmVtsc

Meltwater's Pi Hardware - pihardware.com

Like the MagPi? @TheMagP1 @TheMagPiTeam

bradvoy
Posts: 8
Joined: Sat Nov 30, 2013 7:50 pm

Re: Thymio II Educational Robot

Sat Feb 01, 2014 2:27 am

Thanks for the responses about other robots. I appreciate your input.

mondada
Posts: 12
Joined: Thu Jan 16, 2014 10:09 am

Re: Thymio II Educational Robot

Sat Feb 01, 2014 5:25 am

A new example of Raspberry PI / Thymio combination (simpler than the explorer) is on https://aseba.wikidot.com/en:thymioexplorer#toc11 , including the python code to control the Thymio from the raspberry PI (as already said in this post

simplesi
Posts: 2327
Joined: Fri Feb 24, 2012 6:19 pm
Location: Euxton, Lancashire, UK
Contact: Website

Re: Thymio II Educational Robot

Mon Feb 03, 2014 10:50 pm

So I can control the motors and read the proximity IR sensors and the 2 at the bottom for line following and even read the built in accelerometer :)

The silly thing is that it is seemingly quite difficult to control the on board LEDS!

I'm playing with a bodged version of ScratchGPIO and I'll have to see if I can make it all play together nicely of whether I'll need to make a special Thymio version (but I want to avoid that if possible)

This means that the Thymio can be used in its own right with all the standalone facilities and programming using Aseba using a desktop/laptop but now with the added advantage of bolting on an RPi and it becoming a Scratch bot :)

I'll need to see if I can get it running using my SID set-up http://cymplecy.wordpress.com/2013/08/0 ... ce-device/ as the CPU usage is nearly maxed out so off-loading Scratch onto main computer should help that a lot

Simon
Seeking help with Scratch and I/O stuff for Primary age children
http://cymplecy.wordpress.com/ @cymplecy on twitter

simplesi
Posts: 2327
Joined: Fri Feb 24, 2012 6:19 pm
Location: Euxton, Lancashire, UK
Contact: Website

Re: Thymio II Educational Robot

Tue Feb 04, 2014 10:49 pm

I wrote a little line following script and here it is in action using the Thymio

https://vine.co/v/MaMulwFqd5p
Seeking help with Scratch and I/O stuff for Primary age children
http://cymplecy.wordpress.com/ @cymplecy on twitter

User avatar
meltwater
Posts: 1014
Joined: Tue Oct 18, 2011 11:38 am

Re: Thymio II Educational Robot

Wed Feb 05, 2014 9:22 am

simplesi wrote:I wrote a little line following script and here it is in action using the Thymio

https://vine.co/v/MaMulwFqd5p
Soon have it cleaning the floors and fetching the tea!
______________
http://www.themagpi.com/
A Magazine for Raspberry Pi Users
Read Online or Download for Free.

My new book: goo.gl/dmVtsc

Meltwater's Pi Hardware - pihardware.com

Like the MagPi? @TheMagP1 @TheMagPiTeam

User avatar
joan
Posts: 14193
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Thymio II Educational Robot

Wed Feb 05, 2014 9:37 am

simplesi wrote:I wrote a little line following script and here it is in action using the Thymio

https://vine.co/v/MaMulwFqd5p
Doesn't play for me. I get a non-functioning flash like button top-left. Does Vine work with Linux?

simplesi
Posts: 2327
Joined: Fri Feb 24, 2012 6:19 pm
Location: Euxton, Lancashire, UK
Contact: Website

Re: Thymio II Educational Robot

Wed Feb 05, 2014 10:38 am

Maybe it uses flash :( (Just worked for me on XP/Firefox in a school)

Simon
Seeking help with Scratch and I/O stuff for Primary age children
http://cymplecy.wordpress.com/ @cymplecy on twitter

Sleep Mode zZ
Posts: 319
Joined: Sun Aug 19, 2012 5:56 am
Location: Finland

Re: Thymio II Educational Robot

Wed Feb 05, 2014 11:30 am

joan wrote:
simplesi wrote:I wrote a little line following script and here it is in action using the Thymio

https://vine.co/v/MaMulwFqd5p
Doesn't play for me. I get a non-functioning flash like button top-left. Does Vine work with Linux?
Works for me (Ubuntu 12.04). I have Flash working so maybe it is that is needed. I'm using Opera and htop reveals that Opera's pluginwrapper gets some action on that page.

User avatar
joan
Posts: 14193
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Thymio II Educational Robot

Wed Feb 05, 2014 11:50 am

Laptop Debian jessie/sid iceweasel shockwave flash plug-in. Black screen even after enabling javascript and cookies for half a dozen unrelated sites.

Return to “Automation, sensing and robotics”