This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-07-14 16:02:29

GraemeK
Scratcher
Registered: 2010-06-14
Posts: 73

WeDo - will it work?

I didn't want to post this in the Scratch board forum because it is not about a scratch board.


To me it looks as if you can only connect 2 items at a time to the hub.
Is there only 2 spaces?
http://info.scratch.mit.edu/sites/infoscratch.media.mit.edu/files/image/wedohub-distancesensor.jpg

Last edited by GraemeK (2011-04-05 12:50:53)


http://internetometer.com/image/13865.png

Offline

 

#2 2010-07-14 19:58:15

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: WeDo - will it work?

I have LEGO Wedo, and that's a good question.

Technically, there are only two spaces for the three sensors, but you can stack some of them on top of each other, so you can use them all at once  smile

EDIT: I'm actually wrong - see my other post here.

Last edited by Lucario621 (2010-07-15 11:35:53)


http://i.imgur.com/WBkM2QQ.png

Offline

 

#3 2010-07-15 01:04:25

Locomule
Scratcher
Registered: 2009-08-24
Posts: 500+

Re: WeDo - will it work?

I have taught classes using Pico Blocks and Lego kits containing Wedo motors. With the Pico's you can use up to 4 sensors at once. I had access to multiple kits. I never did it but I wanted to either build a walking, animated robot or a cool logic circuit that ran multiple projects. The point was to use lights and light sensors (or some other similar method) to send data between Picos so they could interact and either think together or function as a single unit.

But we did make some remote control cars, that was fun  smile


aka Pain from DragonSpires, Delrith Online, BotBattle, Urban Dead etc etc lol

Offline

 

#4 2010-07-15 02:11:47

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: WeDo - will it work?

Lucario621 wrote:

I have LEGO Wedo, and that's a good question.

Technically, there are only two spaces for the three sensors, but you can stack some of them on top of each other, so you can use them all at once  smile

But be aware that it can not control more than one motor at a time.  You can hook up more than one motor but it will respond to the same commands as all other motors.  Also, we had difficulties on Scratch Day when we tried stacking the connections up.  We found that we really could only reliably connect two devices at a time.

Maybe other people have other experiences with stacking the connections they can share.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#5 2010-07-15 05:47:03

GraemeK
Scratcher
Registered: 2010-06-14
Posts: 73

Re: WeDo - will it work?

Paddle2See wrote:

But be aware that it can not control more than one motor at a time.  You can hook up more than one motor but it will respond to the same commands as all other motors.

If I was to connect the 1st motor and set it to that way and connect another, would they turn opposite ways?
_________________________________________________________________________________

Paddle2See wrote:

Also, we had difficulties on Scratch Day when we tried stacking the connections up.  We found that we really could only reliably connect two devices at a time.

Maybe other people have other experiences with stacking the connections they can share.

What do you mean by "could only reliably"?
_________________________________________________________________________________

I have a few projects ready as I'm planning to buy a WeDo to check them before uploading them.


http://internetometer.com/image/13865.png

Offline

 

#6 2010-07-15 11:35:05

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: WeDo - will it work?

Paddle2See wrote:

But be aware that it can not control more than one motor at a time.  You can hook up more than one motor but it will respond to the same commands as all other motors.

This is true....  hmm

Paddle2See wrote:

Also, we had difficulties on Scratch Day when we tried stacking the connections up.  We found that we really could only reliably connect two devices at a time.

Maybe other people have other experiences with stacking the connections they can share.

Hmm. Just testing it out now, I think you're right!  yikes  Only 2 sensors at a time...

I even tested it with the LEGO WeDo software, and it doesn't work.

So I've decided to refer to the Teachers' Guide and the FAQ, and it said this:

Q: How many Motors or Sensors can you add to a project?
A:
You can use a maximum of three LEGO USB Hubs (6 motors or sensors) at the same time

So that basically means only 2 sensors per hub. Darn  sad .


http://i.imgur.com/WBkM2QQ.png

Offline

 

#7 2010-07-15 16:18:00

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: WeDo - will it work?

Can someone then make a

use  motor %n in a forward direction

%n = number


block?


You can now reach me on Twitter @johnnydean1_

Offline

 

#8 2010-07-16 08:37:41

abee
Scratcher
Registered: 2007-05-25
Posts: 100+

Re: WeDo - will it work?

Scratch has basic capability of controlling two motors. If you browse the class named WeDoPlugin of ScratchSourceCode1.4.image, you find the methods about motorA and motorB. So it's possible to make blocks for them.

Offline

 

#9 2010-08-10 01:00:50

abee
Scratcher
Registered: 2007-05-25
Posts: 100+

Re: WeDo - will it work?

abee wrote:

Scratch has basic capability of controlling two motors. If you browse the class named WeDoPlugin of ScratchSourceCode1.4.image, you find the methods about motorA and motorB. So it's possible to make blocks for them.

I did it.
http://twitpic.com/2d7py6/full

Offline

 

#10 2010-08-10 01:36:14

hdarken
Scratcher
Registered: 2008-06-26
Posts: 1000+

Re: WeDo - will it work?

abee wrote:

abee wrote:

Scratch has basic capability of controlling two motors. If you browse the class named WeDoPlugin of ScratchSourceCode1.4.image, you find the methods about motorA and motorB. So it's possible to make blocks for them.

I did it.
http://twitpic.com/2d7py6/full

Or you can save time. http://twitpic.com/2d7py6/full
Edit: FAIL.

Last edited by hdarken (2010-08-10 01:37:17)


http://i.imgur.com/VskBk.png
http://i.imgur.com/tgxVZ.jpg

Offline

 

#11 2010-08-11 15:20:59

abee
Scratcher
Registered: 2007-05-25
Posts: 100+

Re: WeDo - will it work?

Here is the image file and others for this function.
http://squeakland.jp/abee/tmp/controlingTwoMotors.zip

Offline

 

#12 2010-12-10 15:48:42

anselm13
Scratcher
Registered: 2009-10-27
Posts: 5

Re: WeDo - will it work?

abee, do you know if more than one wedo hub is supported in Scratch 1.4?

Offline

 

#13 2010-12-11 21:58:24

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: WeDo - will it work?

abee wrote:

abee wrote:

Scratch has basic capability of controlling two motors. If you browse the class named WeDoPlugin of ScratchSourceCode1.4.image, you find the methods about motorA and motorB. So it's possible to make blocks for them.

I did it.
http://twitpic.com/2d7py6/full

Really nice! I'm surprised I didn't see this post before...


http://i.imgur.com/WBkM2QQ.png

Offline

 

#14 2011-03-30 12:32:19

schoelles
New Scratcher
Registered: 2011-03-29
Posts: 7

Re: WeDo - will it work?

