Control an NXT from a Scratch-like Environment

Post your NXJ projects, project ideas, etc here!

Moderators: roger, imaqine, 99jonathan

clintonb
Active User
Posts: 132
Joined: Fri May 28, 2010 1:44 am
Location: Cardston, Alberta, Canada
Contact:

Control an NXT from a Scratch-like Environment

Postby clintonb » Fri May 28, 2010 1:46 am

Greetings.

Scratch is an introductory programming language targeted at kids, in which they can drag and drop code tiles to form their programs. I recently learned that Scratch will communicate to other programs over a network socket via a simple protocol, and wrote a program to stand between an extended variation of Scratch and the NXT to allow you to control the NXT from that simple environment. My write-up on the results is here.

My goal is to go further than that -- I'd really like to make it so that kids can code something up in a Scratch-like environment, control and debug the robot in real-time (possibly even using the standard NXT firmware), and export the code to something they can compile and run on the robot autonomously. I'd certainly be interested in any feedback on the idea!

User avatar
esmetaman
Advanced Member
Posts: 311
Joined: Wed Sep 13, 2006 12:16 am
Location: Madrid, Spain
Contact:

Postby esmetaman » Fri May 28, 2010 8:07 pm

Pretty interesting post. I will test.

Cheers
Juan Antonio Breña Moral
http://www.juanantonio.info/lejos-ebook/
https://github.com/jabrena/livingrobots
http://www.iloveneutrinos.com/

clintonb
Active User
Posts: 132
Joined: Fri May 28, 2010 1:44 am
Location: Cardston, Alberta, Canada
Contact:

Postby clintonb » Fri May 28, 2010 9:45 pm

I'm glad to hear that, esmetaman.

Do you mean to say that you'll try out the code I've posted, or that you are interested in testing Enchanting when I have something ready for testing?

xpansive
New User
Posts: 7
Joined: Wed May 19, 2010 11:23 pm

Postby xpansive » Sat May 29, 2010 1:54 am

Interesting idea - I haven't used Scratch, but I've heard its very good for people learning to program.

User avatar
esmetaman
Advanced Member
Posts: 311
Joined: Wed Sep 13, 2006 12:16 am
Location: Madrid, Spain
Contact:

Postby esmetaman » Sat May 29, 2010 11:58 am

Hi,

I will test the platform and I suppose that I will post some example to show my results :)

In secondary school Scratch is fantastic to teach how to develop programs.
Juan Antonio Breña Moral
http://www.juanantonio.info/lejos-ebook/
https://github.com/jabrena/livingrobots
http://www.iloveneutrinos.com/


Return to “NXJ Projects”

Who is online

Users browsing this forum: No registered users and 0 guests