Slashdot Mirror


Lego + Linux HOWTO

luge writes "In more than a few Lego articles posted here, I've seen the question asked "But can I use the Mindstorms under Linux?" Well, the new Lego + Linux mini-HOWTO provides the answer. There are (currently) 7 different software options in 7 different languages (including C, Perl, and Java) for the Linux-based Mindstorms owner."

36 of 82 comments (clear)

  1. cat shooter by austad · · Score: 2

    Anyone have any ideas on how I can build a little mindstorms thing that will sit on my kitchen counter and spray my cats with water when they jump up there? I know when I'm at work they jump up on the counter and dance around until they get tired and then fall asleep next to the coffee maker until they hear my car pull up, then they run to the other room and pretend they've been there all day.

    Motion sensing might not work very well because people who walk by would get sprayed. Image recognition would be best, but I'm not quite sure how to go about it.

    --
    Need Free Juniper/NetScreen Support? JuniperForum
    1. Re:cat shooter by austad · · Score: 2

      I need to figure out how to get them to quit clawing the sofa all to hell too. Too bad Aibo isn't faster and smarter.

      Someone told me to make a great big sheet of duct tape and lay it sticky side up on the counter top, but I don't think I wanna pull that off an irate cat along with all of his fur. I gave one of 'em a bath last night and he almost killed me.

      --
      Need Free Juniper/NetScreen Support? JuniperForum
  2. Re:Where goeth Legos? by georgeha · · Score: 2

    Getting off-topic, but you raise a very interesting point. I'm approaching 30 (shudder), and I think I saw the transition of legos from wholly generic to specialized. The space sets came out when I was a kid, as well as the first motor (big, black brick), and then the technics, and there compact motor. Generally, though, even with space sets and such, you got mostly generic bricks, with a few special types, but even those could be used for many things.

    I think the first motors were in the mid 60's, so unless you're approaching 30 like Merlin does, they predated you.

    Over the years, it seems the specialization continued to where legos are hyper-specialized. A set comes with a few normal bricks and many specialty items that don't have many uses.

    Now, maybe it's reversing, with the greater amounts of generic pieces in the mindstorms and such sets, despite highly-specified star-wars, castle, and rock war sets.


    Yes, this whole process is decried as the juniorization of Lego, and apparently even mentioned in Coupland's Microserfs.

    Don't lump Star Wars in with the castle or Rock Raiders sets, though. The Star Wars sets are an excellent value for the money, and don't have many overspecialized parts, unlike Rock Raiders.

    The X-wing for example, had R2D2, a canopy and a few printed parts for specialized parts, everything else was stock. Lots of grey slopes and plates, very tasty.

    George

  3. Bravo to the HOWTO author by nellardo · · Score: 3
    A cool HOWTO. Clearly it could use some fleshing out, but that's more a "You're going in the right direction" rather than "You didn't do enough". Writing doc is one of those thankless tasks, but I'm glad someone is doing it.

    Now if only there was an environment that provided something outside the Algol family. Oh wait, of course, I can use Forth. I RPN like not. :-) A nice functional language (Haskell being my current fave) would be well-suited to the MindStorms system. Pure functional PLs handle data flow so cleanly, and the flow from sensors to actuators is exactly that. Six built-in primitives for the three sensors and the three actuators.

    A simple Braitenberg-style mouse:

    main = union (connect sensor1 actuator2) (connect sensor2 actuator1)
    Simple, clear, understandable. I like it.

    --
    -----
    Klactovedestene!
    1. Re:Bravo to the HOWTO author by luge · · Score: 2

      If you have any particular suggestions as to what should be "fleshed out," please let me know...
      Luis

      --

      IAAL,BIANLY

  4. Re:Has Anybody Used the Mindstorms Before? by danderson · · Score: 2

    In college I built a maze traversing Mindstorms Robot. It would actually find its way through a 6 foot by 6 foot cardboard maze. I used NQC (Not Quite C) as the programming language because it was impossible to program the "follow the right wall" algorithm in Bricks (the programming language that comes with the set.)

    --
    This is supposed to be great art. So why does it look like a bunch of decapitated naked people? -- Calvin
  5. Re:Lego Languages by codemonkey_uk · · Score: 3
    Come on, someone who actually knows what they're talking about continue/correct me...
    • RCX
      You try to make a car, but end up with a speed boat. But you don't care. its a really cool speadboat!
    • LegOS (C/C++)
      After months of development your lego car starts quickly, but then grows so big it crushes you. And crashes.
    • Lego::RCX.pm (Perl)
      After half an hours hacking you have a dune buggy that works. Unfortunatly further development is impossable.
    • Not Quite C
      After months of development you realise its not quite feasable.
    • pbForth
      you lego build
    • TinyVM & leJOS (java)
      Your lego car works everywhere, but its quicker to walk.
    • TCL RCX
      Your car doesn't work, but if it did you could control it remotly with a pretty GUI
    Wow I suck.

    Thad

    --

    Thad

  6. Re:Legos & Linux... by foistboinder · · Score: 2

    It's official; they have finally combined the world's two greatest playthings: Legos and Linux Figure out a way to get sex and beer into the mix, then you'll really have something!

  7. Re:Has Anybody Used the Mindstorms Before? by alexhmit01 · · Score: 2

    I have one lying around from my 6.270 robot...

    The HandyBoard is damned cool though...

  8. Re:Finally! A physical graph of my apache hits by nicky_d · · Score: 3

    Could you build a PC case using Mindsorms components and have your machine look after itself physically? Like, you come back from work and it's taken a few bricks out of itself to reduce temperature? Or added a west wing on the side to house a couple of new hard drives? Or built itself some wheels and... uh, I've got to stop thinking about this now.

  9. Re:Lego Languages by Dr+Caleb · · Score: 2
    Cobol Bricks: It allows you to get many bricks to the same place at the same time, but only runs backwards and is documented in Greek.

    --
    "History doesn't repeat itself, but it does rhyme." Mark Twain
  10. Re:Has anyone... by Luxury+P.+Yacht · · Score: 2

    Children playing with Legos? Interesting concept! Does this mean I have to share?

    --
    Bush should have died, not Reagan -- Morrissey
    Morrissey rides a cockhorse -- The Warlock Pinchers
  11. Another needed HOWTO by SnakeStu · · Score: 2
    I'm still waiting for the Mindstorm-Wife-Permission.HOWTO...

    ``

  12. Older LEGO systems? by GoRK · · Score: 2

    I have a set of the old Lego Dacta system with the computer interface. It used a language called LEGO TC LOGO under DOS. It uses a proprietary LEGO 8 bit ISA Interface card. Is there any information on making this beast work in Linux? LOGO/DOS only has so much extensibility! John

  13. Has anyone... by AntiPasto · · Score: 2
    started their children on mindstorms?

    ----

  14. Has Anybody Used the Mindstorms Before? by LaNMaN2000 · · Score: 2

    Has anybody actually purchased one of these Lego Mindstorm kits? Was it easy to work with? For what age group would it make a good gift?

    --

    ByteMyCode.com: A Web 2.0 code sharing community.
    1. Re:Has Anybody Used the Mindstorms Before? by Kickasso · · Score: 3
      1. Yes it's limited. Some people like to push things to their limits, and Mindstorms provides plenty of opportunities.
      2. A lot of people make homebrew sensors for Mindstorms. If you also build a port expander, and use LegOS, the RCX brick suddenly becomes not so awfully limited compared to HandyBoard. (Disclaimer: I didn't try any of these things -- yet.)
      3. HandyBoard is ridiculously expensive. $200? Come on. If you can find one for less than $100 I'm willing to reconsider.

      --
    2. Re:Has Anybody Used the Mindstorms Before? by kurowski · · Score: 2

      The mindstorm kit is nice, but very limited. I'd recommend it for ages 6 to 14. For a kid over 14, I would recommend a HandyBoard. Not only is the board much more powerful, but they also learn more by buliding their own sensors. I've never seen anything really cool done with the HandyBoard (thought I'm sure it's been done) but I've seen high school kids produce some pretty amazing projects with the HandyBoard.

    3. Re:Has Anybody Used the Mindstorms Before? by FascDot+Killed+My+Pr · · Score: 4

      "Has anybody actually purchased one of these Lego Mindstorm kits?"

      Yes. Me.

      "Was it easy to work with?"

      Hardware: Just like regular (technic) legos.
      Software: I use nqc--it's very very easy for a person who already knows C. Probably also quite easy for someone who knows programming. Probably a challenge for someone who doesn't know programming. OTOH, the nqc docs (and the book by Dave Baum) has A LOT of examples.

      "For what age group would it make a good gift?" Upper age limit: none. There is plenty here to keep anyone occupied--it's not a "toy" (it's like a Palm compared to a PC--it does less, but it is still a general computing device).

      Lower age limit: Depends on the child. Probably an 8 year old could handle it with help from someone who knows how to program. A 10 year old certainly could (with less help). The real controlling factor is the software. From the screenshots, the Lego-provided IDE is very easy to use.
      --

      --
      Linux MAPI Server!
      http://www.openone.com/software/MailOne/
      (Exchange Migration HOWTO coming soon)
  15. Legos & Linux... by B00yah · · Score: 2

    It's official; they have finally combined the world's two greatest playthings: Legos and Linux

  16. Mindstorm to create a physical bar graph? by vslashg · · Score: 2
    If you ever do get that set up, be careful. Don't mention your URL here. If you did, the plotting arm of your robot would overextend and snap off. The motor would overheat and catch flame.

    It'd be the first time a Lego construction ever got Slashdotted.

  17. Java - Yes! by Grasshopper · · Score: 2


    Now I can create a turtle using Java and a hare using C. Things get more realistic every day!

    Now if only I could use my ultimate VB and AOL skills somehow...

    --
    Source code is a lot like a parachute; it needs to be open in order to function properly.
  18. Finally! A physical graph of my apache hits by hardaker · · Score: 3

    Wouldn't it be cool to use mindstorm to construct a physical bar graph of the traffic to my webserver?

    --
    The next site to slashdot will be ready soon, but subscribers can beat the rush and start slashdotting it early!
  19. Simple Programming Language? by TierNet · · Score: 2

    It's great that we've got all these "real" programming languages to use, but doesn't the average kid need something a little simpler?

  20. Re:Isn't Lego a bit childish for /. ? by talesout · · Score: 3
    I went through a stage called growing up.

    It doesn't sound like you grew up so much as grew older. Your post sounds like a typical bitter old-timer, "Damn kids, when are ye gonna learn ye gots to grow up!"

    I'm 26, happily married, have good financial investments and am a systems/network administrator for a small company with a good salary and bonus. However, I still play with toys (and the old Transformers and Legos are my favorites) and I still watch cartoons (Cartoon Network is only second to the sci-fi channel in my book, and those two occassionally trade places during certain months). Does that make me a child? Hardly. I work my butt off, I pay my bills, and I treat my wife with respect (or she wouldn't be my wife). Yet I'm still able to enjoy a good 'childish' thing like cartoons and toys.

    You knock Legos as childish. The funny thing is that Legos are designed with the basic premise of helping you develop your mind and your imagination. You are never too old to give up on those sorts of ideals. You need to constantly exercise your brain to keep it growing. And just because it is targetted at kids doesn't mean you can't use it as an adult. If you feel that way, you've already lost part of your humanity. Hopefully you'll get it back.

    Oh yeah, and if you think my wife has a problem with my 'childish' endeavors, why the hell did she pull me through Valley Fair, running from ride to ride, screaming her head off and in general acting like a big kid? Simple, she (like myself) hasn't grown old.

    You can grow up without growing old. We choose to seperate those two things. It looks like you choose to combine them into one process. In a way I feel for you, but it's your choice. However, don't knock it just cause you don't like it. It's a lot more fun than you might think.

    (Now, my hypothesis is you are either a troll, or the following applies: You have avoided using Legos and other 'toys' because you know deep down inside that if you went anywhere near them you would play with them and have a great time. This fear of looking 'childish' has kept you from exploring something you may enjoy. It's too bad, but it happens.)
    --


    Bite my yammer.
  21. Free software in a nutshell by streetlawyer · · Score: 2
    There are (currently) 7 different software options in 7 different languages (including C, Perl, and Java) for the Linux-based Mindstorms owner."

    Yup, seven different projects for Lego Mindstorms, but no window manager that works. There you have it, ladies and gentlemen, in a nutshell, the reason why Eric Raymond's "Cathedral and Bazaar" is wrong. Although we could actually have worked this out ourselves with a bit of thought -- how many real life bazaars have ever actually built anything larger than a hep of camel shit?

  22. wow I feel old by British · · Score: 2

    I'm pretty good with Technic, but now with all this Mindstorms/C/Java stuff, that I am an antiquated Lego freak.

    Ahh, I miss the days when you didn't have to know programming to make Lego killer robots. Now I just have to find a way to make a Technic automatic transmission.

  23. Mindstorms Competition by busse · · Score: 2
    If anyone wants to run a Mindstorms competition (maze navigation works well), check out my example at http://www.bussetech.com/lego/mindstorms/

    busse

  24. "Free" as in ... by Speare · · Score: 2

    I can see it now. The next movement in Open Source meets Mechanical Engineering:

    "Free" as in "Free your hand from the vise-grips."

    --
    [ .sig file not found ]
  25. Books, too by Denor · · Score: 2

    One of the first things I did when I got my mindstorms kit was to go out and buy the Unofficial Guide to Lego Mindstorms (O'Reilly, no less). It starts nicely with the system that the Lego people give you to program in, then talks about NQC and pbForth - along with instructions on how to get these for whatever operating system you want.
    Sure, it's nice to have an online resource, but I find a printed book easier to use. That, and the pictures in the book for assembly of lego monsters take no time to transfer over the wire!

    --
    -Denor
  26. Lego Languages by pigpogm · · Score: 3

    C: The bricks fit together quickly, as long as you put them in place carefully, but push too hard in the wrong direction and the whole structure will spring apart.

    Perl: You have over 43,000 different bricks, though most of them seem to do the same thing. The model is built quickly, but seems to have used a lot more bricks than you expected.

    Java: The bricks can also be used with Duplo and Meccano. However, they operate so slowly that you go for a coffee instead.

    Come on, someone who actually knows what they're talking about continue/correct me...

    --
    PigPog.
  27. I have... by Dan+Hayes · · Score: 2

    ... I figured it'd be a lot safer than heroin... :)

  28. a site by fjordboy · · Score: 2

    One of my acquantinces from school makes lego mindstorm stuff...you can look at a bunch of his creations at flipse.com/legos.html They seem sort of neat...but I am still a little worried that legos are now computer controlled.......what next? wooden blocks?


  29. Re:Extending the hardware? by Lumpy · · Score: 2

    Simple - use a basic stamp.

    if you look at the web you'll find many examples on how to do this.. www.google.com is your friend.

    --
    Do not look at laser with remaining good eye.
  30. Re:Try a tripwire... by technos · · Score: 2

    If you have a stainless steel counter, or can make it conductive, pick up a cheap electronic Studsensor. Wire the big trace on the back to a alligator clip, and attach to the lip of the counter. Wire the LED to a 3V relay, and use it to drive the motor on a battery powered squirtgun.

    Problem solved!

    --
    .sig: Now legally binding!
  31. T2 by a script kiddie? by AbbyNormal · · Score: 3

    Calls to 911 that we're likely to hear: 911 operator: "911 what is your emergency?" Frantic Person: "ARgghhh! Somebody rooted my computer this morning and now my toy dogbot attacked and tried to kill me. I'm hiding in the bathroom right now, but the robot is building itself a lock pick"

    --
    Sig it.