Help with Programming the Ultrasonic/IR sensor robot


#1

I’m very new to programming and have only done a very tiny amount before.
Firstly the Building of my V1 tracked robot (the one with the separate meduino board and shield not the new ME board)
was very easy to do and great fun.
However I’ve now come to getting the code for the board and I’m really struggling. The problem I’m running into is that the example codes don’t verify.
Every time I get a ‘’-------’ does not name a type’ this occurs with every example I use.
I’ve tried removing arduino IDE and reinstalling the makeblock library to make sure I had the latest versions.
I’ve also made sure all the drivers on the board are up to date and have been searching on the internet for a solution for quite a while now.
I was hoping that the code would work straight off the bat and I could just start tweaking it to see what happed if I changed stuff.
Any help would be appreciated
Thanks very much


Problem with compiling IR control sketch for the basic robot kit
#2

Hey,
The error basically means that the Arduino software cannot find the loaction of the library. Could you tell the exact path where you have the library on your computer as well as the name of the library folder?

J


#3

Right ok, The path currently to the added library is:

C:\Users\alex\Documents\Arduino\libraries\MakeBlock\Makeblock

That then gets me to a list of all the examples.
Thanks


#4

So the path you want is:
C:\Users\alex\Documents\Arduino\libraries\MakeBlock\

In other words - move the files inside the second folder “Makeblock” (with little “b”) one level up and you’ll get it to work.

J


#5

Thanks so much all working now.


#6