Code is uploaded to Arduino Nano, but not giving output

Hello,
I am a newb and trying to get an Arduino Nano to work for a specific project running 3 servo motor boards. I am following the directions and code of someone who has made it before, but I am having trouble getting the Nano to respond. Specifically, I can compile the basic code, and send it to the Nano, but I am expecting it to print "Ready for command" in the serial monitor, but despite the fact that the code looks correct and it appears to connect and upload without issue, I am not getting the expected "Ready for command" output and I am not able to send input to the Nano. I have looked over the old forum posts and tried the suggestions including resets of the nano, changing ports, trying a different bootloader and reviewing the verbose feedback. I can't see where it is going wrong. I will offer the code and the verbose feedback below. Any thoughts on the issue is greatly appreciated.

Verbose feedback:
"FQBN: arduino:avr:nano
Using board 'nano' from platform in folder: C:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6

Detecting libraries used...
C:\Users\zeusm\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_NANO -DARDUINO_ARCH_AVR -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\C258AD9824F8B9EF821DB9FECA54FD08\sketch\Clockception_Calibrate_Positions.ino.cpp -o nul
Alternatives for Wire.h: [Wire@1.0]
ResolveLibrary(Wire.h)
-> candidates: [Wire@1.0]
C:\Users\zeusm\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_NANO -DARDUINO_ARCH_AVR -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\C258AD9824F8B9EF821DB9FECA54FD08\sketch\Clockception_Calibrate_Positions.ino.cpp -o nul
Alternatives for Adafruit_PWMServoDriver.h: [Adafruit PWM Servo Driver Library@3.0.2]
ResolveLibrary(Adafruit_PWMServoDriver.h)
-> candidates: [Adafruit PWM Servo Driver Library@3.0.2]
C:\Users\zeusm\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_NANO -DARDUINO_ARCH_AVR -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src -IC:\Users\zeusm\Documents\Arduino\libraries\Adafruit_PWM_Servo_Driver_Library C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\C258AD9824F8B9EF821DB9FECA54FD08\sketch\Clockception_Calibrate_Positions.ino.cpp -o nul
Alternatives for Adafruit_I2CDevice.h: [Adafruit BusIO@1.16.1]
ResolveLibrary(Adafruit_I2CDevice.h)
-> candidates: [Adafruit BusIO@1.16.1]
C:\Users\zeusm\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_NANO -DARDUINO_ARCH_AVR -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src -IC:\Users\zeusm\Documents\Arduino\libraries\Adafruit_PWM_Servo_Driver_Library -IC:\Users\zeusm\Documents\Arduino\libraries\Adafruit_BusIO C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\C258AD9824F8B9EF821DB9FECA54FD08\sketch\Clockception_Calibrate_Positions.ino.cpp -o nul
Using cached library dependencies for file: C:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src\Wire.cpp
Using cached library dependencies for file: C:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src\utility\twi.c
Using cached library dependencies for file: C:\Users\zeusm\Documents\Arduino\libraries\Adafruit_PWM_Servo_Driver_Library\Adafruit_PWMServoDriver.cpp
Using cached library dependencies for file: C:\Users\zeusm\Documents\Arduino\libraries\Adafruit_BusIO\Adafruit_BusIO_Register.cpp
Alternatives for SPI.h: [SPI@1.0]
ResolveLibrary(SPI.h)
-> candidates: [SPI@1.0]
Using cached library dependencies for file: C:\Users\zeusm\Documents\Arduino\libraries\Adafruit_BusIO\Adafruit_I2CDevice.cpp
Using cached library dependencies for file: C:\Users\zeusm\Documents\Arduino\libraries\Adafruit_BusIO\Adafruit_SPIDevice.cpp
Using cached library dependencies for file: C:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI\src\SPI.cpp
Generating function prototypes...
C:\Users\zeusm\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_NANO -DARDUINO_ARCH_AVR -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src -IC:\Users\zeusm\Documents\Arduino\libraries\Adafruit_PWM_Servo_Driver_Library -IC:\Users\zeusm\Documents\Arduino\libraries\Adafruit_BusIO -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI\src C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\C258AD9824F8B9EF821DB9FECA54FD08\sketch\Clockception_Calibrate_Positions.ino.cpp -o C:\Users\zeusm\AppData\Local\Temp\3495317107\sketch_merged.cpp
C:\Users\zeusm\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\zeusm\AppData\Local\Temp\3495317107\sketch_merged.cpp
Compiling sketch...
"C:\Users\zeusm\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_NANO -DARDUINO_ARCH_AVR "-IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino" "-IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs" "-IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src" "-IC:\Users\zeusm\Documents\Arduino\libraries\Adafruit_PWM_Servo_Driver_Library" "-IC:\Users\zeusm\Documents\Arduino\libraries\Adafruit_BusIO" "-IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI\src" "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\C258AD9824F8B9EF821DB9FECA54FD08\sketch\Clockception_Calibrate_Positions.ino.cpp" -o "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\C258AD9824F8B9EF821DB9FECA54FD08\sketch\Clockception_Calibrate_Positions.ino.cpp.o"
Compiling libraries...
Compiling library "Wire"
Using previously compiled file: C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\C258AD9824F8B9EF821DB9FECA54FD08\libraries\Wire\utility\twi.c.o
Using previously compiled file: C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\C258AD9824F8B9EF821DB9FECA54FD08\libraries\Wire\Wire.cpp.o
Compiling library "Adafruit PWM Servo Driver Library"
Using previously compiled file: C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\C258AD9824F8B9EF821DB9FECA54FD08\libraries\Adafruit_PWM_Servo_Driver_Library\Adafruit_PWMServoDriver.cpp.o
Compiling library "Adafruit BusIO"
Using previously compiled file: C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\C258AD9824F8B9EF821DB9FECA54FD08\libraries\Adafruit_BusIO\Adafruit_BusIO_Register.cpp.o
Using previously compiled file: C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\C258AD9824F8B9EF821DB9FECA54FD08\libraries\Adafruit_BusIO\Adafruit_I2CDevice.cpp.o
Using previously compiled file: C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\C258AD9824F8B9EF821DB9FECA54FD08\libraries\Adafruit_BusIO\Adafruit_SPIDevice.cpp.o
Compiling library "SPI"
Using previously compiled file: C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\C258AD9824F8B9EF821DB9FECA54FD08\libraries\SPI\SPI.cpp.o
Compiling core...
Using precompiled core: C:\Users\zeusm\AppData\Local\Temp\arduino\cores\arduino_avr_nano_cpu_atmega328_122bf76278d7b93544f9ec540b89cf68\core.a
Linking everything together...
"C:\Users\zeusm\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\zeusm\AppData\Local\Temp\arduino\sketches\C258AD9824F8B9EF821DB9FECA54FD08/Clockception_Calibrate_Positions.ino.elf" "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\C258AD9824F8B9EF821DB9FECA54FD08\sketch\Clockception_Calibrate_Positions.ino.cpp.o" "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\C258AD9824F8B9EF821DB9FECA54FD08\libraries\Wire\Wire.cpp.o" "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\C258AD9824F8B9EF821DB9FECA54FD08\libraries\Wire\utility\twi.c.o" "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\C258AD9824F8B9EF821DB9FECA54FD08\libraries\Adafruit_PWM_Servo_Driver_Library\Adafruit_PWMServoDriver.cpp.o" "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\C258AD9824F8B9EF821DB9FECA54FD08\libraries\Adafruit_BusIO\Adafruit_BusIO_Register.cpp.o" "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\C258AD9824F8B9EF821DB9FECA54FD08\libraries\Adafruit_BusIO\Adafruit_I2CDevice.cpp.o" "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\C258AD9824F8B9EF821DB9FECA54FD08\libraries\Adafruit_BusIO\Adafruit_SPIDevice.cpp.o" "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\C258AD9824F8B9EF821DB9FECA54FD08\libraries\SPI\SPI.cpp.o" "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\C258AD9824F8B9EF821DB9FECA54FD08/..\..\cores\arduino_avr_nano_cpu_atmega328_122bf76278d7b93544f9ec540b89cf68\core.a" "-LC:\Users\zeusm\AppData\Local\Temp\arduino\sketches\C258AD9824F8B9EF821DB9FECA54FD08" -lm
"C:\Users\zeusm\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\zeusm\AppData\Local\Temp\arduino\sketches\C258AD9824F8B9EF821DB9FECA54FD08/Clockception_Calibrate_Positions.ino.elf" "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\C258AD9824F8B9EF821DB9FECA54FD08/Clockception_Calibrate_Positions.ino.eep"
"C:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\C258AD9824F8B9EF821DB9FECA54FD08/Clockception_Calibrate_Positions.ino.elf" "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\C258AD9824F8B9EF821DB9FECA54FD08/Clockception_Calibrate_Positions.ino.hex"

Using library Wire at version 1.0 in folder: C:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire
Using library Adafruit PWM Servo Driver Library at version 3.0.2 in folder: C:\Users\zeusm\Documents\Arduino\libraries\Adafruit_PWM_Servo_Driver_Library
Using library Adafruit BusIO at version 1.16.1 in folder: C:\Users\zeusm\Documents\Arduino\libraries\Adafruit_BusIO
Using library SPI at version 1.0 in folder: C:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI
"C:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\C258AD9824F8B9EF821DB9FECA54FD08/Clockception_Calibrate_Positions.ino.elf"
Sketch uses 7952 bytes (25%) of program storage space. Maximum is 30720 bytes.
Global variables use 483 bytes (23%) of dynamic memory, leaving 1565 bytes for local variables. Maximum is 2048 bytes.
"C:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-PCOM5" -b115200 -D "-Uflash:w:C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\C258AD9824F8B9EF821DB9FECA54FD08/Clockception_Calibrate_Positions.ino.hex:i"

avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

     System wide configuration file is "C:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

     Using Port                    : COM5
     Using Programmer              : arduino
     Overriding Baud Rate          : 115200
     AVR Part                      : ATmega328P
     Chip Erase delay              : 9000 us
     PAGEL                         : PD7
     BS2                           : PC2
     RESET disposition             : dedicated
     RETRY pulse                   : SCK
     serial program mode           : yes
     parallel program mode         : yes
     Timeout                       : 200
     StabDelay                     : 100
     CmdexeDelay                   : 25
     SyncLoops                     : 32
     ByteDelay                     : 0
     PollIndex                     : 3
     PollValue                     : 0x53
     Memory Detail                 :

                              Block Poll               Page                       Polled
       Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
       ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
       eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
       flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
       lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
       hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
       efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
       lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
       calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
       signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

     Programmer Type : Arduino
     Description     : Arduino
     Hardware Version: 3
     Firmware Version: 4.4
     Vtarget         : 0.3 V
     Varef           : 0.3 V
     Oscillator      : 28.800 kHz
     SCK period      : 3.3 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\C258AD9824F8B9EF821DB9FECA54FD08/Clockception_Calibrate_Positions.ino.hex"
