Cannot compile zumo code

Hi,

My zumo for arduino robot arrived yesterday and I went to the pololusit and downoaded the libraries, etc.
I am using IDE 1.05 and 1.6.11.I loaded the libraries as a group, as a .zip, and individually.
When i attempt to compile an example code I get repeated errors: “does not name a type,” “not declared in this scope,” “expect an initiator after…”
What can I do about this? I am not knowledgeable enough to write my own code.

Thanks.

Hi,

There is a step-by-step instructions to install the library for the Zumo Robot on Pololu’s github.

You can also take a look at the Arduino guide for installing Libraries.

Regards,

Thanks for your note. I thought the Zumo 34U4 was for a different robot with an LCD on the top. I will give it a try.

The code for the Zumo 34U4 compiles and uploads to the Zumo for Arduino, but the robot does not run. The buzzer examples are all missing code, mostly “does not name a type.” I have (exhaustively) tried to load the libraries for the Zumo for Arduino without a successful outcome.

So I am finished with this project. I want to return the unused robot for a cash refund. I will return it to your company with an explanatory note.

Too bad. It is a nice robot

OK, here is the answer. I looked up “doesn’t name an type” and “out of scope” and went to the arduino forum. If I remove all the .cpp and .h files from their subdirectories, e.g., buzzer, and put them directly in the zumo_arduino_master file (directory) then the programs load and work (except buzzer #2 and #3.: I don’t care). This is why I do not love arduino coding.

Question though: How do I load more than one of the examples onto the arduino without erasing the previously loaded program? Presumable I must ties these sketches together into one larger sketch. Any hints?

P.S.: I will be keeping this zumo and will order another.

Hi,

You are correct. The ATmega32U4 on the board erases the previous program when you load a new one. You will need to modify the code such as you load one program with all the sketches you want.

Regards,