MakeBlock.h not found


#1

I’m trying to get this buzzer program going on the Orion:

#include <Makeblock.h>
#include <SoftwareSerial.h>
#include <Wire.h>

void setup() 
{
}

void loop()
{
  buzzerOn();
  delay(1000);
  buzzerOff();
  delay(1000);
}

But the compilation fails at the include of MakeBlock.h. So far I’ve tried putting the files .h .cpp and examples, in two places:

C:\Documents and Settings\Proprietario\Documenti\Arduino\Libraries\MakeBlock

and

C:\Programmi\Arduino\libraries

but still no joy. Where do I need to put them?

The files themselves where gotten from github and are included in Makeblock-Library-master.zip


#2

Hi,
Provided you have the latest arduino library (version 3.22, as suggested in your other thread), you need to change “Makeblock.h” to “Orion.h” in the script, line 1.

This explained in the README file, which comes with the library. You always have to read the README files which come woth software you do not know.

RTFM, mates !!! :wink:


#3

Thanks, I’ll try that.

(You’ve probably being do this for years. I haven’t. There are a zillion readmes with this stuff. If it was as easy as “Reading The Fucking Manual” as you suggest then there’d be no need for these forums.)


#4

No, it is the other way round. If people would read the manuals and the readmes and use the search function in the forums, many problems could be solved by themselves.

BUT: I do not want to blame anybody, especially not you and not with respect to makeblock. Because in order to be able to read manuals, these would first need to be produced by the makeblock company. :grin:

So please don’t hesitate to ask for help, when you feel so! Many happy helpers around here.


#5

Well the problem is that, for example, MakeBlock has a set of instructions (for the XY-Plotter) up on Instructables which is very very out of date. MakeBlock could at least take down that.

Also many people here are beginners. (We’ve all been beginners!) And sometimes beginners do not understand even the terminology in the README files.

Another reason for the forums existence!

Yes, I’ll need your help again within the next few days… grin:


#6

Orion.h does not work either.


#7

And then I was thinking why should Orion.h work? There is no such file in MakeBlock-Library-Master.zip.

So I went back to makeblock.h…

I’ve been trying to include “MakeBlock.h” in a simple test project for the MakeBlock Orion.

The compiler complains that it cannot find “MakeBlock.h”

So far I’ve tried it in

C:\Documents and Settings\Proprietario\Documenti\Arduino\Libraries\MakeBlock
C:\Programmi\Arduino\arduino-0017\hardware\libraries\MakeBlock
C:\Programmi\Arduino\arduino-0022\libraries\MakeBlock
C:\Programmi\Arduino\hardware\arduino\avr\libraries\MakeBlock
C:\Programmi\Arduino\libraries\MakeBlock

and the IDE cannot find it. (Programmi is Italian for Program files)

Is there a setting in the IDE I don’t know about…?


#8

Provided you haven’t installed the Arduino IDE in a non-standard way, you should find that in your documents folder there will be an Arduino folder, containing sketchs, plus a folder called “libraries”, beneath which will be any extra libraries you have downloaded, so for a typical Windows system, look in “My Documents\Arduino\Libraries\makeblock”


#9

Yes, that’s what I thought, in fact it is the first in that list of directories in my original post:

C:\Documents and Settings\Proprietario\Documenti\Arduino\Libraries\MakeBlock

When that did not work I started trying in all the other Arduino directories I could find.


#10

Somehow, I don’t know how, I think it was to do with including the Makeblock library using the IDE and not typing by hand, case sensitivity I think. I’ve got the program to compile and load. Thanks to all for the help…


#11

Ok, Giovanni. Here we go!

When I asked you to read the README FILE, this was not for fun! I told you it is all explained there. Had you followed my advice you would have discovered by yourself that the library in fact is named MeOrion.h :stuck_out_tongue_winking_eye:)! The advice to read was for you, not for me!

So, for your convenience I copy the ReadMe file here , with the relevant text snippets in boldface:

BEGIN README FILE
Makeblock Library v3.22

Arduino library for Makeblock electronic modules

This library is version 3.22, we do a lot of modifications in the code structure, It has a very big difference with the 2.0 version. we recommend all Makeblock customers to use this one.

How to use:

Download the source from the git https://github.com/Makeblock-official/Makeblock-Libraries

copy the makeblock folder to your arduino default library, Your Arduino library folder should now look like this (on Windows): [arduino installation directory]\libraries\makeblock\src

Open the Arduino Application. If already open it, you need to restart to see changes.

Click “File->Examples”. Here are some test program in MakeBlockDrive->example

Depending on the type of motherboard you’re using, You should modify the header file. For example, you are using a mCore, you should change "#include " to "#include " Correspondence between the board and the header file is:

Orion -------- MeOrion.h

BaseBoard ---- MeBaseBoard.h

mCore -------- MeMCore.h
END README FILE

I also doubt that you even use a library V 3.x. Your script example looks like it is from the old and outdated V2 library. Library V3.x comes with this example sketch for the buzzer (<pre> section stripped here):

#include "MeOrion.h"

void setup() 
{
}

void loop()
{
  buzzerOn();
  delay(1000);
  buzzerOff();
  delay(1000);
}

As you can see, the example uses only the MeOrion.h library, not “MakeBlock.h”. Hence MeOrion.h refers to (“includes”) the other libraries, this one is the only one to be included into your sketch.

Please double check which library version you use. Then download the latest library from the path given in the ReadMe above. I am sure it will work then.


#12

Yes, I’ve done as you said and it works! Many thanks! :smile:

But MakeBlock do not make it easy, there are a zillion versions hanging around and it is hard to know which one to use.

For example there is an installation file called “Arduino_Latest.exe” which you can download from the MakeBlock site. Why not put a date in the name instead of just “LATEST”?


#13

Oops! It works in the sense that it loads onto the board, but there is no buzzer sound. Is there a jumper or something to activate it?


#14

Hi GG,
Agreed; I have just taken srothe advice, and read the readme file downloaded with v3.2.2 zip, the contents of this .md file could only be changed after renaming the file with .txt. I bares no resemblance to the readme produce by srothe.
Frankly, until I searched for .md, I had never heard of Mark Down language files; As has been said, Makeblock is being marketed to “Beginners”. In this they have, so far, fallen far short of what is required.

Many complex matters become easy when the language and syntax become familiar. Srothe is responding like a typical “expert”; that is, patronising.

Getting to grips with makeblock software is like wading through treacle, but without any sweetness.

Seeker


#15

Srothe just wanted to thank you for providing an excellent response, I’m certain many have and will appreciate it.


#16