Connecting Ultimate/Orion with Arduino


#1

Hi. I’m trying to connect the Orion board to my computer using Arduino. The Orion board is from the “Starter Robot Kit” which contains a tank-like robot.

I’ve downloaded the .zip library for Arduino which contains examples for Mbot. I have also selected the Arduino/Geniuno Uno board.

I’ve typed in this code into Arduino which is provided by Mblock:

However, I get this error message when I try to compile or upload it:

C:\Users\Joachim\Desktop\orion_firmware\orion_firmware.ino:1:21: fatal error: MeOrion.h: No such file or directory

#include “MeOrion.h”

                 ^

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.

I can’t figure out what I am doing wrong. Help?


#2

This is probably a silly question, but did you install the library to the sketch via the Arduino menu item (Sketch->Include Library->Add .ZIP library)?

Also, if you have installed mBlock and have a separate installation of the Arduino IDE, you may encounter problems unless the Sketchbook directory is the same.


#3

I did add the library and I can select Makeblock examples in Arduino.

What exactly do you mean with the sketchbook directory? I downloaded Arduino seperately from mBlock.


#4

If you installed mBlock, it has a copy of the Arduino environment as part of its installation and that has caused some folks some pain in the past. Normally the cause is one Arduino IDE appearing before the other in the system path.

If a header file, such as MeOrion.h is throwing this type of error, it usually means that the file in question does not appear in your path. Normally, if one installs the Makeblock libraries, these files should be found in the library’s directory which is usually associated with a sketchbook location (specified in the preferences).

Not sure what your experience is with the Arduino IDE so if I’m inadvertently speaking beneath your level please accept my apology in advance. :slight_smile:


#5