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.
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.
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 ->