Robot no longer works after uploading first program


#1

I have the IR Starter Robot kit. I assembled it and it was working fully with the remote control. I then started playing with mBlock and created a really simple program that just moves the tracks. I uploaded it to the robot and it worked. However, after doing that, the remote no longer works. I am guessing that the simple program I wrote overwrote the program that makes the IR remote work?

Thinking that, I looked around and found mBot-default-program.ino on GitHub. I downloaded the library and was able to use the Arduino software to upload it to the robot. The console says the upload was successful, but the robot still does not respond to the remote control.

Any ideas?

Thanks


#2

@mikebian, if you have uploaded some other program, then you have to restore the factory setting for using the remote control, we have posted another article, you can refer from here: http://forum.makeblock.cc/t/my-starter-robot-cant-work-with-remote-controller/2019
Kindly do as the article says, and if any more questions, you can contact us by support@makeblock.cc


#3

I was able to follow this to a point. When I try to run Verify or Upload from the Arduino IDE, it gives me an error compiling. I have verbose output on and get the following error message:

Using library Servo in folder: C:\Program Files (x86)\mBlock\arduino\libraries\Servo
Using library Wire in folder: C:\Program Files (x86)\mBlock\arduino\hardware\arduino\avr\libraries\Wire
Using library SoftwareSerial in folder: C:\Program Files (x86)\mBlock\arduino\hardware\arduino\avr\libraries\SoftwareSerial

C:\Program Files (x86)\mBlock\arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\mBlock\arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\mBlock\arduino\hardware\arduino\avr\variants\standard -IC:\Program Files (x86)\mBlock\arduino\libraries\Servo\src -IC:\Program Files (x86)\mBlock\arduino\hardware\arduino\avr\libraries\Wire -IC:\Program Files (x86)\mBlock\arduino\hardware\arduino\avr\libraries\SoftwareSerial C:\Users\Michael\AppData\Local\Temp\build820102024418364732.tmp\Firmware_for_Starter.cpp -o C:\Users\Michael\AppData\Local\Temp\build820102024418364732.tmp\Firmware_for_Starter.cpp.o
Firmware_for_Starter.ino:16:21: fatal error: MeOrion.h: No such file or directory
compilation terminated.
Error compiling.

I have all of the files in C:\Users\Michael\Documents\Arduino\libraries. I just unzipped the file I downloaded from github there.

The file I am trying to compile is in C:\Users\Michael\Documents\Arduino\libraries\Makeblock-Libraries-master\makeblock\example\Firmware_for_Starter\Firmware_for_Starter.ino

MeOrion.h is located in C:\Users\Michael\Documents\Arduino\libraries\Makeblock-Libraries-master\makeblock\src

I also tried copying it to the same directory as Firmware_for_Starter.ino, but that did not help.

Suggestions?

Thanks


#4

@mikebian, you have to put the “Makeblock.h” & “Makeblock.cpp” under the item of My documents < Arduino < libraries,kindly do as my suggestion and let us know if more problems, thanks!


#5

Those 2 files don’t seem to exist anywhere and further, I am not sure why you are saying to get them as they are not what the error is referencing.

I was to fix this via some experimentation. I don’t think what I did is the right way to do it, but it works. I copied all of the Me*.h and Me*.cpp files to C:\Program Files (x86)\mBlock\Arduino\hardware\arduino\avr\cores\arduino and now it compiles.

I uploaded it to the robot and the IR controller is working as it should again.


#6