Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 18th, 2006, 9:54 PM   #1
Mjordan2nd
The Supreme Ruler
 
Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6 Mjordan2nd is on a distinguished road
Lego Mindstorms using Lejos

If you've never heard of Lego Mindstorms, you're missing out. These things are awesome little toys to play with when you're bored, and just see what you can get them to do. Basically, it's a legos set which you assemble into a car, man, whatever you like. They come with sensors, motors, and other parts which allow you to build a robot, and they are incredibly easy to program -- write the program in Java using their API, and upload it by a tower which uses infrared and hooks into your computer's USB port.

The problem is, I'm running out of ideas of what to do that aren't incredibly complex. I haven't been able to mess around with it too much, but here's what I've done so far:


  • Got it moving
  • Got a bump sensor on it so it reverses direction any time it hits an object
  • Have a light sensor attached to the bottom so it doesn't roll off a table (99% of the time anyway )
  • Have it follow a wall
  • Working on getting it to follow black tape on the floor

As you can see, nothing that is too difficult to do. The only problem is, I'm all out of ideas as to what I can get it to do next. Any ideas?
__________________
"Every gun that is made, every warship launched, every rocket signifies, in the final sense, a theft from those who hunger and are not fed, from those who are cold and are not clothed. The world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children." - Dwight D. Eisenhower
Mjordan2nd is offline   Reply With Quote
Old Apr 18th, 2006, 10:14 PM   #2
Prm753
Professional Programmer
 
Prm753's Avatar
 
Join Date: Oct 2005
Location: United States
Posts: 447
Rep Power: 3 Prm753 is on a distinguished road
Send a message via AIM to Prm753 Send a message via MSN to Prm753
You could get it to pick up small objects and move them to different locations. Perhaps throw the object at your cat and see what it does.
__________________
The world's first athletic computer geek!
The home of PrProgramsStudios
How not to post a question: <-- Please don't reply
Prm753 is offline   Reply With Quote
Old Apr 18th, 2006, 11:41 PM   #3
jaeusm
Programmer
 
jaeusm's Avatar
 
Join Date: Feb 2006
Location: Columbus, OH
Posts: 84
Rep Power: 3 jaeusm is on a distinguished road
Create a dynamic path planner. It's not exactly a simple task, but it will keep you busy for awhile.
jaeusm is offline   Reply With Quote
Old Apr 18th, 2006, 11:44 PM   #4
Jessehk
The Oblivious One
 
Jessehk's Avatar
 
Join Date: May 2005
Location: Ontario, Canada
Posts: 630
Rep Power: 4 Jessehk is on a distinguished road
These things sound fun -- like an early introduction to robotics. I may be buying in the near future :p
__________________
Dr. Zoidberg: [ecstatic] I'm going to a movie... with FRIENDS!
Jessehk is offline   Reply With Quote
Old Apr 19th, 2006, 1:35 AM   #5
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
I love lego. I have a whole room full of it Unfortunatley I don't have the mindstorms. When I was a kid, I wasn't into programming, so I was never interested in the mindstorms. Didn't know you could program it with java though. It's sound like loads of fun. Anyways, as for ideas, perhpas you should just come up with a little lego city, and see if you can muild a monster to wreck it
Booooze is offline   Reply With Quote
Old Apr 19th, 2006, 2:36 AM   #6
coldDeath
Expert Programmer
 
coldDeath's Avatar
 
Join Date: Aug 2005
Location: UK
Posts: 862
Rep Power: 3 coldDeath is on a distinguished road
Send a message via AIM to coldDeath Send a message via Yahoo to coldDeath
I got the chance to do this once at school. We all made robots which played football (soccer) with each other. The pitch had a different colour floor at each side so that the robot would score in its own goal (use a light sensor to check). Then there was a special ball with flashing red LEDs in.

It was quite fun watching 2 vs 2 robot football and it was a good challenge to make one of the robots (even if one had a moving "arm" and which attacked other robots o_o).

EDIT: you say you're trying to get it to follow black tape on the floor, we did that aswell. I used a light sensor facing downwards, and then i made my robot turn left until it sensed a big change in light, if it did it would turn right. It wasn't perfect but it worked.
__________________
Join us at #programmingforums @ irc.freenode.net!

My software never has bugs. It just develops random features.
coldDeath is offline   Reply With Quote
Old Apr 19th, 2006, 10:38 AM   #7
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
My computing teacher got himself a set, along with a few other teachers in my school. They did a course with the Open University or something. I want in!
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:32 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC