• Categories

  • Pages

  • Tags

  • Archives

  • Meta

  • help with programming lego mindstorms nxt?

    Posted by admin on September 30th, 2009 and filed under nxt programming | 2 Comments »

    i have trouble programming the robot so that when a sensor senses something it triggers another move, Ex: i tried to program it so when the touch sensor is pressed, another motor would move. After i programmed it, I started the robot and it just skipped a step, the motor activated without the touch sensor sensing something. So can you help me please.
    i need to program something like this, first have the robot move in a circle until the ultrasonic sensor senses something 50 inches or less away. Then, my robot will go straight towards it.After that, i wanted another one of my motor which controls a weapon to turn on and stay on when the object i am going towards is 10inches or less away but i need to keep going forward at the target after the weapon turns on.finally i need to get next to my enemy and stay there for about 6 seconds then repeat the steps
    i am doing this at school and this is the first time my teacher is using mindstorms so he doesn’t know either
    please help me thank you

    try setting a "wait for event" loop.

    idk it’s been a while since i played with NXT.

    2 Responses

    1. Z3DA Says:

      try setting a "wait for event" loop.

      idk it’s been a while since i played with NXT.
      References :

    2. AskExpert.Info Says:

      Does not look trivial, may be you can contact a freelance programmer. Check websites like http://oktutorial.com/
      References :

    Leave a Comment

    Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.