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

#1 2010-05-31 14:36:11

krackers
Scratcher
Registered: 2010-05-08
Posts: 61

The nxt+scratch development thread (Mindscratch!)

People have always wanted nxt support in scratch. Some people have found ways to get sensor data through python using the remote sensor feature. Me, clintonb, and anyone else who wants to join will do what people wanted for years.

                                                 Mindscratch!

What is mindscratch? It is a project intended to bring full mindstorms capability to scratch. This includes motor, sensor, and sound data. Input and Output both included.

When will it be done? We don't know yet....

Members:

Krackers
Clintonb
Anyone else who can contribute or is interested in joining.

Progress...

So far, we've got a few ideas on how it will go. Here is another part... We will post updates and you will get to try out alpha versions as we go!

Our ultimate goal.

We want to create a link to nxt from scratch. No custom firmware on the nxt. You may or may not need python or ruby installed. It will utilize custom byob blocks that control the motors, and hopefully someone like NXII will package the custom block into a standard block.

What we've got so far.

Right now, we've just begun development. If you saw clintonb's post on sensor boards forum, you may know he created a way to interface with lejos. However, this only works with bluetooth (not important because usb port is easy), but the main problem is it takes HOURS to set up...

I've made a python version that had the same idea of using custom byob blocks. It works great and all but...... it will simply refuse to connect to my computer. And that too needs all type of extra software like nxt python, pyusb, and libusb. In the end, libusb may even disable the usb ports on you computer  sad

We can try and pick one of those and try to improve it... or...

We can try and natively use squeak in controlling the nxt.
People have already done this. Ex:

http://tecnodacta.com.ar/gira/projects/physical-etoys/squeaknxt/

and http://www.hpi.uni-potsdam.de/hirschfeld/projects/nxtalk/index.html

The first only supports bluetooth and the second needs custom firmware on the nxt.

However, if we took the first one, made it work on usb aswell, took the main nxt source from that, put it in scratch, and made a block that accesses the nxt source, we may have a winner.

So right now this is what i've got.

Downloads:

My python file: To be released soon.

Clintonb's java: Get it from
http://robotclub.ab.ca/blog/27/code-blocks-electronic-bricks-and-lego-beams

Sqeaknxt: http://tecnodacta.com.ar/gira/projects/physical-etoys/squeaknxt/

Nxtalk
http://www.hpi.uni-potsdam.de/hirschfeld/projects/nxtalk/index.html

One interesting thing though. Squeak nxt has a legonxt.dll similar to the scratch wedo.dll. I tried taking the nxt, changing the name, and replacing wedo.dll, but as expected, it didn't work.

__________________________

mindscratch!

Offline

 

#2 2010-05-31 15:03:12

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

Re: The nxt+scratch development thread (Mindscratch!)

While you do this, can you do it for the WiiMote as it is very very similar. Bluetooth, sensors. and so on.


You can now reach me on Twitter @johnnydean1_

Offline

 

#3 2010-05-31 16:31:55

krackers
Scratcher
Registered: 2010-05-08
Posts: 61

Re: The nxt+scratch development thread (Mindscratch!)

Hm.... you can already do it with a glovepie script though.

Offline

 

#4 2010-05-31 16:34:06

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

Re: The nxt+scratch development thread (Mindscratch!)

Yes, but use the sensors dropdowns on Scratch to use the sensors on the WiiMote?


You can now reach me on Twitter @johnnydean1_

Offline

 

#5 2010-05-31 16:46:36

krackers
Scratcher
Registered: 2010-05-08
Posts: 61

Re: The nxt+scratch development thread (Mindscratch!)

The only sensors would be ir and motion. The sensors drop down would be a good idea. I'll look into it. This is what I got in mind.

Get ir and motion as number values. Forward this through python/ruby/whatever to scratch. Done.

You will need python installed though. I'm working on a script.

Offline

 

#6 2010-05-31 16:50:33

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

Re: The nxt+scratch development thread (Mindscratch!)

Your not getting my point. I DO NOT WANT TO USE MORE PROGRAMS! I want it all done in Scratch.

And the WiiMote has:
IR Sensors
Motion Sensors
Tilt Sensors
All the buttons
Battery Sensors

So try all these just using Scratch


You can now reach me on Twitter @johnnydean1_

Offline

 

#7 2010-05-31 17:23:34

krackers
Scratcher
Registered: 2010-05-08
Posts: 61

