Howful noisy beep while uploading default factory code with arduino ide


#1

hello,

After changing the physical orientation of the X axis motor and observing that there no GCODE commande to tell the firmware the orientation of the engine, i decided i would change the firmware code.

But before even changing the source code, i merely wanted to recompile the default factory code,push it to the board and observe whether or not i had changed someting.

I followed procedure explained in XY-Plotter-2.0/XY Plotter V2.0 Software Manual V1.1.pdf (found in git repository below)

context : win7 64 + my makeblock board is an onion (written on the back) =>

steps

  1. git clone https://github.com/Makeblock-official/XY-Plotter-2.0.git
  2. open software\GCodeParser\GCodeParser.ino in Arduino IDE
  3. select Arduino Uno board (as indicated in the orion product description) + select the only port option available (COM12 for me)
  4. click compile. everything is ok.
  5. click upload… observe that everything is ok in the arduino output window
    6 wait about 2 or 3 seconds
  6. an ugly loud beep occurs clearly indicating a risk or a damage (i actually did not even know that there was a buzzer down there until now)
  7. Now use the ArduinoTool to push the default factory firmware :
    $ sha1sum.exe ~/downloads/GCodeParser_Makeblock_Orion(XY-Plotter-V2.02)/GCodeParser_Makeblock\ Orion/GCodeParser/*.hex
    9f06ea435cd38c6cffb2f12406c10bf64704c946 */home/g160950/downloads/GCodeParser_Makeblock_Orion(XY-Plotter-V2.02)/GCodeParser_Makeblock Orion/GCodeParser/GCodeParser.cppú¿Orionú®.hex

=> the ugly noise vanishes and the table operates as normal again (except that my reverted engine make the X go in the opporsite direction…)


#2

also,

i tried suggestion from

even tough i consider such a noise is clearly an alarm so shutting it should not be done.
anyway, in arduino monitor console, i see the “init” message and then nothing happens and board does respond at all to any further command
so i am guessing the machine is stuck at

void goto_machine_zero()
{
Serial.println(“init”);
move_to_max(X_MIN_PIN, X_STEP_PIN, X_DIR_PIN, 0);
move_to_max(Y_MIN_PIN, Y_STEP_PIN, Y_DIR_PIN, 0);
Serial.println(“ok”);
}

well i cannot modify the source so this whole thing may very well end up being useless… :expressionless:

anyone has a clue ? what i am missing ?


#3