How to program your coasters with NXT 2.0
#1
Posted 11 January 2011 - 04:20 PM
Step 1: The Lift
You will want to create a new program and select Complete Pallet, Common, then Move.
Here is the program close-up:
You are then going to want to create a block so it is simpler to look at:
Here is what you should have after this:
Step 2: The circuit
You will then want to go to Flow and pull out a Wait block. Set the time to however long your circuit will be until the final breaks:
Step 3: The Cycle
Then you will want to go to Action, then bring out three motor blocks and one wait block:
First Block: (This will be the brake run)
Second: (This will be the station. Just make it run for as long as you want the train to pull in to the station. The train will then stop at the gates if you want it to)
Wait block: (Just as long as you want the train to stay in the station)
Third: (Just until the train finishes exiting the station)
Then create a block with all of those:
Then put a loop box around them:
(Do this by highlighting everything, putting a loop block into the beginning of the program, then dragging everything into the block)
Please Comment!
.
#2
Posted 11 January 2011 - 04:29 PM
#3
Posted 11 January 2011 - 04:53 PM
SSCoasters Administrator
Read The Forum Rules(smart)
#4
Posted 11 January 2011 - 04:54 PM
(programming things comes easy to me, been doing it in different forms for 40 years)
Comet Recreation still underway.
Proof you never grow up if you keep playing with toys!
#5
#6
Posted 11 January 2011 - 05:24 PM
Very god program for all of the newbies that got NXT for their coaster! Very nice tutorial and very helpful! I had a hard time putting a loop on the program the first them I used this.
Thanks! I'm glad you like this!
Doesn't mindstorms have sensors that would be able to detect the train? Using a wait is very inaccurate.
Yes, this was just for a very simple coaster. I'll be updating this tomorrow with the touch sensor programming.
.
#7
Posted 11 January 2011 - 05:32 PM
SSCoasters Staff
The SSCoasters Forum Rules
GigaSonic XLC, Déjà Vu, Werewolf, WildSide, Thunderhawk, Kaibutsu, Diamondback, Couloir
SVengeance|Voyage|LightningRod|Goliath(SFGAm)|OutlawRun|Fury325|RF2|Taron|StormChaser|Orion|
Coaster Count: 300
#8
Posted 11 January 2011 - 10:06 PM
Actually, now that I look more carefully at it, it makes sense. My dad has thought about getting me the Mindstorms, but it's too expensive.
#9
Posted 11 January 2011 - 10:17 PM
This is a great tutorial, it will sure help me if I do it.
SSCoasters Moderator
Fear the Bankatana | The SSCoasters Forum Rules
Maverick|Tatsu|TTD|Fahrenheit|Skyrush|MF|Cheetah Hunt|Storm Runner|SheiKra|Montu
Coaster Count: 102
#10
Posted 11 January 2011 - 10:37 PM
#11
Posted 12 January 2011 - 10:14 AM
The Mindstorms is incredibly simple to program, it's just that connecting the motors to Knex is sometimes an issue. I almost always use the NXT motors to switch other motors on/off; that way you can have stronger motors and preserve the NXT's battery life longer.
Looks like a simple solution
And yeah, one of those controllers is really expensive, but what I spent on electronics is already higher then one of those controllers XD
#12
Posted 15 January 2011 - 11:47 AM
In this post I will show you how to make a trigger system attached to the touch sensor. Programming part should come soon.
What you will be making:
Parts:
Make these:
Make these:
Attach like so:
Build and attach these:
Attach a green rod:
Add these on to the ladder piece:
Build this with Mindstorms:
Attach the second rod:
Add these:
Tape the sections together like this:
Now attach this to you station/brake run like this:
Programming part should be coming soon!
.
#13
Posted 15 January 2011 - 01:40 PM
Member of a few physics experiments; Orchestrator and/or Copyist for a few musicals.
#14
Posted 15 January 2011 - 01:52 PM
#15
Posted 15 January 2011 - 01:54 PM
That's pretty cool, I've never used the touch sensor like that before. I have one question--how much does it slow down the train?
I'm not sure yet, but if you're using it near a station or brake run I don't think that it would matter much.
.
#16
Posted 15 January 2011 - 02:20 PM
Member of a few physics experiments; Orchestrator and/or Copyist for a few musicals.
#17
Posted 15 January 2011 - 02:24 PM
I'm not sure yet, but if you're using it near a station or brake run I don't think that it would matter much.
Doesn't mindstorms have light and colour sensors? Those would be better imho.
However Project Phase also relies on physical switches, however those are so small they barely give any resistance.
SSCoasters Administrator
Read The Forum Rules(smart)
#18
Posted 15 January 2011 - 02:27 PM
Doesn't mindstorms have light and colour sensors?
Yes, but that will be added into this thread using the ultrasonic sensor.
.
#19
Posted 15 January 2011 - 02:32 PM
SSCoasters Administrator
Read The Forum Rules(smart)
#20
Posted 31 January 2011 - 10:05 AM
Skype: ksbf113
Steam: rodimus113
MC and XBL: rodimuz
PC:
amd a4-3420, r5 230, 8gb ddr3 1333