1st time user .... errors

Hello, I'm completely new to the Arduino. My 5th grade GT project is on programming. I decided to use and build the Make: Kit 1 with the Arduino. I get this error. I don't understand it. I'm the only one in my class learnig to program. Could someone please help me.

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Arduino: 1.0.6 (Windows 7), Board: "Arduino Uno"
Surveillance_demo:30: error: 'MakeItRobotics' does not name a type
Surveillance_demo.ino: In function 'void setup()':
Surveillance_demo:38: error: 'surveillance' was not declared in this scope
Surveillance_demo.ino: In function 'void loop()':
Surveillance_demo:45: error: 'surveillance' was not declared in this scope

Post your code and please use code tags (the scroll with the <>)

so it looks like this

The line Surveillance_demo:30: error: 'MakeItRobotics' does not name a type suggests that a library is missing.

...R

a library is missing.

Or more likely installed in the wrong place. After installing one you have to restart the IDE.

This is what download gave me.

//********************************************************************************
// * File Name : Surveillance_demo.ino
// * Author : RadioShack Corporation
// * Version : V1.0
// * Date : 2014/01/16
// * Description : Cycle through the basic functions of the RadioShack Make: it surveillance robot
// ********************************************************************************
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, see Licenses - GNU Project - Free Software Foundation
//
/*****************************************************************************
1st action -> forward 1 second <-------------------------|
2nd action -> backward 1 second |
3rd action -> turn left 1 second |
4th action -> turn right 1 second |
5th action -> rotate platform clockwise 1 second |
6th action -> rotate platform counterclockwise 1 second ---|
*****************************************************************************/
#include <MakeItRobotics.h> //include library
MakeItRobotics surveillance; //declare object
// **************************************************************************
// * Power Up Init.
// **************************************************************************
void setup()
{
Serial.begin(10420); //tell the Arduino to communicate with Make: it PCB
delay(500); //delay 500ms
surveillance.all_stop(); //all motors stop
}
// **************************************************************************
// * Main Loop
// **************************************************************************
void loop()
{
surveillance.go_forward(80); //forward
delay(1000); //delay 1000ms
surveillance.go_backward(80); //backward
delay(1000); //delay 1000ms
surveillance.turn_left(80); //turn left
delay(1000); //delay 1000ms
surveillance.turn_right(80); //turn right
delay(1000); //delay 1000ms
surveillance.all_stop(); //all motors stop
surveillance.surveillance_head_clockwise(45); //rotate platform clockwise
delay(1000); //delay 1000ms
surveillance.surveillance_head_counterclockwise(45); //rotate platform counterclockwise
delay(1000); //delay 1000ms
surveillance.all_stop(); //all motors stop
delay(1000); //delay 1000ms
} //actions repeat continuously until you turn off battery compartments

Like you have been told you have not installed the library correctly. I get no errors when I compile that code.

This is how to do it:-

You need to put the 'MakeItRobotics' folder into the libraries folder.

Use the code tags button to post your code. If don't know
what that is ASK.

Do you or do you not know EXACTLY how to install a library ???

( " know" means you are NOT guessing)

I have installed everything as it asked me too. It never said anything about the libraries. Did I need a special library for it? Like I said this is my first time with Arduino and I'm trying my best to understand how to program this. Everything was installed right, I read everything very carefully.

Thank you for your time and help.

Hi just unzip the library into folder of library in arduino

for example

My location:

D:\arduino-1.0.1\arduino-1.0.1\libraries

you save library in your library folder. Let us know what error you get.

MakeItRobotics.zip (181 KB)

Hi just unzip the library into folder of library in arduino

@Amps,
How do you know the OP even knows WHERE that library folder is located ?
Do you know if he knows HOW to find it ?

@raschemmel

By seeing his previous comment it states that he just beginner in arduino.
Thats reason i given where i given simple example where my library folder located in arduino.

DragonRage:
I have installed everything as it asked me too. It never said anything about the libraries. Did I need a special library for it?

Yes you do whether it said anything about it or not.
The #include statement in your code is telling you that a library is required. Even the comments say that.
Now do a google search for MakeItRobotics.h down load the files package. Un zip it and open it up. In that folder are some data sheets and another folder called MakeItRobotics, drag that into your Arduino's libaries folder. Now restart the IDE and that code you posted will compile.

How do you know the OP even knows WHERE that library folder is located ?
Do you know if he knows HOW to find it ?

Ok, let me explain.
The OP says he's new to arduino. The IDE installs the IDE libraries but I don't think it creates the library Arduino folder in
C:\My Documents
or the library folder in C:\My Documents\Arduino

such that after creating it the path is :

C:\My Documents\arduino\libraries (sketches and user downloaded libraries)

Being new to arduino, the OP may not know that he can find this folder location by opening the IDE and
clicking "File\Preferences" and looking at the path shown there.

I have seen cases where Newbies unzip user downloaded libraries and put them in the IDE library folder
which is not where they should be.

I have also seen cases where the folder and file structure created by the unzip results in duplicate folders
with the same name, (one inside the other) causing compile errors.

The question is,
1-did the OP create the Arduino folder in C:\My Documents
2- did the OP create the library folder in C:\My Documents\Arduino
3-presumably the OP is not saving sketches yet but where would he save them if he was ?

If the IDE DOES create the Arduino folder in C:\My Documents, would that do any good if the OP unzipped
the library to some other location ?

By seeing his previous comment it states that he just beginner in arduino.
Thats reason i given where i given simple example where my library folder located in arduino.

I don't see what you mean. The library you attached shows the file structure of the library. How does that
show WHERE on the hard drive he should unzip the library ? Does the library you attached show the full
path of "C:\My Documents\Arduino\libraries" ?

Please explain. I'm not seeing the benefit of your attaching the file. The OP can download that zip and
it still doesn't tell him WHERE to unzip it .

How does this instruction in your README file tell the OP WHERE (exactly) to create that folder ?

  1. Create a MakeItRobotics folder in the libraries sub-directory of your Arduino folder or sketchbook directory.

(Do you know if the OP knows WHERE that is supposed to be ?)(I don't)
Moreover, how does the OP know that THIS:

libraries sub-directory of your Arduino folder

does NOT mean the IDE installed Arduino folder in "C:\Program Files (x86)" ?

(taking into account he is new to arduino)

Do we KNOW if he knows that ? (I don't . Do you ?)