avrdude: writing flash (7952 bytes):

Writing | ################################################## | 100% 3.01s

avrdude: 7952 bytes of flash written

avrdude done. Thank you.


Code run:

#include <Wire.h>
#include <Adafruit_PWMServoDriver.h>

Adafruit_PWMServoDriver board1 = Adafruit_PWMServoDriver(0x40);
Adafruit_PWMServoDriver board2 = Adafruit_PWMServoDriver(0x41);
Adafruit_PWMServoDriver board3 = Adafruit_PWMServoDriver(0x42);

#define SERVOMIN  544 // This is the 'minimum' pulse length count (out of 4096)
#define SERVOMAX  2400 // This is the 'maximum' pulse length count (out of 4096)
#define SERVO_FREQ 50 // Analog servos run at ~50 Hz updates

int number; // number command 

///////////////////////////////////////////////////////////////////////////////////

void setup() {  // put your setup code here, to run once:

  Serial.begin(9600); // initialize Serial connection

  board1.begin();  // Initialize servo control boards 
  board2.begin();
  board3.begin();
  board1.setOscillatorFrequency(27000000);
  board2.setOscillatorFrequency(27000000);
  board3.setOscillatorFrequency(27000000);
  board1.setPWMFreq(SERVO_FREQ);  // Analog servos run at ~50 Hz updates
  board2.setPWMFreq(SERVO_FREQ); 
  board3.setPWMFreq(SERVO_FREQ); 

  Serial.println("Ready for command");

  yield();
}

///////////////////////////////////////////////////////////////////////////////////

void loop() {  // put your main code here, to run repeatedly:

  while(Serial.available() > 0){ // see if a command has been sent
    number = Serial.parseInt(); // turn command into integer
    Serial.print(number);
    Serial.println(" sent");
    angleToPulse(number);
  }
  delay(100);
}

///////////////////////////////////////////////////////////////////////////////////

void angleToPulse(int ang){
   int pulse1 = map(ang, 0, 180, SERVOMIN, SERVOMAX); // map angle of 0 to 180 to Servo min and Servo max 
   int pulse2 = int(float(pulse1) / 1000000 * SERVO_FREQ * 4096);
   Serial.print("Angle: "); Serial.print(ang);
   Serial.print(" pulse: "); Serial.println(pulse2);
   board1.setPWM(1, 0, pulse2);
   delay(100);
}

///////////////////////////////////////////////////////////////////////////////////

First scan through, no upload error, code looks okay(questionable, but nothing obvious),
But you say nothing appears on Serial Monitor. Is the SM baud rate set to 9600? If not, that'll do it.
To further explore, put a

Serial.println("About to init boards");
delay(1000);

Right after the Serial.begin. Then, even if boardx.begin() hangs, you should see that first message.

The IDE has two windows in the bottom portion. The "Output" window and the "Serial Monitor" window... to open the Serial Monitor, click the "spyglass" in the upper-right of the IDE.

1 Like

What are these boards, and how did you connect them? Please post a schematic how everything is wired.

You should never post in the Uncategorised section.
It says so in the description of the section. Therefore I have moved your post here.

You might want to look at this How to get the best out of this forum before you proceed any further.
We only know what you tell us, and without knowing what you have, we don't stand a chance.

I have tried a number of different bauds that I mirrored in the serial monitor, but I have settled on 9600 and it seems to be working to upload the code without issue. But, yes I have triple checked the baud rate.

I have added your code. I still get no output of either message in the serial monitor. Thank you for the thought, though. It does seem to be receiving code, but not communicating out properly.

I do have the serial monitor accessed and open. I can see it well and I have run code on other arduinos before and seen outputs in that serial monitor.

Thanks Grumpy_Mike. Stupid rookie error. I appreciate you moving it for me.

1 Like



There are more images to offer, but for the purposes of communicating what I am doing. I have a total of 48 servo motors wired across 3 control boards. They are daisy chained and identified separately in the chain 040 - 041 -042. The second image describes where each of the servos are connected to each board. The third shows the 040 board connected to the nano, which is also connected to a clock unit. I have double checked the wiring and everything looks right. I have powered the servos separately with their own power supply (5V, 2A).

I have run this with the nano disconnected and get the same result, so I am not sure it is feedback from the system its connected to causing the problem, but I am not confident about that.

I also wanted to thank everyone already for reaching out with ideas. I have been building this for about 6 months now and I have hit a wall with it. It has been very hard to find good help. I appreciate any and all ideas about how to troubleshoot or fix.

Do you see any result with this:

void setup() {
  Serial.begin(9600);
  Serial.println("Hellow, World!");
}
void loop() {}
1 Like

Odd.
I have received this error before, but not for a while. The "Hellow, world!" code couldnt be uploaded because it could not connect to the arduino nano. I reset the nano and have tried with a different cord, but its giving the same error. I am working on that to see if there is a different issue than I was having before, but I will update once I get the code loaded to the Nano.

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

