Diode Laser Board Replacement

Hi Guys I'm trying to replace my Diode with a new board. I'm using my spare board that I got from my 3018 cnc pro.

I'm trying to disable the z limit switch but I got stuck on the upload and keep getting this error message. do I have to change the board "Arduino Uno" ? I also don't know the exact model of the board.

just a beginner here and just watching YouTube


tutorial.

FQBN: arduino:avr:uno
Using board 'uno' from platform in folder: C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6

Detecting libraries used...
C:\Users\user\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\sketch\grblUpload.ino.cpp -o nul
Alternatives for grbl.h: [grbl]
ResolveLibrary(grbl.h)
-> candidates: [grbl]
C:\Users\user\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -IC:\Users\user\Documents\Arduino\libraries\grbl C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\sketch\grblUpload.ino.cpp -o nul
Using cached library dependencies for file: C:\Users\user\Documents\Arduino\libraries\grbl\coolant_control.c
Using cached library dependencies for file: C:\Users\user\Documents\Arduino\libraries\grbl\eeprom.c
Using cached library dependencies for file: C:\Users\user\Documents\Arduino\libraries\grbl\gcode.c
Using cached library dependencies for file: C:\Users\user\Documents\Arduino\libraries\grbl\jog.c
Using cached library dependencies for file: C:\Users\user\Documents\Arduino\libraries\grbl\limits.c
Using cached library dependencies for file: C:\Users\user\Documents\Arduino\libraries\grbl\main.c
Using cached library dependencies for file: C:\Users\user\Documents\Arduino\libraries\grbl\motion_control.c
Using cached library dependencies for file: C:\Users\user\Documents\Arduino\libraries\grbl\nuts_bolts.c
Using cached library dependencies for file: C:\Users\user\Documents\Arduino\libraries\grbl\planner.c
Using cached library dependencies for file: C:\Users\user\Documents\Arduino\libraries\grbl\print.c
Using cached library dependencies for file: C:\Users\user\Documents\Arduino\libraries\grbl\probe.c
Using cached library dependencies for file: C:\Users\user\Documents\Arduino\libraries\grbl\protocol.c
Using cached library dependencies for file: C:\Users\user\Documents\Arduino\libraries\grbl\report.c
Using cached library dependencies for file: C:\Users\user\Documents\Arduino\libraries\grbl\serial.c
Using cached library dependencies for file: C:\Users\user\Documents\Arduino\libraries\grbl\settings.c
Using cached library dependencies for file: C:\Users\user\Documents\Arduino\libraries\grbl\spindle_control.c
Using cached library dependencies for file: C:\Users\user\Documents\Arduino\libraries\grbl\stepper.c
Using cached library dependencies for file: C:\Users\user\Documents\Arduino\libraries\grbl\system.c
Generating function prototypes...
C:\Users\user\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -IC:\Users\user\Documents\Arduino\libraries\grbl C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\sketch\grblUpload.ino.cpp -o C:\Users\user\AppData\Local\Temp\2047231439\sketch_merged.cpp
C:\Users\user\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives C:\Users\user\AppData\Local\Temp\2047231439\sketch_merged.cpp
Compiling sketch...
"C:\Users\user\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino" "-IC:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard" "-IC:\Users\user\Documents\Arduino\libraries\grbl" "C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\sketch\grblUpload.ino.cpp" -o "C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\sketch\grblUpload.ino.cpp.o"
Compiling libraries...
Compiling library "grbl"
Using previously compiled file: C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\eeprom.c.o
Using previously compiled file: C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\limits.c.o
Using previously compiled file: C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\gcode.c.o
Using previously compiled file: C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\jog.c.o
Using previously compiled file: C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\main.c.o
Using previously compiled file: C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\motion_control.c.o
Using previously compiled file: C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\coolant_control.c.o
Using previously compiled file: C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\nuts_bolts.c.o
Using previously compiled file: C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\probe.c.o
Using previously compiled file: C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\print.c.o
Using previously compiled file: C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\protocol.c.o
Using previously compiled file: C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\planner.c.o
Using previously compiled file: C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\report.c.o
Using previously compiled file: C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\serial.c.o
Using previously compiled file: C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\settings.c.o
Using previously compiled file: C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\spindle_control.c.o
Using previously compiled file: C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\stepper.c.o
Using previously compiled file: C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\system.c.o
Compiling core...
Using precompiled core: C:\Users\user\AppData\Local\Temp\arduino\cores\arduino_avr_uno_dd72fbfee32d61057c6f123c402e8c36\core.a
Linking everything together...
"C:\Users\user\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076/grblUpload.ino.elf" "C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\sketch\grblUpload.ino.cpp.o" "C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\coolant_control.c.o" "C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\eeprom.c.o" "C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\gcode.c.o" "C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\jog.c.o" "C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\limits.c.o" "C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\main.c.o" "C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\motion_control.c.o" "C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\nuts_bolts.c.o" "C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\planner.c.o" "C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\print.c.o" "C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\probe.c.o" "C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\protocol.c.o" "C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\report.c.o" "C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\serial.c.o" "C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\settings.c.o" "C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\spindle_control.c.o" "C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\stepper.c.o" "C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076\libraries\grbl\system.c.o" "C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076/..\..\cores\arduino_avr_uno_dd72fbfee32d61057c6f123c402e8c36\core.a" "-LC:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076" -lm
"C:\Users\user\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076/grblUpload.ino.elf" "C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076/grblUpload.ino.eep"
"C:\Users\user\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076/grblUpload.ino.elf" "C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076/grblUpload.ino.hex"

Using library grbl in folder: C:\Users\user\Documents\Arduino\libraries\grbl (legacy)
"C:\Users\user\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\Users\user\AppData\Local\Temp\arduino\sketches\B3CAD0E741F08092F1BFEC729E5E9076/grblUpload.ino.elf"
Sketch uses 29762 bytes (92%) of program storage space. Maximum is 32256 bytes.
Global variables use 1633 bytes (79%) of dynamic memory, leaving 415 bytes for local variables. Maximum is 2048 bytes.
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x0d
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x0a
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x47
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x72
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x62
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x6c
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x31
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x2e
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x31
Failed uploading: uploading error: exit status 1

No. I think that you should disconnect everything from the Uno Rx/Tx pins before flashing the code.

I disconnected everything including the power supply but I'm still getting the same error.

Then change the Uno board.

I selected the board as "Arduino Uno" same as the tutorial
I followed. I'm not sure if it's applicable on the board that I am using.

Of course you have to compile for the board you are using. You are the only one who knows which board you have.

thanks got the board model from the manufacturer.

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