Lego NXC programs

Pinball

Click here

Line Follower

Authors: Joan Climent Ciscar, Francisco Zamora Martinez
Year:2011
Description: A simple Line Follower. The robot is build with:
  • Left light sensor in port 3
  • Right light sensor in port 2
  • Left motor in port A
  • Right motor in port B
Download code here

Wall Follower

Authors: Joan Climent Ciscar, Francisco Zamora Martinez
Year:2011
Description: A Wall Follower. The robot is build with:
  • Left ultrasound sensor in port 1
  • Front ultrasound sensor in port 4
  • Left motor in port A
  • Right motor in port B
Uses an algorithm based on the computation of the gradient between the robot and the wall.
Download code here