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

0 Members and 1 Guest are viewing this topic.

Offline Spyro543

  • Frostion, the Frost Demon
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1124
  • Rating: +67/-3
  • Netherim Slasher
    • View Profile
    • frostion
...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
╔SPYRO543'S PROJECTS═════════════════════════════════╗
║NAME                       PROGRESS      STATUS     ║
╠════════════════════════════════════════════════════╣
║Exponent PC Build          [------    ]  Hiatus     ║
║Artifice (RP char)         [-------   ]  In Progress║
║Waveform Synth             [          ]  Not Started║
╚════════════════════════════════════════════════════╝

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1867
  • Rating: +205/-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: 1750
  • 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: 1596
  • Rating: +228/-16
    • View Profile
    • TI-Planet
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)

TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1750
  • 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.

Online DJ Omnimaga

  • Retired Omnimaga founder (no longer admin) and former news
  • Editor
  • LV15 Omnimagician (Next: --)
  • ***************
  • Posts: 55252
  • Rating: +3138/-232
  • ☜☻☞
    • View Profile
    • Omnimaga
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.
Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)
Do not PM me for support. I'm not admin/mod.



Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter

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

  • Frostion, the Frost Demon
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1124
  • Rating: +67/-3
  • Netherim Slasher
    • View Profile
    • frostion
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
╔SPYRO543'S PROJECTS═════════════════════════════════╗
║NAME                       PROGRESS      STATUS     ║
╠════════════════════════════════════════════════════╣
║Exponent PC Build          [------    ]  Hiatus     ║
║Artifice (RP char)         [-------   ]  In Progress║
║Waveform Synth             [          ]  Not Started║
╚════════════════════════════════════════════════════╝

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