Make: It Robotics Stater Kits software issues & questions

So, I keep getting strings of error messages when i try to verify the code for this kit.

"MakeItRobotics surveillance; //declare object" is the first problem I run into (line 30). I'm completely new to this, and know nothing of how to troubleshoot code. All the other sketches from the site do the same. I am lost.

http://blog.radioshack.com/2014/05/radioshack-make-magazine-launch-make-robotics/ is the site. The files are under "Make It Robotics Starter Kit Support Files" after a few folder clicks in, but to save time...

//********************************************************************************
// * File Name : Surveillance_IR_remote.ino
// * Author : RadioShack Corporation
// * Version : V1.0
// * Date : 2014/01/23
// * Description : Use the RadioShack Make: it Robotics Remote Control to control the 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
/****************************************************************************
Press the following buttons (SW) to control the robot.
SW1 forward
SW3 backward
SW4 turn right
SW2 turn left
SW5 rotate platform clockwise
SW6 rotate platform counterclockwise
******/
#include <MakeItRobotics.h> //install library
MakeItRobotics surveillance; //declare object
// **************************************************************************
// * Power Up Init.
// **************************************************************************
void setup()
{
Serial.begin(10420); //tell the Arduino to communicate with Make: it PCB
surveillance.remote_setup(); //remote control setup
delay(500); //delay 500ms
surveillance.all_stop(); //stop all motors
}
// **************************************************************************
// * Main Loop
// **************************************************************************
void loop()
{
static unsigned int valueo=0; //old remote control code
static unsigned int valuen=0; //new remote control code
valuen=surveillance.remote_value_read(); //to read code from remote control
if(valuen!=valueo) //if the remote control code is different than the previous code, then change status
{
valueo=valuen; //refresh the previous code
if(valueo==SW1) //SW1 action
{
surveillance.surveillance_head_clockwise(0); //stop platform
surveillance.go_forward(80); //go forward
}
else if(valueo==SW3) //SW3 action
{
surveillance.surveillance_head_clockwise(0); //stop platform
surveillance.go_backward(80); //go backward
}
else if(valueo==SW2) //SW2 action
{
surveillance.surveillance_head_clockwise(0); //stop platform
surveillance.turn_left(80); //turn left
}
else if(valueo==SW4) //SW4 action
{
surveillance.surveillance_head_clockwise(0); //stop platform
surveillance.turn_right(80); //turn right
}
else if(valueo==SW5) //SW5 action
{
surveillance.move_stop(); //stop wheels
surveillance.surveillance_head_clockwise(45); //rotate platform clockwise
delay(75); //delay 75ms
surveillance.surveillance_head_clockwise(0); //stop platform
delay(75); //delay 75ms
valueo=0; //clear the value; the program will go into this case again
}
else if(valueo==SW6) //SW6 action
{
surveillance.move_stop(); //stop wheels
surveillance.surveillance_head_counterclockwise(45); //rotate platform counterclockwise
delay(75); //delay 75ms
surveillance.surveillance_head_clockwise(0); //stop platform
delay(75); //delay 75ms
valueo=0; //clear the value; the program will go into this case again
}
else //if no buttons are pushed
surveillance.all_stop(); //stop all motors
}
}
/

  • Remote Scan
    ************************************************************************/
    ISR(PCINT0_vect) //interrupt code
    {
    surveillance.remote_scan(); //analyze signal from RadioShack Make: it Robotics Remote Control
    }

"MakeItRobotics surveillance; //declare object" is the first problem I run into (line 30).

That's the line, not the error message. What is the error message?

Have you properly installed the MakeItRobotics library? From where?

Add post code in CODE TAGS.

Mark

The first error message is "Surveillance_IR_remote:30: error: 'MakeItRobotics' does not name a type."

Also, I copied/pasted keywords (from the Make site) into a new tab in the gui along with the other sketch per tutorial on installing libraries, but I'm doing something wrong. Like I said, the noobiest of noobs here. I haven't a clue as to what I'm doing yet.

Soylent_Gringo:
Also, I copied/pasted keywords (from the Make site) into a new tab in the gui along with the other sketch per tutorial on installing libraries, but I'm doing something wrong. Like I said, the noobiest of noobs here. I haven't a clue as to what I'm doing yet.

When you get around to posting a link to the library, and describing exactly what files you are putting where, on what operating system, I'll pay attention again. Meanwhile, good luck.

http://blog.radioshack.com/2014/05/radioshack-make-magazine-launch-make-robotics/ is the link.
"Make It Robotics Starter Kit Support Files" which saves the files to my documents, where I got the file for 'keywords', copied/pasted them into a new tab in the sketch.
I'm now using an old laptop running Windows XP because of java issues on a newer one.
Again, I'm new. Never written a single line of code & know nothing of how to troubleshoot it.
The Keywords:

