# Error Message: "RedBotMotors"

**URL:** <https://community.sparkfun.com/t/error-message-redbotmotors/30153>\
**Category:** Arduino\
**Created:** [January 13, 2015, 2:46am UTC](https://community.sparkfun.com/t/error-message-redbotmotors/30153 "2015-01-13T02:46:55Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmarsh70](https://avatars.discourse-cdn.com/v4/letter/b/a183cd/32.png) [@bmarsh70](https://community.sparkfun.com/u/bmarsh70)\
**Post date:** [January 13, 2015, 2:46am UTC](https://community.sparkfun.com/t/error-message-redbotmotors/30153/1 "2015-01-13T02:46:55Z")

</div>

I try to run the RedBot Sketch “Drive Forward”, and get an error message that “RedBotMotors” is not a type.

I can load the ‘Blink” sketch ok.

I see the RedBot folder in the library folder. What is the problem?

I am a beginner, and this is very frustrating!! Thanks for any help.

---

<div class="post-metadata">

**Author:** ![Mee\_n\_Mac](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@Mee\_n\_Mac](https://community.sparkfun.com/u/Mee_n_Mac)\
**Post date:** [January 13, 2015, 3:45am UTC](https://community.sparkfun.com/t/error-message-redbotmotors/30153/2 "2015-01-13T03:45:27Z")

</div>

Can you post a link to the exact sketch you used, or post the code itself ? My guess is you’re missing a file in the folder (a list of files in or screenshot of the Redbot folder would be nice) or an _#include\<\>_ at the top of the sketch or have a path name wrong.

---

<div class="post-metadata">

**Author:** ![bmarsh70](https://avatars.discourse-cdn.com/v4/letter/b/a183cd/32.png) [@bmarsh70](https://community.sparkfun.com/u/bmarsh70)\
**Post date:** [January 13, 2015, 2:15pm UTC](https://community.sparkfun.com/t/error-message-redbotmotors/30153/3 "2015-01-13T14:15:53Z")

</div>

Mee\_n\_Mac;

Thanks for the quick reply!

Here is the code for the sketch “Drive Forward”. The 2nd line, “RedBotMotors motors;” shows an error…“THIS IS NOT A TYPE.”

#include \<RedBot.h\> // This line “includes” the RedBot library into your sketch.

// Provides special objects, methods, and functions for the RedBot.

RedBotMotors motors; // Instantiate the motor control object. This only needs

// to be done once.

void setup()

{

motors.drive(255); // Turn on Left and right motors at full speed forward.

delay(2000); // Waits for 2 seconds

motors.stop(); // Stops both motors

}

void loop()

{

// Nothing here. We’ll get to this in the next experiment.

}

Here is a screen shot of the contents of the RedBot folder in the Libraries folder.

/Users/21imac/Desktop/RedBotLibraryScreen%20Shot.jpg

Here is a Screenshot of the path to the library folder:

/Users/21imac/Desktop/PathScreenShot.jpg

I hope these images show…my screen just shows the images file names!

Thanks!

Bruce.

---

<div class="post-metadata">

**Author:** ![bmarsh70](https://avatars.discourse-cdn.com/v4/letter/b/a183cd/32.png) [@bmarsh70](https://community.sparkfun.com/u/bmarsh70)\
**Post date:** [January 13, 2015, 2:27pm UTC](https://community.sparkfun.com/t/error-message-redbotmotors/30153/4 "2015-01-13T14:27:22Z")

</div>

Here, I hope, are the images:

/Users/21imac/Desktop/RedBotLibraryScreen%20Shot.jpg

Path:

/Users/21imac/Desktop/PathScreenShot.jpg

I’m afraid these are not going to show!

Here are the files listed in the RedBot folder in the library:

**desktop.ini  
 RedBot\_Experiments  
 RedBot.cpp  
 RedBot.h  
 RedBotAccel.cpp  
 RedBotBumper.cpp  
 RedBotButton.cpp  
 RedBotEncoder.cpp  
 RedBotMotors.cpp  
 RedBotRadio.cpp  
 RedBotSensor.cpp  
 RedBotSoftwareSerial.cpp  
 RedBotSoftwareSerial.h**

I see the ‘Bold’ Option does not work.

Here is the path to the library: MacHD/Applications/Arduino/Contents/Resources/JAVA/Libraries/RedBot

Thanks again;

Bruce.

---

<div class="post-metadata">

**Author:** ![Ross\_Robotics](https://avatars.discourse-cdn.com/v4/letter/r/cc9497/32.png) [@Ross\_Robotics](https://community.sparkfun.com/u/Ross_Robotics)\
**Post date:** [January 13, 2015, 8:39pm UTC](https://community.sparkfun.com/t/error-message-redbotmotors/30153/5 "2015-01-13T20:39:55Z")

</div>

We can’t see files on your computer. You can attach images to a post here. Click “Post Reply” \> “Upload Attachment” tab. Click “Browse”, then search for the image.

The library should be Documents/Arduino/libraries/RedBot/… (If you’re on a Windows machine.)

---

<div class="post-metadata">

**Author:** ![bmarsh70](https://avatars.discourse-cdn.com/v4/letter/b/a183cd/32.png) [@bmarsh70](https://community.sparkfun.com/u/bmarsh70)\
**Post date:** [January 13, 2015, 10:56pm UTC](https://community.sparkfun.com/t/error-message-redbotmotors/30153/6 "2015-01-13T22:56:28Z")

</div>

My path to libraries, on my Mac, is:

**MacHD/Applications/Arduino/Contents/Resources/JAVA/Libraries/RedBot**

But…I solved the problem with the error message…the code referenced “RedBotMotors”…the correct reference was “RedBotMotor”…NO “S”.

So now my sketch compiles ok…but now I get an error “Problem uploading to board”…I’ve tried both USB ports available, and the only 2 Board that references the ATmega 1280 board…I also installed FDLI (?) drivers, as I saw in one post they solved the problem for Yosemite on my Mac.

Any suggestions?

Thanks…Bruce.

---

<div class="post-metadata">

**Author:** ![Mee\_n\_Mac](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@Mee\_n\_Mac](https://community.sparkfun.com/u/Mee_n_Mac)\
**Post date:** [January 13, 2015, 11:38pm UTC](https://community.sparkfun.com/t/error-message-redbotmotors/30153/7 "2015-01-13T23:38:06Z")

</div>

I don’t know about your “fix” above. The C++ file is **RedBotMotors.cpp**. I’d have thought the Redbot folder should have been in a Libraries folder directly under the Arduino folder … but I’m on a PC.

**\*\*MacHD/Applications/Arduino/Libraries/RedBot\*\***

Note the Mac comments here …

[http://arduino.cc/en/Guide/Libraries](http://arduino.cc/en/Guide/Libraries)

---

<div class="post-metadata">

**Author:** ![bmarsh70](https://avatars.discourse-cdn.com/v4/letter/b/a183cd/32.png) [@bmarsh70](https://community.sparkfun.com/u/bmarsh70)\
**Post date:** [January 14, 2015, 4:02am UTC](https://community.sparkfun.com/t/error-message-redbotmotors/30153/8 "2015-01-14T04:02:08Z")

</div>

So I’m stumped…if I add an “s” to RedBotMotor in the sketch it tells me that “it is not a type”.

With the “S” it compiles ok, but fails to upload. The detailed error message adds “programmer is not responding”.

I’ll delete everything, and download it the software again…tomorrow. I worry that it is a problem with the Yosemite OS…others mention that.

Thanks anyway.

Bruce.

---

<div class="post-metadata">

**Author:** ![bmarsh70](https://avatars.discourse-cdn.com/v4/letter/b/a183cd/32.png) [@bmarsh70](https://community.sparkfun.com/u/bmarsh70)\
**Post date:** [January 14, 2015, 3:19pm UTC](https://community.sparkfun.com/t/error-message-redbotmotors/30153/9 "2015-01-14T15:19:58Z")

</div>

Totally stumped!

I deleted everything related to Arduino and RedBot, and downloaded the software and the library again.

The ‘Blink’ sketch can be verified and compiled, but will not upload. Error Message: Programmer not responding.

I’m worried that it is some incompatibility with the Mac OS 10.10.1 "Yosemite’'.

Any suggestions??

---

<div class="post-metadata">

**Author:** ![Mee\_n\_Mac](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@Mee\_n\_Mac](https://community.sparkfun.com/u/Mee_n_Mac)\
**Post date:** [January 14, 2015, 3:28pm UTC](https://community.sparkfun.com/t/error-message-redbotmotors/30153/10 "2015-01-14T15:28:30Z")

</div>

My guess is that you have 2 problems; a RedBotMotors path problem and then a driver problem visavis a Mac. I can’t help you on the latter.

---

<div class="post-metadata">

**Author:** ![Ross\_Robotics](https://avatars.discourse-cdn.com/v4/letter/r/cc9497/32.png) [@Ross\_Robotics](https://community.sparkfun.com/u/Ross_Robotics)\
**Post date:** [January 14, 2015, 6:20pm UTC](https://community.sparkfun.com/t/error-message-redbotmotors/30153/11 "2015-01-14T18:20:18Z")

</div>

The Arduino forums will be able to help you with the Mac.

---

<div class="post-metadata">

**Author:** ![bmarsh70](https://avatars.discourse-cdn.com/v4/letter/b/a183cd/32.png) [@bmarsh70](https://community.sparkfun.com/u/bmarsh70)\
**Post date:** [January 14, 2015, 9:23pm UTC](https://community.sparkfun.com/t/error-message-redbotmotors/30153/12 "2015-01-14T21:23:44Z")

</div>

Thanks. I finally got it worked out.

---

<div class="post-metadata">

**Author:** ![Ross\_Robotics](https://avatars.discourse-cdn.com/v4/letter/r/cc9497/32.png) [@Ross\_Robotics](https://community.sparkfun.com/u/Ross_Robotics)\
**Post date:** [January 14, 2015, 9:31pm UTC](https://community.sparkfun.com/t/error-message-redbotmotors/30153/13 "2015-01-14T21:31:44Z")

</div>

After the help we gave you why not tell everyone what you did?

---

<div class="post-metadata">

**Author:** ![bmarsh70](https://avatars.discourse-cdn.com/v4/letter/b/a183cd/32.png) [@bmarsh70](https://community.sparkfun.com/u/bmarsh70)\
**Post date:** [January 15, 2015, 4:13am UTC](https://community.sparkfun.com/t/error-message-redbotmotors/30153/14 "2015-01-15T04:13:38Z")

</div>

I deleted all Arduino things again, downloaded the software and the RedBot Library, installed the Software and Libraries.

Then I chose Arduino Uno board, instead of the ATmega 1280, and it works!!

I’m not sure what became of the Sketchbook folder during installation, but I simply put the RedBot example scripts in a folder from which I can open them.

NOW…I hope to begin to learn the code, as I want to do some projects using light sensors (Photo transistors I think) and also ultrasonic range finding. The electronics and the coding look complex…hoping I can get on to them a step at a time.

Valentino Braitenberg wrote a book “Vehicles” which suggests generations of very simple vehicles which display apparent intelligent behavior. I’d like to build a swarm, some acting as predators, some as prey, and maybe build in some apparent learning…there are some good YouTube examples…using Lego Windstorms…see: [https://www.youtube.com/watch?v=G6tlJkRXG3c](https://www.youtube.com/watch?v=G6tlJkRXG3c) and [https://www.youtube.com/watch?v=NJo5HEdq6y0](https://www.youtube.com/watch?v=NJo5HEdq6y0)

Bruce.