Detecting libraries used...
C:\Users\zeusm\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_NANO -DARDUINO_ARCH_AVR -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\E442AD4C84583A72855FC37DA1223692\sketch\sketch_jul31a.ino.cpp -o nul
Generating function prototypes...
C:\Users\zeusm\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_NANO -DARDUINO_ARCH_AVR -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\E442AD4C84583A72855FC37DA1223692\sketch\sketch_jul31a.ino.cpp -o C:\Users\zeusm\AppData\Local\Temp\1329599500\sketch_merged.cpp
C:\Users\zeusm\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\zeusm\AppData\Local\Temp\1329599500\sketch_merged.cpp
Compiling sketch...
"C:\Users\zeusm\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_NANO -DARDUINO_ARCH_AVR "-IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino" "-IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs" "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\E442AD4C84583A72855FC37DA1223692\sketch\sketch_jul31a.ino.cpp" -o "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\E442AD4C84583A72855FC37DA1223692\sketch\sketch_jul31a.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\zeusm\AppData\Local\Temp\arduino\cores\arduino_avr_nano_cpu_atmega328_122bf76278d7b93544f9ec540b89cf68\core.a
Linking everything together...
"C:\Users\zeusm\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\zeusm\AppData\Local\Temp\arduino\sketches\E442AD4C84583A72855FC37DA1223692/sketch_jul31a.ino.elf" "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\E442AD4C84583A72855FC37DA1223692\sketch\sketch_jul31a.ino.cpp.o" "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\E442AD4C84583A72855FC37DA1223692/..\..\cores\arduino_avr_nano_cpu_atmega328_122bf76278d7b93544f9ec540b89cf68\core.a" "-LC:\Users\zeusm\AppData\Local\Temp\arduino\sketches\E442AD4C84583A72855FC37DA1223692" -lm
"C:\Users\zeusm\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\zeusm\AppData\Local\Temp\arduino\sketches\E442AD4C84583A72855FC37DA1223692/sketch_jul31a.ino.elf" "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\E442AD4C84583A72855FC37DA1223692/sketch_jul31a.ino.eep"
"C:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\E442AD4C84583A72855FC37DA1223692/sketch_jul31a.ino.elf" "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\E442AD4C84583A72855FC37DA1223692/sketch_jul31a.ino.hex"

"C:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\E442AD4C84583A72855FC37DA1223692/sketch_jul31a.ino.elf"
Sketch uses 1488 bytes (4%) of program storage space. Maximum is 30720 bytes.
Global variables use 202 bytes (9%) of dynamic memory, leaving 1846 bytes for local variables. Maximum is 2048 bytes.
"C:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-PCOM5" -b115200 -D "-Uflash:w:C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\E442AD4C84583A72855FC37DA1223692/sketch_jul31a.ino.hex:i"

avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

     System wide configuration file is "C:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

     Using Port                    : COM5
     Using Programmer              : arduino
     Overriding Baud Rate          : 115200

avrdude: ser_open(): can't open device "\.\COM5": Access is denied.

avrdude done. Thank you.

Failed uploading: uploading error: exit status 1

update: the serial monitor returns the "Hellow World" code in the serial monitor.

Very good. Re-upload your other code?

Code uploaded fine. Same feedback as the original post in verbose response. No output on Serial Monitor. I can still see the Hellow World printout from the previously run code, but no "Ready for Command"

I think something is fishy... upload "Hellow, World" again... does the error happen again?
If you still see "Hellow, World!"... the other program was not uploaded.

Ok. That's interesting. I will reset everything and start from scratch here. It did seem as though from the verbose feedback I initially posted that there was a connection and transfer of data, which happened again here. But Its a good point that the serial monitor should reset. I will start with a new sketch and see if I can re-set it.

update:
if you look at a previous post, camsysca asked me to add code "about to initial boards" as printout before my code. Now I am receiving an exit status 1 error, but the nano is returning a "about to initial boards" printout in the serial monitor. I am still not getting the "ready for command" prompt.

If it helps, here is the verbose feedback:

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