Re: The nxt+scratch development thread (Mindscratch!)

Oh...

Ok...

That'll take more time. I misunderstood you.

I'll do it after mindscratch is done. Once mindscratch is done and we understand how to do a serial port on bluetooth over sqeak, it should be much easier.

Offline

 

#8 2010-05-31 17:26:04

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

Re: The nxt+scratch development thread (Mindscratch!)

Ok, look at this: http://code.google.com/p/wii2scratch/downloads/list


You can now reach me on Twitter @johnnydean1_

Offline

 

#9 2010-06-01 19:01:23

krackers
Scratcher
Registered: 2010-05-08
Posts: 61

Re: The nxt+scratch development thread (Mindscratch!)

That has a middle man though... I think I may be able to join scratch with that...

Offline

 

#10 2010-06-01 19:15:39

krackers
Scratcher
Registered: 2010-05-08
Posts: 61

Re: The nxt+scratch development thread (Mindscratch!)

sent

Offline

 

#11 2010-06-02 02:54:16

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

Re: The nxt+scratch development thread (Mindscratch!)

What do you mean sent?

I was giving you a exapmle on how to do it. Just  add the Java to Scratch. That is the first 1 I have seen that adds a thing to the sensor dropdown.


You can now reach me on Twitter @johnnydean1_

Offline

 

#12 2010-06-02 02:58:01

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

Re: The nxt+scratch development thread (Mindscratch!)

And try here. It may help ALOT: http://vst.ensm-douai.fr/ESUG2009Media/uploads/1/squeakNxt-EsugAwards2009.pdf

And can I have the LegoNXT.dll you said about


You can now reach me on Twitter @johnnydean1_

Offline

 

#13 2010-06-02 18:54:55

krackers
Scratcher
Registered: 2010-05-08
Posts: 61

Re: The nxt+scratch development thread (Mindscratch!)

I know that link...

Anyway... Here's the dll

http://www.mediafire.com/?bkqzlofm21m

Offline

 

#14 2010-06-03 11:40:27

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

Re: The nxt+scratch development thread (Mindscratch!)

Not working


You can now reach me on Twitter @johnnydean1_

Offline

 

#15 2010-06-03 20:04:00

krackers
Scratcher
Registered: 2010-05-08
Posts: 61

Re: The nxt+scratch development thread (Mindscratch!)

I know... I said it doesn't work.

Offline

 

#16 2010-06-04 02:54:11

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

Re: The nxt+scratch development thread (Mindscratch!)

The download's not working!


You can now reach me on Twitter @johnnydean1_

Offline

 

#17 2010-06-04 03:15:51

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

Re: The nxt+scratch development thread (Mindscratch!)

I found a diffrent download link, and have modded it in, but cant test it since I have no NXT  sad  . If you could find a WiiMote.dll I would be grateful  smile  .


You can now reach me on Twitter @johnnydean1_

Offline

 

#18 2010-06-04 19:56:06

krackers
Scratcher
Registered: 2010-05-08
Posts: 61

Re: The nxt+scratch development thread (Mindscratch!)

i can test

Offline

 

#19 2010-06-05 12:29:58

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

Re: The nxt+scratch development thread (Mindscratch!)

Well is there a WiiMote.dll?


You can now reach me on Twitter @johnnydean1_

Offline

 

#20 2010-06-05 12:43:16

krackers
Scratcher
Registered: 2010-05-08
Posts: 61

Re: The nxt+scratch development thread (Mindscratch!)

Probably not...

I can test the nxt version though.

Offline

 

#21 2010-06-06 09:20:19

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

Re: The nxt+scratch development thread (Mindscratch!)

I know you can test it, but I did what you did.


You can now reach me on Twitter @johnnydean1_

Offline

 

#22 2010-07-01 15:39:05

krackers
Scratcher
Registered: 2010-05-08
Posts: 61

Re: The nxt+scratch development thread (Mindscratch!)

We have progress... More on that soon

Name is now "enchanted"

Offline

 

#23 2010-07-01 15:48:14

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

Re: The nxt+scratch development thread (Mindscratch!)

cool


You can now reach me on Twitter @johnnydean1_

Offline

 

#24 2010-07-01 15:55:43

The-Whiz
Scratcher
Registered: 2007-07-09
Posts: 1000+

Re: The nxt+scratch development thread (Mindscratch!)

I'm looking forward to this, if you can pull it off.

Offline

 

Board footer