Author Topic: You know how we can print to the RS232 port on the Nspire with Lua...  (Read 5970 times)

0 Members and 1 Guest are viewing this topic.

Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
...then why can't we make some sort of robot thing! You would type instructions on calc, which could then be sent to motors! (jimbauwen, his calc, and his mighty Arduino could surely do it :D)

With Ndless, we could do this, and could we get info back from the robot?

It would probably be just a simple car setup with four motors, two on each side.
The motors have to work like this:

DirectionLeft motorsRight motors
ForwardsClockwiseCounterclockwise
ReverseCounterclockwiseClockwise
LeftCounterclockwiseCounterclockwise
RightClockwiseClockwise

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: You know how we can print to the RS232 port on the Nspire with Lua...
« Reply #1 on: August 22, 2011, 08:09:05 am »
Of course we can make a robot with it :)
I'm currently investigation different ways to send data back (with ndless you can have both direction communication, but noT with lua). I've got an idea, just need to do some research :)

Edit: big mistake: now-->not
« Last Edit: August 22, 2011, 08:11:30 am by jimbauwens »

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: You know how we can print to the RS232 port on the Nspire with Lua...
« Reply #2 on: August 26, 2011, 12:37:29 am »
I actually have a robot that can receive commands over rs232, I'll have to try this out.

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: You know how we can print to the RS232 port on the Nspire with Lua...
« Reply #3 on: August 26, 2011, 05:44:48 am »
Funny, I had the same idea :-)

I'll definitely make a robot of some sort soon, when I have my dock connector (maybe I'll make one maybe I'll do something else with some official cradle that I will dismantle.... :P)
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: You know how we can print to the RS232 port on the Nspire with Lua...
« Reply #4 on: August 26, 2011, 11:39:26 am »
I have this robotics kit from here (the level 1 kit), but this is quite doable with an arduino.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: You know how we can print to the RS232 port on the Nspire with Lua...
« Reply #5 on: August 26, 2011, 10:42:08 pm »
A robot would be nice. If someone manages to do it, be sure to post a video of it :D

I remember in 2005 or something, someone at MaxCoderz made a TI-83+ robot once, controlled by an ASM program.

Offline mrmprog

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 559
  • Rating: +35/-1
    • View Profile
Re: You know how we can print to the RS232 port on the Nspire with Lua...
« Reply #6 on: August 26, 2011, 10:46:34 pm »
A Nspire controlled bot would be amazing. It would be a great "look what I can do with my calculator" thing.

Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
Re: You know how we can print to the RS232 port on the Nspire with Lua...
« Reply #7 on: August 27, 2011, 06:53:14 am »
For controlling program on calc:
Should you make a list of instructions then send it to the robot for execution?
-OR-
Should we be sending instructions in real time?
-OR-
Include both functions and let the user choose which.

GUI:
Icons and buttons
-OR-
Console-like interface

Offline Kjelddy

  • LV3 Member (Next: 100)
  • ***
  • Posts: 80
  • Rating: +2/-1
    • View Profile
Re: You know how we can print to the RS232 port on the Nspire with Lua...
« Reply #8 on: August 27, 2011, 07:04:29 am »
sounds very nice to me :P
KJ
in need of omnoms ? check this out :P
http://img.removedfromgame.com/imgs/0-omnom.png