Hi abee, do you have any win32 binaries? I'm afraid I'm not capable of compiling this stuff:(
Thanks in advance!!!

Offline

 

#15 2011-04-01 02:51:10

abee
Scratcher
Registered: 2007-05-25
Posts: 100+

Re: WeDo - will it work?

schoelles wrote:

Hi abee, do you have any win32 binaries? I'm afraid I'm not capable of compiling this stuff:(
Thanks in advance!!!

You can use standard Scratch.exe for my image.
Extract controlingTwoMotors.zip and put all file into the folder that you installed scratch (C:\Program Files\Scratch). Then drag and drop ControllingTwoMotors.image to Scratch.exe.

Offline

 

#16 2011-04-01 05:16:22

abee
Scratcher
Registered: 2007-05-25
Posts: 100+

Re: WeDo - will it work?

anselm13 wrote:

abee, do you know if more than one wedo hub is supported in Scratch 1.4?

Negative. It depends on WeDoPlugin. If I can modify that source code, it might be possible. Unfortunately ScratchPluginSrc1.4 does not include it.

Offline

 

#17 2011-04-01 18:40:58

schoelles
New Scratcher
Registered: 2011-03-29
Posts: 7

Re: WeDo - will it work?

abee, thanks for the hint. Works fine with 2 motors  smile   But now I realized that my 2nd WeDo hub is not reconized, as anselm13 stated. So it's kind of usless, as with 2 motors I have no sensors at all  sad
It would be a hard work to modify that source code?

Offline

 

#18 2011-04-01 20:45:11

abee
Scratcher
Registered: 2007-05-25
Posts: 100+

Re: WeDo - will it work?

schoelles wrote:

abee, thanks for the hint. Works fine with 2 motors  smile   But now I realized that my 2nd WeDo hub is not reconized, as anselm13 stated. So it's kind of usless, as with 2 motors I have no sensors at all  sad
It would be a hard work to modify that source code?

It's nice to hear your success.
The problem is not difficulty of modification. As I wrote the source code of WeDoPlugin is not opened for public. I cannot do anything without it. Ask Scratch Team about this.
BTW, you can connect both of sensor and motor to same connector of the hub by stacking. But the value of sensor is not reliable in this case. It may be possible to control it by tuning your project.
Another solution is to use PicoBoard sensors with WeDo.

Offline

 

#19 2011-04-02 12:39:45

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: WeDo - will it work?

So, does the 2 sensors work independently?


You can now reach me on Twitter @johnnydean1_

Offline

 

#20 2011-04-03 01:08:44

schoelles
New Scratcher
Registered: 2011-03-29
Posts: 7

Re: WeDo - will it work?

abee wrote:

...you can connect both of sensor and motor to same connector of the hub by stacking. But the value of sensor is not reliable in this case.

That's what I've found as well. When stacking one sensor on a motor, the motor doesn't work anymore ad the sensor vaules of both sensor (though one has been connected only) are changed with unpredictable strange values (e.g.77 for the tilt).

abee wrote:

It may be possible to control it by tuning your project.

I'm not sure what you're suggesting me here?

abee wrote:

Another solution is to use PicoBoard sensors with WeDo.

I've ordered one already but it takes time, as they seems to be out of stock currently.

johnnydean1 wrote:

So, does the 2 sensors work independently?

If you connect the 2 sensors only (without any motor), then it works fine. But then you have no chance to control the motors, as a 2nd Hub is not recognized  sad

Offline

 

#21 2011-04-03 03:03:21

abee
Scratcher
Registered: 2007-05-25
Posts: 100+

Re: WeDo - will it work?

I have another idea.
Scratch has remote sensor function. It may be possible to connect two PCs and WeDo hubs via network.
If so they can get/put sensor value and control motor each other.

Offline

 

#22 2011-04-03 11:55:20

schoelles
New Scratcher
Registered: 2011-03-29
Posts: 7

Re: WeDo - will it work?

And the WeDo plugin is not open source? May the have license restrictions from Lego? Where to ask for more information?

Offline

 

#23 2011-04-04 01:26:52

djembii
New Scratcher
Registered: 2011-03-25
Posts: 13

Re: WeDo - will it work?

abee wrote:

I have another idea. Scratch has remote sensor function...

I've searched for that, where to switch it on?

Offline

 

#24 2011-04-04 09:58:12

djembii
New Scratcher
Registered: 2011-03-25
Posts: 13

Re: WeDo - will it work?

I've found the answer how to switch Mesh on:
http://scratch.mit.edu/forums/viewtopic.php?pid=344974#p344974

So now is the task to find a solution without python for Windows. Does there exist any specification of that remote protocol?

Offline

 

#25 2011-04-05 07:14:57

abee
Scratcher
Registered: 2007-05-25
Posts: 100+

Re: WeDo - will it work?

djembii wrote:

I've found the answer how to switch Mesh on:
http://scratch.mit.edu/forums/viewtopic.php?pid=344974#p344974

So now is the task to find a solution without python for Windows. Does there exist any specification of that remote protocol?

Mesh is an application that used the remote sensor protocol. It works without other language or environment.
I think it is suitable for this situation, how to use two usb hubs.
However it requires two PCs and some skill of network.
Do you have both of them? If so I will tell you how it works.

Offline

 

Board footer