MakeItRobotics KEYWORD1
dc_write KEYWORD2
m1_action KEYWORD2
m2_action KEYWORD2
go_forward KEYWORD2
go_backward KEYWORD2
turn_left KEYWORD2
turn_right KEYWORD2
turn_front_left KEYWORD2
turn_front_right KEYWORD2
move_stop KEYWORD2
m3_action KEYWORD2
m4_action KEYWORD2
bulldozer_head_up KEYWORD2
bulldozer_head_down KEYWORD2
drilling_head_colckwise KEYWORD2
drilling_head_countercolckwise KEYWORD2
surveillance_head_clockwise KEYWORD2
surveillance_head_counterclockwise KEYWORD2
boxer_left_hand_up KEYWORD2
boxer_left_hand_down KEYWORD2
boxer_right_hand_up KEYWORD2
boxer_right_hand_down KEYWORD2
street_sweeper_inward KEYWORD2
street_sweeper_outward KEYWORD2
catapult_head_clockwise KEYWORD2
catapult_head_counterclockwise KEYWORD2
catapult_head_pull KEYWORD2
catapult_head_throw KEYWORD2
clampingarm_up KEYWORD2
clampingarm_down KEYWORD2
clampingarm_clamp KEYWORD2
clampingarm_release KEYWORD2
spotlight_head_clockwise KEYWORD2
spotlight_head_counterclockwise KEYWORD2
spotlight_head_up KEYWORD2
spotlight_head_down KEYWORD2
spotlight_setup KEYWORD2
spotlight_on KEYWORD2
spotlight_off KEYWORD2
line_following_setup KEYWORD2
trigger_optical1 KEYWORD2
trigger_optical2 KEYWORD2
read_optical KEYWORD2
line_following_turn_left KEYWORD2
line_following_turn_right KEYWORD2

walking_robot_setup KEYWORD2
walking_robot_right_leg_forward KEYWORD2
walking_robot_left_leg_forward KEYWORD2
walking_robot_right_leg_backward KEYWORD2
walking_robot_left_leg_backward KEYWORD2
all_stop KEYWORD2

remote_value_read KEYWORD2
remote_scan KEYWORD2
remote_setup KEYWORD2

sensor_kit_optical_setup KEYWORD2
trigger_optical3 KEYWORD2
read_optical3 KEYWORD2

sensor_kit_mic_setup KEYWORD2
read_mic KEYWORD2

sensor_kit_infrared_setup KEYWORD2
read_infrared KEYWORD2

copied/pasted them into a new tab in the sketch.

That was not useful. The link is to a zip file. The zip file contains a folder called MakeItRobotics. Drag that whole folder into the libraries folder in the folder where your sketches are stored. If you don't have a libraries folder, MAKE ONE.

Okay, made the library, imported the folder, added the library to the sketch, tried to verify :frowning: same errors.
I tried different sketches, still the same errors:

Surveillance_IR_remote:31: error: 'MakeItRobotics ' does not name a type
Surveillance_IR_remote.ino: In function 'void setup()':
Surveillance_IR_remote:38: error: 'surveillance' was not declared in this scope
Surveillance_IR_remote.ino: In function 'void loop()':
Surveillance_IR_remote:49: error: 'surveillance' was not declared in this scope
Surveillance_IR_remote:53: error: 'SW1" was not declared in this scope
Surveillance_IR_remote:58: error: 'SW3" was not declared in this scope
Surveillance_IR_remote:63: error: 'SW2" was not declared in this scope
Surveillance_IR_remote:68: error: 'SW4" was not declared in this scope
Surveillance_IR_remote:73: error: 'SW5" was not declared in this scope
Surveillance_IR_remote:82: error: 'SW6" was not declared in this scope
Surveillance_IR_remote.ino: In function 'void_vector_3()':
Surveillance_IR_remote:100: error: 'surveillance' was not declared in this scope

I downloaded the zip file, copied the MakeItRobotics folder to C:\Users<myUserId>\Documents\Arduino\libraries, started the IDE, opened "C:\Users<myUserId>\Documents\Arduino\libraries\MakeItRobotics\Examples\2770169 Add-On Project Kit 1\IR_remote\Surveillance_IR_remote\Surveillance_IR_remote.ino", and clicked Verify.

Sure enough. Errors galore:

Binary sketch size: 4,096 bytes (of a 30,720 byte maximum)

Now, your turn. Step by step. Just what did you do? With REAL NAMES!

I did exactly that, but to no avail. I may be green as grass but I can follow directions.
I opened the sketch, imported the libraries as per http://arduino.cc/en/Guide/Libraries, tried to verify, same string of errors.
(The libraries being previously added as directed by you & the Arduino site-unzipped file.)
Not sure what you mean by REAL NAMES lol.
Thanks very much for your time tho'. While I'll be the first to admit that I don't know what I'm doing as far coding/troubleshooting, as far as I can tell I'm going through the steps, in the order given.

Not sure what you mean by REAL NAMES lol.

This is nonsense:

I did exactly that, but to no avail.

You did NOT download the code to my computer. You did not install it in my sketch directory.

So, YOU explain exactly what YOU did, or I'm out of here.

OK Guys. When I did this I noticed there are two locations available for Arduino Libraries. One is C:\Programs\Arduino\Libraries and the other is C:\Users(username)\Documents\Arduino\libraries. The correct location is the second one.

If you use "Open..." command on the File menu, it points to the first location. If you use the "Sketchbook" command on the File menu, it points to the second location which is what worked for me.

Apparently the Sketchbook command will also auto-search and load any associated libraries it finds along the way. The Open... command may not, although you should be able to use the Import Library command on the Sketch menu to install in manually and alleviate the errors.

I posted a step-by-step for newbies in a related post. I am using Windows 7 and brand new copies of all programs. Your mileage may vary.

All in all a learning experience and way harder than it need to be.