Jump to content




So these "real turtles" got me thinking....

computer lua utility

  • You cannot reply to this topic
34 replies to this topic

#21 ETHANATOR360

  • Members
  • 423 posts
  • Locationyour hardrive

Posted 27 January 2013 - 11:39 AM

I was actually thinking about doing this before you posted it :)

#22 MudkipTheEpic

  • Members
  • 639 posts
  • LocationWhere you'd least expect it.

Posted 27 January 2013 - 01:35 PM

*turtle interface*
turtle.up()
*real life living room*
DADDY DADDY THE ROBOT IS FLYYYIIIINNNGGGG!!!!!!

XP: Turtle Reality.

#23 Dlcruz129

    What's a Lua?

  • Members
  • 1,423 posts

Posted 27 January 2013 - 02:34 PM

View PostMudkipTheEpic, on 27 January 2013 - 01:35 PM, said:

*turtle interface*
turtle.up()
*real life living room*
DADDY DADDY THE ROBOT IS FLYYYIIIINNNGGGG!!!!!!

XP: Turtle Reality.

Yeah, that probably wouldn't happen. Unless...rocket-thruster real-life turtles? >:D

#24 Wired2coffee

  • Members
  • 46 posts
  • LocationThe Coffee Maker

Posted 27 January 2013 - 06:43 PM

View PostMudkipTheEpic, on 27 January 2013 - 01:35 PM, said:

*turtle interface*
turtle.up()
*real life living room*
DADDY DADDY THE ROBOT IS FLYYYIIIINNNGGGG!!!!!!

XP: Turtle Reality.

Actually, it might be possible. If I actually decide to do it, I would make sure to make a quadrocopter-style kind of thing at the bottom (where those four squares are) as well as some kind of gyro of course. But if I were to do that, the battery prices would go through the roof because you'd need the battery to be super-lightweight and long lasting.

#25 Dlcruz129

    What's a Lua?

  • Members
  • 1,423 posts

Posted 27 January 2013 - 07:17 PM

View PostWired2coffee, on 27 January 2013 - 06:43 PM, said:

View PostMudkipTheEpic, on 27 January 2013 - 01:35 PM, said:

*turtle interface*
turtle.up()
*real life living room*
DADDY DADDY THE ROBOT IS FLYYYIIIINNNGGGG!!!!!!

XP: Turtle Reality.

Actually, it might be possible. If I actually decide to do it, I would make sure to make a quadrocopter-style kind of thing at the bottom (where those four squares are) as well as some kind of gyro of course. But if I were to do that, the battery prices would go through the roof because you'd need the battery to be super-lightweight and long lasting.

Lol good luck with that.

#26 Mads

  • Members
  • 604 posts
  • LocationCopenhagen, Denmark

Posted 01 February 2013 - 03:02 AM

Don't do it with Java. Use C++ and the Lua libraries, and use OpenGL ES for the graphics... PROFIT?

#27 Orwell

    Self-Destructive

  • Members
  • 1,091 posts

Posted 01 February 2013 - 05:08 AM

I would probably just use the lua binary as is (cross-compiled of course) and write the libraries for it in C/C++/(Java is you can't handle C :P). By far the easiest solution IMO. I wouldn't have a clue yet on how to handle input through the GUI like this though (I'm not familiar with the Lua API). The latter would probably be easier using Mad's method. But all other libraries would require significantly less work I think.

#28 Mads

  • Members
  • 604 posts
  • LocationCopenhagen, Denmark

Posted 01 February 2013 - 08:22 AM

The Lua API is actually really easy to use, once you learn how to use the stack. You don't deal with variable names, you deal with the stack only, except for lua_getglobal and luaL_register etc.

#29 Orwell

    Self-Destructive

  • Members
  • 1,091 posts

Posted 01 February 2013 - 08:28 AM

View Postmad, on 01 February 2013 - 08:22 AM, said:

The Lua API is actually really easy to use, once you learn how to use the stack. You don't deal with variable names, you deal with the stack only, except for lua_getglobal and luaL_register etc.
Yeah, I read about it before. And I know how the Lua stack works. :P I'm just not familiar with what possibilities you have to create a proper GUI that can interpret Lua. My guess it would work just fine. I just didn't want to make false statements without knowing.

Edit: I just actually googled on it, should be quite easy to achieve actually. Minimum effort IMO.

#30 nutcase84

  • Members
  • 711 posts
  • LocationIn My Lonely Little Computer Corner

Posted 01 February 2013 - 12:45 PM

I had this idea... hope you get it working. I was wondering... can you use the arduino to control the motors?

#31 Orwell

    Self-Destructive

  • Members
  • 1,091 posts

Posted 01 February 2013 - 02:18 PM

View Postnutcase84, on 01 February 2013 - 12:45 PM, said:

I had this idea... hope you get it working. I was wondering... can you use the arduino to control the motors?
You could easily. But it's possible to let a Raspberry Pi control the motors in exactly the same way as the arduino does (by using it GPIO pins and an appropiate H-bridge in the case of DC-motors). Thus circumventing the use of arduino. And as the Raspberry Pi has many more computational capabilities (it's a computer you know...) and has about the same price as an arduino + motor shield, I wouldn't bother using an arduino solely for the purpose of controlling the motors. The only reason I could think of to use an arduino for the motors is to take of some processing load from the Raspberry Pi by taking over the navigation part. But then again, as the Raspberry Pi is equally cheap, you could have 2 Raspberry Pi at the same price and have a much higher total of processing power.

Well, that's my opinion at least. :P

#32 Zee

  • Members
  • 42 posts
  • LocationIndiana

Posted 03 February 2013 - 07:04 AM

This has some potential, dammit! I would pay money for a real "real turtle" that actually moves. It would be epic if it climbed up trees and then cut them down. Well, I'm fantasizing, but still. This is in my thread follow list. Now I'm stealing the idea. Remember the Numb3rs episode with the train wreck and what's-his-name's robots? I want to build those.

Edited by DanJZ0404, 03 February 2013 - 06:01 PM.


#33 FuuuAInfiniteLoop(F.A.I.L)

  • Banned
  • 435 posts
  • LocationThe left part of this post

Posted 06 February 2013 - 06:08 AM

The turtle api can be inplemented realy and with a couple of sensors and whells it can move really, that would be cool

#34 dissy

  • Members
  • 181 posts

Posted 06 February 2013 - 01:09 PM

So far, I've created a little "plug" that fits the bottom of the 3d printed turtles. The plug has a rare earth magnet in it.

I had an old magnetic chess board laying around that uses motors and pulleys to move a magnet around under the board, as well as a simple "up/down" movement to grab onto a piece and move it elsewhere as well as to let go and move under a different piece.
I'm just using it for prototyping, but plan on printing out some minecraft grass blocks to put down over the top and let it move the turtles around over.

Of course this only addresses 2d movement, no climbing of trees ;} But still, it basically works, and is controllable from my raspberry pi.

I figure some papercraft minecraft blocks with tiny weights inside (or even magnets?) would give the turtles something to play with.
Sadly I appear to be out of heavy paper stock at the moment, but just recently bought a new color printer which will work great for this.

The only bit left is to program the API to let it be controlled from a web page.
And the web cam of course, but at least that part will be pretty easy and straight forward.

I was even thinking about making a turtle chess set, but figure it will be around $600 in pieces to do properly. Not sure how badly I want that yet ;}

#35 Mads

  • Members
  • 604 posts
  • LocationCopenhagen, Denmark

Posted 10 February 2013 - 09:33 AM

I am going to try and make CraftOS with C++.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users