Problems getting started


#1

Ive uploaded the firmware and the thing buzzes occasionally but I can not upload the Ultrasonic_car program. I have installed the library and all looks as it should.

This is the error messare: Ultrasonic_car.ino:14:23: fatal error: Makeblock.h: No such file or directory
compilation terminated.
Error compiling.


#2

Did you download the library from github? Does it have a mecompass.cpp and mecompass.h? If yes, those files have a bug in them that looks for the eeprom libraries. If your not using the mecompass sensor its safe to remove those two files. I did and mine works fine.

If that still doesn’t help, increase the logging level for compiling in the arduino ide and share with us the log output. This is how I originally figured it out.


#3

I would suggest you make sure you are running the 1.0.6 version of the Arduino IDE for starters. Some people definitely seem to report issues running the latest version that the IDE is always bugging you to install.


#4

Thanks for the responces Shaiss and Jackbrown, I was beginning to wonder if any one was out there. Shais, I could not find the me compass files so maybe thats not my problem but thanks for the suggestion. Jackbrown, I did find that I was running the latest Arduino 1.6.5 so I have down loaded 1.0.6 and I am installing at the moment. I will report back. If that does not work I will get the verbose log and post it here as Shais suggested.

Thank you both


#5

Well I switched to the older Arduino, and at first it seemed like it would work Ultrasonic_car, did not compile but it did not complain about Makeblock.h. However, Makeblock.h was not highlighted in orange like SoftSerial.h and Wire.h Arduino.h was also no highlighted( this had been the same with the newer version of Arduino.

Instead Ultrasonic_car complained of MeDCMotor not being defined. I looked in Makeblaock.h and saw that that is where it would be defined. So I ran with verbose loge and found that Arduino still can not find Makeblock.h

Here is the log:

/Users/diesel/Downloads/20120216/pn/20120523/pn/Arduino 2.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I/Users/diesel/Downloads/20120216/pn/20120523/pn/Arduino 2.app/Contents/Resources/Java/hardware/arduino/cores/arduino -I/Users/diesel/Downloads/20120216/pn/20120523/pn/Arduino 2.app/Contents/Resources/Java/hardware/arduino/variants/standard -I/Users/diesel/Downloads/20120216/pn/20120523/pn/Arduino 2.app/Contents/Resources/Java/libraries/SoftwareSerial -I/Users/diesel/Downloads/20120216/pn/20120523/pn/Arduino 2.app/Contents/Resources/Java/libraries/Wire /var/folders/xs/3lz6q91d3wq4v4j5p96qyvf00000gp/T/build8545148106373238274.tmp/Ultrasonic_car.cpp -o /var/folders/xs/3lz6q91d3wq4v4j5p96qyvf00000gp/T/build8545148106373238274.tmp/Ultrasonic_car.cpp.o
Ultrasonic_car.ino:14:23: warning: Makeblock.h: No such file or directory
Ultrasonic_car:19: error: ‘MeDCMotor’ does not name a type
Ultrasonic_car:20: error: ‘MeDCMotor’ does not name a type
Ultrasonic_car:21: error: ‘MeUltrasonicSensor’ does not name a type
Ultrasonic_car.ino: In function ‘void loop()’:
Ultrasonic_car:38: error: ‘UltrasonicSensor’ was not declared in this scope
Ultrasonic_car.ino: In function ‘void Forward()’:
Ultrasonic_car:66: error: ‘MotorL’ was not declared in this scope
Ultrasonic_car:67: error: ‘MotorR’ was not declared in this scope
Ultrasonic_car.ino: In function ‘void Backward()’:
Ultrasonic_car:71: error: ‘MotorL’ was not declared in this scope
Ultrasonic_car:72: error: ‘MotorR’ was not declared in this scope
Ultrasonic_car.ino: In function ‘void TurnLeft()’:
Ultrasonic_car:76: error: ‘MotorL’ was not declared in this scope
Ultrasonic_car:77: error: ‘MotorR’ was not declared in this scope
Ultrasonic_car.ino: In function ‘void TurnRight()’:
Ultrasonic_car:81: error: ‘MotorL’ was not declared in this scope
Ultrasonic_car:82: error: ‘MotorR’ was not declared in this scope

Sincerely,

Ron


#6

So I tried to scrap Arduino and reinstall everything. No Joy
here is the latest log

/Users/diesel/Documents/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I/Users/diesel/Documents/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino -I/Users/diesel/Documents/Arduino.app/Contents/Resources/Java/hardware/arduino/variants/standard -I/Users/diesel/Documents/Arduino.app/Contents/Resources/Java/libraries/SoftwareSerial -I/Users/diesel/Documents/Arduino.app/Contents/Resources/Java/libraries/Wire /var/folders/xs/3lz6q91d3wq4v4j5p96qyvf00000gp/T/build1909189356733418999.tmp/Ultrasonic_car.cpp -o /var/folders/xs/3lz6q91d3wq4v4j5p96qyvf00000gp/T/build1909189356733418999.tmp/Ultrasonic_car.cpp.o
Ultrasonic_car.ino:14:23: warning: Makeblock.h: No such file or directory
Ultrasonic_car:19: error: ‘MeDCMotor’ does not name a type
Ultrasonic_car:20: error: ‘MeDCMotor’ does not name a type
Ultrasonic_car:21: error: ‘MeUltrasonicSensor’ does not name a type
Ultrasonic_car.ino: In function ‘void loop()’:
Ultrasonic_car:38: error: ‘UltrasonicSensor’ was not declared in this scope
Ultrasonic_car.ino: In function ‘void Forward()’:
Ultrasonic_car:66: error: ‘MotorL’ was not declared in this scope
Ultrasonic_car:67: error: ‘MotorR’ was not declared in this scope
Ultrasonic_car.ino: In function ‘void Backward()’:
Ultrasonic_car:71: error: ‘MotorL’ was not declared in this scope
Ultrasonic_car:72: error: ‘MotorR’ was not declared in this scope
Ultrasonic_car.ino: In function ‘void TurnLeft()’:
Ultrasonic_car:76: error: ‘MotorL’ was not declared in this scope
Ultrasonic_car:77: error: ‘MotorR’ was not declared in this scope
Ultrasonic_car.ino: In function ‘void TurnRight()’:
Ultrasonic_car:81: error: ‘MotorL’ was not declared in this scope
Ultrasonic_car:82: error: ‘MotorR’ was not declared in this scope


#7

I think your folder structure might be wrong. Can you upload a screenshot of your libraries folder and a subfolder or two under it? Looks like your on windows? Remember that folder names for arduino are case sensitive. So if the library is Makeblock but you saved it as makeblock it won’t work.

In my case I’m running the latest arduino 1.6.4 and libraries from github removing mecompass.h and .cpp.

Let us know on the above.


#8

Thanks for your interest.


#9

Image seems broken. Did you post it somewhere or upload it here?


#10

The file structure in the folder is incorrect ( I also had this problem). GO directly into the folder named “Makerbot” and pull it from the zip file. Then uplaod that folder into the arduino software. Let me know if this does not work.


#11