Detecting libraries used...
C:\Users\zeusm\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_NANO -DARDUINO_ARCH_AVR -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\434CE08E76A318B9E977B131C6149EFC\sketch\sketch_jul31b.ino.cpp -o nul
Alternatives for Wire.h: [Wire@1.0]
ResolveLibrary(Wire.h)
-> candidates: [Wire@1.0]
C:\Users\zeusm\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_NANO -DARDUINO_ARCH_AVR -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\434CE08E76A318B9E977B131C6149EFC\sketch\sketch_jul31b.ino.cpp -o nul
Alternatives for Adafruit_PWMServoDriver.h: [Adafruit PWM Servo Driver Library@3.0.2]
ResolveLibrary(Adafruit_PWMServoDriver.h)
-> candidates: [Adafruit PWM Servo Driver Library@3.0.2]
C:\Users\zeusm\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_NANO -DARDUINO_ARCH_AVR -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src -IC:\Users\zeusm\Documents\Arduino\libraries\Adafruit_PWM_Servo_Driver_Library C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\434CE08E76A318B9E977B131C6149EFC\sketch\sketch_jul31b.ino.cpp -o nul
Alternatives for Adafruit_I2CDevice.h: [Adafruit BusIO@1.16.1]
ResolveLibrary(Adafruit_I2CDevice.h)
-> candidates: [Adafruit BusIO@1.16.1]
C:\Users\zeusm\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_NANO -DARDUINO_ARCH_AVR -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src -IC:\Users\zeusm\Documents\Arduino\libraries\Adafruit_PWM_Servo_Driver_Library -IC:\Users\zeusm\Documents\Arduino\libraries\Adafruit_BusIO C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\434CE08E76A318B9E977B131C6149EFC\sketch\sketch_jul31b.ino.cpp -o nul
Using cached library dependencies for file: C:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src\Wire.cpp
Using cached library dependencies for file: C:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src\utility\twi.c
Using cached library dependencies for file: C:\Users\zeusm\Documents\Arduino\libraries\Adafruit_PWM_Servo_Driver_Library\Adafruit_PWMServoDriver.cpp
Using cached library dependencies for file: C:\Users\zeusm\Documents\Arduino\libraries\Adafruit_BusIO\Adafruit_BusIO_Register.cpp
Alternatives for SPI.h: [SPI@1.0]
ResolveLibrary(SPI.h)
-> candidates: [SPI@1.0]
Using cached library dependencies for file: C:\Users\zeusm\Documents\Arduino\libraries\Adafruit_BusIO\Adafruit_I2CDevice.cpp
Using cached library dependencies for file: C:\Users\zeusm\Documents\Arduino\libraries\Adafruit_BusIO\Adafruit_SPIDevice.cpp
Using cached library dependencies for file: C:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI\src\SPI.cpp
Generating function prototypes...
C:\Users\zeusm\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_NANO -DARDUINO_ARCH_AVR -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src -IC:\Users\zeusm\Documents\Arduino\libraries\Adafruit_PWM_Servo_Driver_Library -IC:\Users\zeusm\Documents\Arduino\libraries\Adafruit_BusIO -IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI\src C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\434CE08E76A318B9E977B131C6149EFC\sketch\sketch_jul31b.ino.cpp -o C:\Users\zeusm\AppData\Local\Temp\1932884355\sketch_merged.cpp
C:\Users\zeusm\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\zeusm\AppData\Local\Temp\1932884355\sketch_merged.cpp
Compiling sketch...
"C:\Users\zeusm\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_NANO -DARDUINO_ARCH_AVR "-IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino" "-IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs" "-IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire\src" "-IC:\Users\zeusm\Documents\Arduino\libraries\Adafruit_PWM_Servo_Driver_Library" "-IC:\Users\zeusm\Documents\Arduino\libraries\Adafruit_BusIO" "-IC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI\src" "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\434CE08E76A318B9E977B131C6149EFC\sketch\sketch_jul31b.ino.cpp" -o "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\434CE08E76A318B9E977B131C6149EFC\sketch\sketch_jul31b.ino.cpp.o"
Compiling libraries...
Compiling library "Wire"
Using previously compiled file: C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\434CE08E76A318B9E977B131C6149EFC\libraries\Wire\utility\twi.c.o
Using previously compiled file: C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\434CE08E76A318B9E977B131C6149EFC\libraries\Wire\Wire.cpp.o
Compiling library "Adafruit PWM Servo Driver Library"
Using previously compiled file: C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\434CE08E76A318B9E977B131C6149EFC\libraries\Adafruit_PWM_Servo_Driver_Library\Adafruit_PWMServoDriver.cpp.o
Compiling library "Adafruit BusIO"
Using previously compiled file: C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\434CE08E76A318B9E977B131C6149EFC\libraries\Adafruit_BusIO\Adafruit_BusIO_Register.cpp.o
Using previously compiled file: C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\434CE08E76A318B9E977B131C6149EFC\libraries\Adafruit_BusIO\Adafruit_I2CDevice.cpp.o
Using previously compiled file: C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\434CE08E76A318B9E977B131C6149EFC\libraries\Adafruit_BusIO\Adafruit_SPIDevice.cpp.o
Compiling library "SPI"
Using previously compiled file: C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\434CE08E76A318B9E977B131C6149EFC\libraries\SPI\SPI.cpp.o
Compiling core...
Using precompiled core: C:\Users\zeusm\AppData\Local\Temp\arduino\cores\arduino_avr_nano_cpu_atmega328_122bf76278d7b93544f9ec540b89cf68\core.a
Linking everything together...
"C:\Users\zeusm\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\zeusm\AppData\Local\Temp\arduino\sketches\434CE08E76A318B9E977B131C6149EFC/sketch_jul31b.ino.elf" "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\434CE08E76A318B9E977B131C6149EFC\sketch\sketch_jul31b.ino.cpp.o" "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\434CE08E76A318B9E977B131C6149EFC\libraries\Wire\Wire.cpp.o" "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\434CE08E76A318B9E977B131C6149EFC\libraries\Wire\utility\twi.c.o" "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\434CE08E76A318B9E977B131C6149EFC\libraries\Adafruit_PWM_Servo_Driver_Library\Adafruit_PWMServoDriver.cpp.o" "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\434CE08E76A318B9E977B131C6149EFC\libraries\Adafruit_BusIO\Adafruit_BusIO_Register.cpp.o" "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\434CE08E76A318B9E977B131C6149EFC\libraries\Adafruit_BusIO\Adafruit_I2CDevice.cpp.o" "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\434CE08E76A318B9E977B131C6149EFC\libraries\Adafruit_BusIO\Adafruit_SPIDevice.cpp.o" "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\434CE08E76A318B9E977B131C6149EFC\libraries\SPI\SPI.cpp.o" "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\434CE08E76A318B9E977B131C6149EFC/..\..\cores\arduino_avr_nano_cpu_atmega328_122bf76278d7b93544f9ec540b89cf68\core.a" "-LC:\Users\zeusm\AppData\Local\Temp\arduino\sketches\434CE08E76A318B9E977B131C6149EFC" -lm
"C:\Users\zeusm\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\zeusm\AppData\Local\Temp\arduino\sketches\434CE08E76A318B9E977B131C6149EFC/sketch_jul31b.ino.elf" "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\434CE08E76A318B9E977B131C6149EFC/sketch_jul31b.ino.eep"
"C:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\434CE08E76A318B9E977B131C6149EFC/sketch_jul31b.ino.elf" "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\434CE08E76A318B9E977B131C6149EFC/sketch_jul31b.ino.hex"

