Discuss Scratch
- Discussion Forums
- » Connecting to the Physical World
- » Controlling two WeDo motors separately
- T00M
- Scratcher
3 posts
Controlling two WeDo motors separately
https://sites.google.com/site/michaelvorburger/wedoHi sxhat, Here is the link:
1. Download http://squeakland.jp/abee/tmp/controlingTwoMotors.zip and extract it.
2. Put all files into your Scratch folder.
3. Drag and drop controlingTwoMotors.image to Scratch.exe (Windows) or Scratch.app (Mac OS X).
Enjoy!
Kazuhiro Abe
Hi abee,
I would like to use two independant motors and at least one additional sensor. I managed to mesh Scratch 1.4 to get data from two different USB hubs. I also can use your ControllinTwoMotors-Image, but I do not know how to activate the mesh button in your TwoMotors-Image? The “R” is missing to “turn fill screen off”. The upper left corner shows “Based on Scratch” unstead SCRATCH and “Shift-Click” does not work. Could you or any one else give me a hint, please?
- T00M
- Scratcher
3 posts
Controlling two WeDo motors separately
Sorry for the stupid question - I can use the one motor on the first USB hub and the other on the second one, without the TwoMotors-Image.
- abee
- Scratcher
1000+ posts
Controlling two WeDo motors separately
Hi, T00M
Thank you for using my mod.
Try Shift-Click-File menu instead of Shift-Click-R.
Best,
Kazuhiro Abe
Thank you for using my mod.
Try Shift-Click-File menu instead of Shift-Click-R.
Best,
Kazuhiro Abe
- T00M
- Scratcher
3 posts
Controlling two WeDo motors separately
Thanks a lot, Kazuhiro Abe!
Now its working perfect. It is much easyer to have the sensors in one Scratch and copy their values to the other Scratch, where the two motors are controlled by one program.
Having the two motors in two different Scratches means to doubble a lot of code and a lot of bidirectional interactions between the two Scratches.
Regards,
Tom
Now its working perfect. It is much easyer to have the sensors in one Scratch and copy their values to the other Scratch, where the two motors are controlled by one program.
Having the two motors in two different Scratches means to doubble a lot of code and a lot of bidirectional interactions between the two Scratches.
Regards,
Tom
- ferretl
- New to Scratch
2 posts
Controlling two WeDo motors separately
Thanks a lot, Kazuhiro Abe!
Now its working perfect. It is much easyer to have the sensors in one Scratch and copy their values to the other Scratch, where the two motors are controlled by one program.
Having the two motors in two different Scratches means to doubble a lot of code and a lot of bidirectional interactions between the two Scratches.
Regards,
Tom
Could you provide some construction? I also have two usb hub and would like to do this.
First how to mesh Scratch get data from two different USB hubs?
I also don't know how to open mesh for TwoMotors-Image. I changed the browser settings, but don't find the “share” menu in TwoMotors-Image.
- abee
- Scratcher
1000+ posts
Controlling two WeDo motors separately
Hi, ferretl
Please check the following thread.
http://scratchforums.blob8108.net/forums/viewtopic.php?id=40467&p=2#p719696
Please check the following thread.
http://scratchforums.blob8108.net/forums/viewtopic.php?id=40467&p=2#p719696
- PerotLoLladre
- New to Scratch
2 posts
Controlling two WeDo motors separately
Dear Kazuhiro Abe,
I feel really grateful to you for your file http://squeakland.jp/abee/tmp/NanoBoardAGWithMotors.zip. It works great for UBUNTU 14.04.
My son is going to receive a second WeDo motor for Christmas and I was worried about how to manage two motors, since Ubuntu 14.04 (64 bits) as you may know doesn't support WeDo hardware.
Still one question: Is it possible to add one or two sensors in the same hub used to control both motors? I guess the answer is no, but why is it physically possible then? It seems nonsense…
Regards,
I feel really grateful to you for your file http://squeakland.jp/abee/tmp/NanoBoardAGWithMotors.zip. It works great for UBUNTU 14.04.
My son is going to receive a second WeDo motor for Christmas and I was worried about how to manage two motors, since Ubuntu 14.04 (64 bits) as you may know doesn't support WeDo hardware.
Still one question: Is it possible to add one or two sensors in the same hub used to control both motors? I guess the answer is no, but why is it physically possible then? It seems nonsense…
Regards,
- PerotLoLladre
- New to Scratch
2 posts
Controlling two WeDo motors separately
I meant Ubuntu doesn't support WeDo hardware when using Scratch 2.0…
- abee
- Scratcher
1000+ posts
Controlling two WeDo motors separately
Hi PerotLoLladre,
Thank you for playing my mod.
I'm not sure Scratch 2.0 supports two motor or not, sorry.
However your son can use 2nd motor with my mod.
Unfortunately you cannot connect two motors and sensors at the same time.
You need to choose one of the following combination, two motors, one motor + one sensor, two sensors.
Another solution is using PicoBoard with WeDo.
All sensors of PicoBoard are working fine with WeDo at the same time. So you can use various sensors of PicoBoard to control two motors of WeDo.
I hope you find it informative.
Best,
Thank you for playing my mod.
I'm not sure Scratch 2.0 supports two motor or not, sorry.
However your son can use 2nd motor with my mod.
Unfortunately you cannot connect two motors and sensors at the same time.
You need to choose one of the following combination, two motors, one motor + one sensor, two sensors.
Another solution is using PicoBoard with WeDo.
All sensors of PicoBoard are working fine with WeDo at the same time. So you can use various sensors of PicoBoard to control two motors of WeDo.
I hope you find it informative.
Best,
- stkarapy
- Scratcher
2 posts
Controlling two WeDo motors separately
Goodmorning from Greece. I recently added this extention for scratch and two motors work special! The problem is that i want to connent two motors and 1 distance sensor in one usb port. Can this work? I want motor A to work “forever” till the end of the program and motor B to work when distance sensor find something in 4 cm. I put two motors together (one above the other) and distance sensor in the other side of lego wedo port, but doesn t work, two motors work the same way. Also i put motor A and distance sensor together and motor B in the other side of wedo. Nothing moved! . My head will explode! Is there any idea?
- abee
- Scratcher
1000+ posts
Controlling two WeDo motors separately
Hi stkarapy,
Unfortunately, you cannot connect two motors and 1 distance sensor in one usb hub.
If you have two PCs and two hubs, you can connect them via Mesh.
Or you can use PicoBoard with WeDo in the same time. If you have a distance sensor for PicoBoard, you can control WeDo motor by it.
Unfortunately, you cannot connect two motors and 1 distance sensor in one usb hub.
If you have two PCs and two hubs, you can connect them via Mesh.
Or you can use PicoBoard with WeDo in the same time. If you have a distance sensor for PicoBoard, you can control WeDo motor by it.
- stkarapy
- Scratcher
2 posts
Controlling two WeDo motors separately
thanks abee! I will check it in lab at school because i don t have second pc at home. Thanks anyway my friend!
- Discussion Forums
- » Connecting to the Physical World
- » Controlling two WeDo motors separately