Make It Robotics Starter Kit

building a robot and i downloaded a linefollow program as the manual stated to do. im not very good at programming so forgive me if the solution is very simple. i am getting an error saying 'line_following was not declared in this scope'. attached below is the code

linefollow.ino (5.58 KB)

I'm guessing you didn't install the library

#include <MakeItRobotics.h>//include library

JimboZA:
I'm guessing you didn't install the library

#include <MakeItRobotics.h>//include library

Hmmm but when I install the library your code still won't compile.

So I compared your code with the example linefollow from the library folder and you're missing a line...

Look at the lines I marked with <<<<<<<<<<<<<<<<<<<<. One line is commented out in your code. Take the // away and it compiles, assuming you have the library installed.

You have:

/    You should have received a copy of the GNU General Public License
//    along with this program.  If not, see <http://www.gnu.org/licenses/>.
// ********************************************************************************

#include <MakeItRobotics.h>//include library
//MakeItRobotics line_following;//declare object  //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
// **************************************************************************
// *                            Power Up Initial
// **************************************************************************
void setup() 
{ 
  Serial.begin(10420);                     //tell the Arduino to communicate with Make: it PCB
  delay(500);                              //delay 500ms
  line_following.line_following_setup(); //initialize the status of line following robot
  li

They have:

//
//    You should have received a copy of the GNU General Public License
//    along with this program.  If not, see <http://www.gnu.org/licenses/>.
// ********************************************************************************

#include <MakeItRobotics.h>//include library
MakeItRobotics line_following;//declare object  //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
// **************************************************************************
// *                            Power Up Initial
// **************************************************************************
void setup() 
{

thanks for you reply, i deliberately commented out that line of code in hopes of solving it. i removed the // and it still giving me the same error

But did you install the library?

......how do i go about doing that? :sweat_smile:

First go to this page and click the link to support files:

http://blog.radioshack.com/2014/05/radioshack-make-magazine-launch-make-robotics/

The libraries are in the MakeItRobotics folder in the zip file.

Then read this: http://arduino.cc/en/Guide/Libraries

Thank you so much for your help!

I did all of the above stated and I am still getting the same error.

ssnova23 - If you happen to check back here. Do a quick search for Make:It Robotics in this forum and find my related posts. In one I give a step-by-step guide. In others I give some troubleshooting tips once the dang program loads!

Good Luck. Don't give up!