My programs, your NXT: because I don't have one :(

Discussion specific to projects ideas and support.
maybe-nxt-time
Posts: 3
Joined: 13 Oct 2010, 07:41

Re: My programs, your NXT: because I don't have one :(

Post by maybe-nxt-time »

Contact me... I have one brick (2.0) and need an autonomous segway program (HiTechnic gyro sensor) it needs to drive around the room and steer away from walls with 81.6 x 15 wheels.
stryker001
Posts: 125
Joined: 29 Sep 2010, 18:07
Contact:

Re: My programs, your NXT: because I don't have one :(

Post by stryker001 »

If anyone wants to test some of m balancing programs, that would be of great help. Until, then I can't really do much for maybe-nxt-time.

- Stryker
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: My programs, your NXT: because I don't have one :(

Post by HaWe »

why don't you upload it?
fuzzball27
Posts: 103
Joined: 29 Sep 2010, 17:14
Location: US

Re: My programs, your NXT: because I don't have one :(

Post by fuzzball27 »

I've got 2NXT's with NBC/NXC firmware, I program using NXC (or NXT-G 1.0), five motors, and I'm currently expanding my sensor arsenal with homemade sensors. I am willing to help you.
fuzzball27 >>-->
stryker001
Posts: 125
Joined: 29 Sep 2010, 18:07
Contact:

Re: My programs, your NXT: because I don't have one

Post by stryker001 »

http://sites.google.com/site/strykerspi ... ects=0&d=1

here is my line-following segway program. (Yes, it's a safe link.)

It should be self explanatory (if you open it in the NXT 1.0 NXT-G environment), but here's the basics:
Same old same old, put a light sensor on the front and use it for balancing. But there's a difference here: put two on the front, side-by-side, and you can line-follow.

I haven't worked on my algorithm at all, it's just a P (Not even a PI, much less PID) algorithm. Thus, it will probably be in need of some modification.

Inputs/Outputs:
2 Light Sensors (I don't remember what ports)
1 UltraSonic Sensor (Again, don't remember what port)
3 Motors (Ports A, B, and C)

Motors B and C are the wheels of the segway, Motor A is attached to the NXT brick, which is standing up. (Think like this, but instead of the rider standing up over the NXT, the rider is the NXT.)

To move forward, Motor A leans the NXT forward, and to move backward, the opposite.

I think that's all there is to it. I haven't done anything or the physical robot part yet, but I'm sure it can be done.

- Stryker

P.S. Oh, and the US Sensor is on the top, pointing forwards; the program automatically starts the segway driving forwards (it is a line follower after all) and leans the rider back if it gets within like 10 cm of an obstacle or something. (I haven't looked @ the program in a while, and it takes forever for NXT-G to boot up on my computer, so I don't feel like doing it right now. Sorry if some things aren't quite right.)
stryker001
Posts: 125
Joined: 29 Sep 2010, 18:07
Contact:

Re: My programs, your NXT: because I don't have one :(

Post by stryker001 »

hee hee, I've moved on from using light sensors to balance. They're awful.

Now I'm using accelerometers!

Expect a (working) program soon (iow, eventually), written in NXC.
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: My programs, your NXT: because I don't have one :(

Post by muntoo »

BTW, how close are you to getting your own NXT?
Image

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


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
stryker001
Posts: 125
Joined: 29 Sep 2010, 18:07
Contact:

Re: My programs, your NXT: because I don't have one :(

Post by stryker001 »

Well.... Not very. I really just need to get a job.

A friend had suggested making a Kickstarter.com account to raise funds for it to be used "educationally"... but it didn't work out. Oh well.
stryker001
Posts: 125
Joined: 29 Sep 2010, 18:07
Contact:

Re: My programs, your NXT: because I don't have one :(

Post by stryker001 »

Hee hee, I've almost got my hands on one! If all goes well, I should get it tomorrow. If not, then hopefully by next week.
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: My programs, your NXT: because I don't have one :(

Post by muntoo »

stryker001 wrote:Hee hee, I've almost got my hands on one! If all goes well, I should get it tomorrow. If not, then hopefully by next week.
What, did you finally figure out how to steal one? :lol: :twisted:
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 0 guests