Using library Wire at version 1.0 in folder: C:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\Wire
Using library Adafruit PWM Servo Driver Library at version 3.0.2 in folder: C:\Users\zeusm\Documents\Arduino\libraries\Adafruit_PWM_Servo_Driver_Library
Using library Adafruit BusIO at version 1.16.1 in folder: C:\Users\zeusm\Documents\Arduino\libraries\Adafruit_BusIO
Using library SPI at version 1.0 in folder: C:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\libraries\SPI
"C:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\434CE08E76A318B9E977B131C6149EFC/sketch_jul31b.ino.elf"
Sketch uses 8006 bytes (26%) of program storage space. Maximum is 30720 bytes.
Global variables use 505 bytes (24%) of dynamic memory, leaving 1543 bytes for local variables. Maximum is 2048 bytes.
"C:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-PCOM5" -b115200 -D "-Uflash:w:C:\Users\zeusm\AppData\Local\Temp\arduino\sketches\434CE08E76A318B9E977B131C6149EFC/sketch_jul31b.ino.hex:i"

avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

     System wide configuration file is "C:\Users\zeusm\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

     Using Port                    : COM5
     Using Programmer              : arduino
     Overriding Baud Rate          : 115200

avrdude: ser_open(): can't open device "\.\COM5": Access is denied.

avrdude done. Thank you.

Failed uploading: uploading error: exit status 1