Problems with Make: It Robotics Programming

Hello All!

I am a teacher in Anaheim, CA. I bought several of the kits for my students to build and then start programming their Arduino Bot. Unfortunately I keep getting the same error message when I verify:

Arduino: 1.6.0 (Windows XP), Board: "Arduino Uno"

linefollow.ino:23:45: fatal error: MakeItRobotics.h: No such file or directory
compilation terminated.
Error compiling.

I've found the .zip file on the RadioShack website & then created a folder & named it MakeItRobotics. I imported the file named and still can't seem to get it working.

Any ideas? Is there a place that has all of the needed code in it that I can just copy in?

It sounds like it is looking for teh "MakeItRobotics" library, which you should put in a folder with its own name inside the "library" folder of your Arduino IDE.

The documentation with your 'bots must have come with a link to that library. If not, google it, download it and put it in the library folder.

Ugi

which you should put in a folder with its own name inside the "library" folder of your Arduino IDE.

To be more precise the MakeItRobotics folder should go in the libraries folder of your sketches folder and should contain at least MakeItRobotics.h and MakeItRobotics.cpp

Stop and start the IDE after installing the library otherwise the IDE will still not find it. If you can see the library in Sketch/Import Library in the IDE it is in the right place.

"If you can see the library in Sketch/Import Library in the IDE it is in the right place."

I see it in the sketch--> import library ...all of the way at the bottom past a light line but it still is not recognizing it.

Please post your program that uses the library and produces the error.

I am sorry if i did this wrong...I hope you wanted the full text on the sketch.

I get the following when I try to verify & upload: Arduino: 1.6.0 (Windows XP), Board: "Arduino Uno"

Build options changed, rebuilding all

linefollow1.ino:23:45: fatal error: MakeItRobotics.h: No such file or directory
compilation terminated.
Error compiling.

//********************************************************************************
// * File Name : linefollow
// * Author : RadioShack Corporation
// * Version : V1.0
// * Date : 2014/01/16
// * Description : Optical sensors send feedback to PCB
// * to make the robot follow a black line on a white background.
// ********************************************************************************
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// 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
line_following.all_stop(); //all motors stop
}
// **************************************************************************
// * Main Loop
// **************************************************************************
void loop()
{
static int sensor_in; //variable to store the value of read_optical function feedback
static int sensorValue1 = 0; //variable to store optical1 status
static int sensorValue2 = 0; //variable to store optical2 status
static int sensorCnt = 0; //variable to count for trigger which optical
static long sensorTimer1 = millis(); //last triggered time
static long sensorTimer2 = millis(); //now time
static int action1 = 0; //now action
static int action2 = 0; //last action
//************************************************************************
// Trigger Left/Right optical every 15 milliseconds
//************************************************************************
sensorTimer2 = millis(); //read now time
if (sensorTimer2 - sensorTimer1 > 15) //if now time minus last triggered time is greater than 15ms, then trigger another optical
{
sensorTimer1 = sensorTimer2; //last triggered time = now time
/***********************************************************************

-> trigger optical1 -> greater than 15ms -> trigger optical2 -> greater than 15ms ->
***********************************************************************/
if (sensorCnt == 0)
line_following.trigger_optical1();
else if (sensorCnt == 1)
line_following.trigger_optical2();
sensorCnt++;
if (sensorCnt == 2)
sensorCnt = 0;
}
//***********************************************************************
// Read Left/Right optical status
//***********************************************************************
sensor_in=line_following.read_optical();
/************************************************************************
read_optical()
Description
Reads the value from optical1(Right side) or optical2(Left side)
Syntax
read_optical()
Parameters
none
Returns
0x000 optical1 black
0x0ff optical1 white
0x100 optical1 white
0x1ff optical1 black
0x2XX not ready; don't use this value
*************************************************************************/
if((sensor_in & 0xf00)==0)
sensorValue1=sensor_in & 0xff;
else if((sensor_in & 0xf00)>>8==1)
sensorValue2=sensor_in & 0xff;
if (sensorValue1 == 0x00)
action1 =action1 & 0xfe;
if (sensorValue1 == 0xFF)
action1 = action1
if (sensorValue2 == 0x00)
action1 = action1
if (sensorValue2 == 0xFF)
action1 = action1 & 0xfd;
/************************************************************************
action1
left right
0x00 black black
0x01 black white
0x02 white black
0x03 white white
*************************************************************************/
/************************************************************************
Make Robot Move
if action1 is not equal to action2, then change motor status
if action1 is equal to action2, then do nothing
*************************************************************************/
if(action1 != action2)
{
if (action1 == 3 )
line_following.go_forward(50);
if (action1 == 1)
line_following.line_following_turn_left(50);
if (action1 == 2)
line_following.line_following_turn_right(50);
if (action1 == 0)
line_following.go_forward(50);
}
action2=action1;
}

Are you absolutely sure that the folder name and names of the .h and .cpp files are exactly the same ?

I am having the following error.

linefollow.ino:23:45: fatal error: MakeItRobotics.h: No such file or directory
compilation terminated.

I already create the library and when I upload the file or compli and verify I get the error above.

Could someone give me a hint of how to solve it.

Could someone give me a hint of how to solve it.

Do you actually have the file on your PC and if so where ?

UKHeliBob:
Do you actually have the file on your PC and if so where ?

Pretty much what I asked him here

I have the same problem but when i did the things you said I still ran into the same errors... :frowning:

Please post your program and a copy of the error messages