Page 3 of 4

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

Posted: 13 Oct 2010, 08:58
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.

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

Posted: 28 Oct 2010, 21:48
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

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

Posted: 28 Oct 2010, 21:50
by HaWe
why don't you upload it?

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

Posted: 29 Oct 2010, 17:21
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.

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

Posted: 03 Nov 2010, 19:26
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.)

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

Posted: 12 Jan 2011, 22:08
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.

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

Posted: 15 Jan 2011, 02:57
by muntoo
BTW, how close are you to getting your own NXT?

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

Posted: 15 Jan 2011, 22:48
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.

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

Posted: 17 Jan 2011, 16:57
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.

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

Posted: 18 Jan 2011, 06:55
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: