[SOLVED] mBot Ranger moves backward all the time


#1

Hi everyone,

I have bought a used Ranger and once switched on, it moves backwards and cant be controlled. Firmware update has not helped and it does not respond to any move forward or backward instructions

Would you have a solution?

Thanks


#2

@baggersee You might need to dismantle it & rebuild it - unplugging the motors & swapping the two plugs into the opposite sockets might be an interesting test to try too - & how about trying a simple blocks routine like the one shown below:

image

Do you get lights and any motor movement between each light action?


#3

Thanks @CommandeR I did dismantle and rebuild. I did also swap the two plugs and it goes forward by default instead of backwards // I have done the blocks routine you described and I do get both lights but I dont get the motor movement in-between.


#4

@baggersee Have you tried uploading any sort of blocks code into your Auriga’s Eeprom? Doing this may be beneficial since it will clear out the memory and then a new installation of factory Firmware back into the Eeprom after that might just work? If the motors are rotating backwards, then they aren’t dead.


#5

@CommandeR I did the previous blocks routine in live mode. When I try to upload blocks code I get the following error message (red part starting at “Command failed”…). I had updated firmware earlier but it did not change anything. Sorry, I am a beginner!

0%
start processing code…

processing code by middleware of arduino

avr-toolchain/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I"/Applications/mBlock.app/Contents/Resources/ml/v1/external/arduino/avr-library/variants/mega" -I"avr-library/cores/arduino" -I"arduino-libraries/makeblock/src" -I"arduino-libraries/makeblock/src/utility/avr" -I"avr-library/libraries/Wire/src/utility" -I"avr-library/libraries/Wire/src/" -I"avr-library/libraries/EEPROM/src/" -I"avr-library/libraries/SPI/src/" -I"avr-library/libraries/SoftwareSerial/src/" -I"arduino-libraries/arduino/WiFi/src/" -I"arduino-libraries/arduino/SD/src/" -I"arduino-libraries/arduino/Bridge/src/" -I"arduino-libraries/arduino/Temboo/src/" -I"arduino-libraries/arduino/Servo/src/" -I"arduino-libraries/arduino/Ethernet/src/" -I"arduino-libraries/arduino/TFT/src/" -I"arduino-libraries/arduino/SpacebrewYun/src/" -I"arduino-libraries/arduino/LiquidCrystal/src/" -I"arduino-libraries/arduino/GSM/src/" -I"arduino-libraries/arduino/Adafruit_Circuit_Playground/" -I"arduino-libraries/arduino/Adafruit_Circuit_Playground/utility/" -I"arduino-libraries/arduino/Esplora/src/" -I"arduino-libraries/arduino/Firmata/" -I"arduino-libraries/arduino/Firmata/utility/" -I"arduino-libraries/arduino/Keyboard/src/" -I"arduino-libraries/arduino/Mouse/src/" -I"arduino-libraries/arduino/Robot_Control/src/" -I"arduino-libraries/arduino/Robot_Motor/src/" -I"arduino-libraries/arduino/RobotIRremote/src/" -I"arduino-libraries/arduino/Stepper/src/" “/Users/mariowilhelm/mblock-avr/temp/build/src/MeEncoderMotorDriverV2.cpp” -o “/Users/mariowilhelm/mblock-avr/temp/build/src/MeEncoderMotorDriverV2.o”

avr-toolchain/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I"/Applications/mBlock.app/Contents/Resources/ml/v1/external/arduino/avr-library/variants/mega" -I"avr-library/cores/arduino" -I"arduino-libraries/makeblock/src" -I"arduino-libraries/makeblock/src/utility/avr" -I"avr-library/libraries/Wire/src/utility" -I"avr-library/libraries/Wire/src/" -I"avr-library/libraries/EEPROM/src/" -I"avr-library/libraries/SPI/src/" -I"avr-library/libraries/SoftwareSerial/src/" -I"arduino-libraries/arduino/WiFi/src/" -I"arduino-libraries/arduino/SD/src/" -I"arduino-libraries/arduino/Bridge/src/" -I"arduino-libraries/arduino/Temboo/src/" -I"arduino-libraries/arduino/Servo/src/" -I"arduino-libraries/arduino/Ethernet/src/" -I"arduino-libraries/arduino/TFT/src/" -I"arduino-libraries/arduino/SpacebrewYun/src/" -I"arduino-libraries/arduino/LiquidCrystal/src/" -I"arduino-libraries/arduino/GSM/src/" -I"arduino-libraries/arduino/Adafruit_Circuit_Playground/" -I"arduino-libraries/arduino/Adafruit_Circuit_Playground/utility/" -I"arduino-libraries/arduino/Esplora/src/" -I"arduino-libraries/arduino/Firmata/" -I"arduino-libraries/arduino/Firmata/utility/" -I"arduino-libraries/arduino/Keyboard/src/" -I"arduino-libraries/arduino/Mouse/src/" -I"arduino-libraries/arduino/Robot_Control/src/" -I"arduino-libraries/arduino/Robot_Motor/src/" -I"arduino-libraries/arduino/RobotIRremote/src/" -I"arduino-libraries/arduino/Stepper/src/" “/Users/mariowilhelm/mblock-avr/temp/build/code.cpp” -o “/Users/mariowilhelm/mblock-avr/temp/build/code.o”

