I-Bug implemented with the Lego Mindstorms NXT

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
209 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 2, 2010

I-Bug is in an unknown environment with obstacles. The tower emits an infrared signal, and the robot's plan is based on sensing the intensity of this signal.

There are three tasks, which are each separate threads.
(1)The main() task
(2)The ir_follow() task
(3)The boundary() task

The main task is always scheduled to start first.
It schedules the ir_follow() task to start before the boundary() task.
This allows the ir_follow() task to grab the mutex for the motors, moveMutex, first.
By using various indicator variables, boundary() cannot grab moveMutex until ir_follow() sets these variables,
and similarly, boundary() uses indicator variables to prevent ir_follow() from grabbing moveMutex.

The robot alternates between the ir_follow() task and the boundary() task
until it satisfies the termination condition.

Sensors: 2 touch sensors, 1 infrared sensor

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (1)

Sign In or Sign Up now to post a comment!
  • Love the Jittery Robot :D

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more