NXT Program ideas

Discuss anything and everything. Keep it clean (or else).
nxtboyiii
Posts: 366
Joined: 02 Oct 2010, 07:08
Location: Everywhere

NXT Program ideas

Post by nxtboyiii »

Post your program ideas here!
It could be game ideas, useful program ideas, etc.
Thanks, and have a nice day,
nxtboy III

programnxt.com
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: NXT Program ideas

Post by muntoo »

I may make a Tetris later (way, way later). :)

Or mess around with the original "Portals" idea. (Also way, way later.)
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
i-fixed-it-44
Posts: 106
Joined: 01 Oct 2010, 19:32
Location: The Dark Side Of The Moon
Contact:

Re: NXT Program ideas

Post by i-fixed-it-44 »

I'm thinking of making a line follower.
Some projects are good others aren't,but everybody's a critic.
Vincent,On Lego.com known as MindstormsMonster
..::..:::I_Fixed_It_44:::..::..
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: NXT Program ideas

Post by muntoo »

Did I mention my current projects? They are:
  • Bezier Curve Follower (It can also move the robot to the specified coordinates in 2D Cartesian space [cm])
  • Memory Manager
Possible projects I'll retake up:
  • Virtual Keyboard
  • SnakeWorm 2.0
  • Something to do with Bluetooth, but I can't remember
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
nxtboyiii
Posts: 366
Joined: 02 Oct 2010, 07:08
Location: Everywhere

Re: NXT Program ideas

Post by nxtboyiii »

I made a nice function called scanf. You choose the letters with the left and right buttons, center for next letter, and exit for done.
Thanks, and have a nice day,
nxtboy III

programnxt.com
dudmaster
Posts: 171
Joined: 06 Oct 2010, 02:38
Location: Texas, Santa Fe
Contact:

Re: NXT Program ideas

Post by dudmaster »

muntoo wrote:Did I mention my current projects? They are:
  • Bezier Curve Follower (It can also move the robot to the specified coordinates in 2D Cartesian space [cm])
  • Memory Manager
Possible projects I'll retake up:
  • Virtual Keyboard
  • SnakeWorm 2.0
  • Something to do with Bluetooth, but I can't remember
Virtual Keyboard? Got any code? Sounds interesting. I'v built one, too.
I saw your post on the Memory Manager. I built something like it.
2Labz.com, My Website
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: NXT Program ideas

Post by muntoo »

The Virtual Keyboard project was abandoned (over a year ago) due to bugs in the compiler, but I think they should be fixed by now, so I'll start it again some time later.

The code is here.
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
dimasterooo
Posts: 135
Joined: 29 Apr 2011, 21:53
Contact:

Re: NXT Program ideas

Post by dimasterooo »

This one's for Muntoo: Remember you made that NXC virus? I tried something like it with RobotC but it didn't work, cuz I wanted to make a passcode lock for my NXT. Might be something you could do in NXC?
- Leon Overweel (aka. dimastero/ dimasterooo)

My blog: http://www.leonoverweel.com
Twitter: http://twitter.com/LayOn_OverWhale
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: NXT Program ideas

Post by muntoo »

dimasterooo wrote:This one's for Muntoo: Remember you made that NXC virus? I tried something like it with RobotC but it didn't work, cuz I wanted to make a passcode lock for my NXT. Might be something you could do in NXC?
[For reference, here's the "virus" he's talking about.]

Bluetooth functionality is limited in NXC... :( If you want the virus to spread, of course.

Otherwise (not as deadly):
! Startup.nxc:

Code: Select all

task main()
{
    bool correct = true;

    string pass = "DIE";
    char c = 0x20;

    for(unsigned int i = 0; i < strlen(pass);)
    {
        if(ButtonPressed(BTNLEFT, 0))
        {
            if(c > 0x20)
                c--;
            else
                c = 0x7F;

            while(ButtonPressed(BTNLEFT, 0));
        }

        if(ButtonPressed(BTNRIGHT, 0))
        {
            if(c < 0x7F)
                c++;
            else
                c = 0x20;

            while(ButtonPressed(BTNRIGHT, 0));
        }

        if(ButtonPressed(BTNCENTER, 0))
        {
            if(c != pass[i])
            {
                correct = false;
            }

            ++i;

            while(ButtonPressed(BTNCENTER, 0));
        }
    }

    if(!correct)
    {
        PowerDown();
        //RebootInFirmwareMode();
    }
}
It's a good thing I don't live in Germany...
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: NXT Program ideas

Post by muntoo »

A RegEx engine!
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 1 guest