Hello everyone,
I figured I'd post this to see if anyone is interested. I have a new project with Scratch for the Lego Mindstorms NXT robots which seems to work, but I hope to smooth out some rough edges over the next month or so. I am aware of Enchanting, which didn't suit my needs. In contrast, my project uses the standard NXT firmware (not Lejos), and the standard Scratch 1.4 install (not BYOB). It's an offshoot of my pynxc project which translates (limited) Python code to NXC (Not Exactly C) which writes to the robot. My new project, scratchnxc, included in the pynxc files (http://web.bryant.edu/~bblais/projects_html/projects.html) reads Scratch .sb files, and translates to pynxc code and uploads to the robot. The actual program watches a selected .sb file for changes, and automatically uploads whenever the scratch project is saved. Check out the docs for the dependencies, examples, etc...
Essentially, I use variables to translate to the robot commands
set [power A] to (100) set [count] to (0) repeat until <(sensor 1) < [50]> change [count] by (1) endi've translated all of the control structures, many of the operators, and a small subset of display and sound. There is at least one worked example included.
Last edited by Paddle2See (2012-11-02 11:20:20)
Offline
Oooh, cool! Are you parsing .sb files yourself?
Offline
Wow, this is quite cool! Unfortunately (or fortunately!), I have LeJos, otherwise I would try this.
Offline
Ah, I see you're using Kurt! This is really cool
Offline
Cool idea! You could make some pretty awesome projects with this.
Offline
*bump*
Are you using the regular software that comes with the original NXT or something else?
Either way very good idea.
Offline
Proanimation wrote:
Are you using the regular software that comes with the original NXT or something else?
I tested it with the original firmware on the NXT, and it seemed to work, if that's what you mean...
Offline
blob8108 wrote:
Proanimation wrote:
Are you using the regular software that comes with the original NXT or something else?
I tested it with the original firmware on the NXT, and it seemed to work, if that's what you mean...
Oh good I really would want that software when you finish with it. It would be very useful.
Offline
I'd like to test your project with stander firmware NXT and NXC.
I'll check and test your project.
Thanks!
Last edited by touch_classroom (2012-11-20 09:50:51)
Offline