Page 1 of 1

NXTCam & Line Following with NXC - HELP!

Posted: 10 May 2011, 08:35
by sparramc
Hi everyone,

I've got myself a NXTCam, and have been trying to get a NXC based NXTCam Line Following program to work.

I can follow coloured balls etc. around the room, but follow a black line; I'm stumped! I've been Googling for hours/days with no luck!

I put the NXTCam into Line mode, but I can't get a black line followed. I've tried using the camtest_v3.nxc program with black blob loaded, yet nothing happens in either Line or Blob Modes.

Can some one please post a working NXC example for me to get me started?

Can I have the NXTCam in line follow mode and still access coloured blobs to cause the Line Follower to start a new action?

The documentation for using NXC with the NXTCam is very thin on the ground, I've discovered. Especially for a beginner / intermediate programmer. RobotC is fractionally better, accept the RobotC Forum example codes are as old as me, and like me won't run without a great deal of effort. When I get the NXTCam nutted-out, I will attempt to put a couple of NXC tutorials together to help others in my situation.

Re: NXTCam & Line Following with NXC - HELP!

Posted: 10 May 2011, 12:29
by dudmaster
I'm not completely possable with the default thresholds of the sensor, but I don't have one.

Re: NXTCam & Line Following with NXC - HELP!

Posted: 10 May 2011, 13:29
by h-g-t
There is are notes here on how cameras were used to guide a line-follower - might give you some ideas. Sorry I can't come up with a program.

http://blog.electricbricks.com/en/2010/ ... -follower/

http://web.abo.fi/fak/tkf/rt/robot/print.php

http://dasl.mem.drexel.edu/~seanMason/?page_id=289

http://www.youtube.com/watch?v=o6U7Xtvk ... r_embedded (link to program dead)

Re: NXTCam & Line Following with NXC - HELP!

Posted: 13 May 2011, 14:19
by sparramc
h-g-t wrote:There is are notes here on how cameras were used to guide a line-follower - might give you some ideas. Sorry I can't come up with a program.

http://blog.electricbricks.com/en/2010/ ... -follower/

http://web.abo.fi/fak/tkf/rt/robot/print.php

http://dasl.mem.drexel.edu/~seanMason/?page_id=289

http://www.youtube.com/watch?v=o6U7Xtvk ... r_embedded (link to program dead)
Thanks for trying.