RB-Nex-72: Program Update to Arduino Nexus Board hangs

[h5]Today at 09:37 am [highlight=#f5f5f5]« [/highlight]Last Edit: Today at 09:37 am by leviathan1234»[/h5]Hello,

I have purchased the RB-Nex-72 robot and have problems uploading basic programs to the Arduino 328 Controller board. Compiling works, but the uploading process does not end…I have tested changing the Board selection in the Configuration in the settings, as well as processor, but nothing changed. Which board should be selected in the configuration?

I have tested it with the last arduino environment as well with the 1.6.9 release.

Does anyone have a similar problem?

The console output is:

Sketch uses 928 bytes (3%) of program storage space. Maximum is 30,720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2,039 bytes for local variables. Maximum is 2,048 bytes.
C:\Users\Lev\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9/bin/avrdude -CC:\Users\Lev\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9/etc/avrdude.conf -v -patmega328p -carduino -PCOM3 -b57600 -D -Uflash:w:C:\Users\Lev\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp/Blink.ino.hex:i

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
Copyright © 2000-2005 Brian Dean, bdmicro.com/
Copyright © 2007-2014 Joerg Wunsch

System wide configuration file is “C:\Users\Lev\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9/etc/avrdude.conf”

Using Port : COM3
Using Programmer : arduino
Overriding Baud Rate : 57600

Thanks in advance!

Hi,

Typically, upload problems with RB-Nex hardware is usually related to having to remove a shield or other component from the controller before a code upload as they can interfere with the programming process.

Also, please mention in your reply what board settings you’ve used for the microcontroller.

If you follow the recommendation above and it the upload still does not work, please go your Arduino IDE settings (File > Preferences) and check the box for verbose output: “Show verbose output during: ] compilation [X] upload”.

Then, try and upload again. You will get a much longer output in the console. Please copy it to a file (using Notepad or a similar raw text editor) and attach this to your reply. You can attach files in Full editor mode (see attached image for details).

Sincerely,

Hello Sebastien,

how can the component or shield be removed?

I have used the configuration “Arduino Duemilianove or Diecimila” with the Controller ATmega328p.
The output presented in my first message has been already generated after activating the verbose output.

Uploading of the bootloader does not work as well, it produces the following ouput.
BootloadFails.txt (562 Bytes)
UploadFails.txt (1016 Bytes)

Hi,

By simply pulling it off. The microcontroller board and shield are shipped attached to the top of the robot platform. With the robot powered off, grab the shield from both sides and gently pull straight upwards slowly. It should disconnect from the microcontroller board. You can then just leave it off to the side (do not disconnect any other connections), making sure it does not contact/short any other parts.

You should not have to upload a bootloader, since it is already in place on the microcontroller board.

Your attachments and your first message do not seem to include upload output information, actually. Please see attached below two example verbose upload outputs, one that works and one that failed with an Arduino Mega 260.

Sincerely,
test.ino verbose upload (fails).txt (2.58 KB)
test.ino verbose upload (works).txt (3.94 KB)

Hi,

thanks the upload has worked after removing the shield. Another problem I am confronted with now is decrypting the output from the serial monitor.
E.g. the output of the execution of Sonar test program is attached bellow. Changing the baudrate changes output but not make it more understandable.

Do I need some special program?

Hi,

Very good! We are glad you could proceed forward.

The example code and libraries provided for this kit seem to have many different possible baud rates. The ones we found with a quick search are 9600, 19200 and 57600. Therefore, we recommend checking those out.

That being said, the manual specifies the baud rate being set to 19200 (8/N/1) on page 31-33 (also found in the same package as the example code and libraries). The output you currently see in the serial monitor seems to match the type of commands the sonar uses. Here is an example from the manual:

As you may notice from this example, you seem to be getting the hexadecimal values of the communication returned by the sonars when measuring the distance.
You’ve obtained “55 AA 11 02 02 00 32 46”, which is most likely “0x55 0xAA 0x11 0x02 0x02 0x00 0x32 0x46”.
The format is as follows:

This would indicate that the distance at sensor 0x11 (the one near the power switch) is 0x0032 or in decimal 50 cm.
Please see the manual for details on the protocol used with the sonars. You can also check the libraries concerning this.

Sincerely,

Hey,

thanks for detailed information. The uppers ASCII signs obove the hex values can be ignored?

I have now uploaded the RB003_Omni3WD_PID_3SONAR Program and charged the Robot, but the Robot does not turn on (no led blinking) without the usb power supply.
Pushing the reset button and the red power Switch changes nothing.

Does the red power switch should light red if the Robot is turned on?

Thank you!

Hi,

Yes they can. They are most likely just extra debug info that may not be in ASCII/formatted in a way that is visible/readable in Arduino’s Serial Monitor.

It most likely should. It is possible the battery is shipped not connected for safety. Please make sure it is connected to the circuit (a large plastic connector, most likely white). Have a look and let us know!

Sincerely,

Thanks for the help, it worked!
It would be helpful to put this iInformation into the manual.

Lev

Hi Lev,

We are glad this worked out for you.

We’ll pass along your comment to the manufacturer! Hopefully they’ll update their documentation accordingly in the near future.

Sincerely,