Command failed: avr-toolchain/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I"/Applications/mBlock.app/Contents/Resources/ml/v1/external/arduino/avr-library/variants/mega" -I"avr-library/cores/arduino" -I"arduino-libraries/makeblock/src" -I"arduino-libraries/makeblock/src/utility/avr" -I"avr-library/libraries/Wire/src/utility" -I"avr-library/libraries/Wire/src/" -I"avr-library/libraries/EEPROM/src/" -I"avr-library/libraries/SPI/src/" -I"avr-library/libraries/SoftwareSerial/src/" -I"arduino-libraries/arduino/WiFi/src/" -I"arduino-libraries/arduino/SD/src/" -I"arduino-libraries/arduino/Bridge/src/" -I"arduino-libraries/arduino/Temboo/src/" -I"arduino-libraries/arduino/Servo/src/" -I"arduino-libraries/arduino/Ethernet/src/" -I"arduino-libraries/arduino/TFT/src/" -I"arduino-libraries/arduino/SpacebrewYun/src/" -I"arduino-libraries/arduino/LiquidCrystal/src/" -I"arduino-libraries/arduino/GSM/src/" -I"arduino-libraries/arduino/Adafruit_Circuit_Playground/" -I"arduino-libraries/arduino/Adafruit_Circuit_Playground/utility/" -I"arduino-libraries/arduino/Esplora/src/" -I"arduino-libraries/arduino/Firmata/" -I"arduino-libraries/arduino/Firmata/utility/" -I"arduino-libraries/arduino/Keyboard/src/" -I"arduino-libraries/arduino/Mouse/src/" -I"arduino-libraries/arduino/Robot_Control/src/" -I"arduino-libraries/arduino/Robot_Motor/src/" -I"arduino-libraries/arduino/RobotIRremote/src/" -I"arduino-libraries/arduino/Stepper/src/" “/Users/mariowilhelm/mblock-avr/temp/build/code.cpp” -o “/Users/mariowilhelm/mblock-avr/temp/build/code.o” /Users/mariowilhelm/mblock-avr/temp/build/code.cpp: In function ‘void _delay(float)’: /Users/mariowilhelm/mblock-avr/temp/build/code.cpp:13:18: error: ‘millis’ was not declared in this scope long endTime = millis() + seconds * 1000; ^~~~~~

Failed to compile file code.cpp

arduino build failed.

arduino build failed.


#6

@CommandeR Found another threat clarifying that one has to use the “start up” block and not the “when green flag clicked” block to be able to upload. I was able to upload the simple code. Colors work, action blocks dont


#7

@baggersee Can you follow these steps and confirm that the issue persists?

  • Go to https://ide.mblock.cc/ and add the mBot Ranger device.

  • Switch to upload mode:
    image

  • Create this code:
    image

  • Connect your device and upload the code.

To connect your device, you may need to install mLink of switch to the direct connection mode, and if neither works, you can use mBlock PC, although the web version is preferred.

If the issue continues after those steps, let me know and we can try some more stuff.


#8

Thank you so much @Best_codes The code works very well!

Now, what I do to be able to use the MBlock Blockly App is that they upload the Firmware. As soon as I do that the Ranger keeps on moving by default again. The App seems to be able to communicate with the Ranger and does not show any error message, yet the “Action” instructions do not show any effect! --> is there an issue with how I use the app?


#9

@Best_codes: The Ranger does now work. I have uploaded Firmware from the desktop application and connected via bluetooth through the Makeblock app, played around a bit with music etc. Then I did unplug the USB cable and continued playing around with the app. Now the Ranger does not move by default anymore. The Blockly App does now also work. Not sure what I have done but thought I share here as it might be helpful for other! Thanks for helping me to solve the issue.


#10

@baggersee It sounds like either you are uploading a template code, not firmware, from the app, of there is a bug in the app firmware.

The mBlock Blockly App is not super supported right now, since mBlock plans to release a new version in September or sometime this year for iOS (not sure about Android).

I don’t think there is a problem with how you are using the app, if you continue having issues, use mBlock PC or online instead.

Awesome! It sounds like there was an issue with the firmware on the app. Just don’t set the firmware using the app and it sounds like you’ll be fine. :slight_smile:
Glad everything is working now, let me know if you need anything else.


#11

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.