Arduino Uno says I don't have enough memory

Hi everyone!!
First time asking for help so please bear with me
Wonder if anyone can help me?
I have an "Arduino Uno" I bought a few years ago to have a go at a magazine project
"HOW TO BUILD A ROBOT" by Author Jonathan Parkyn
I have been working with it most of the day going through some of the projects in the magazine but things seem to be going pair shape the further I get into the mag the more problems I encounter.
My main problem is it seems to have stop working, saying I don't have enough space and it doesn't matter what size a programme I use. It says the same basically except the percentage of space being used.
I will enclose the full error data report it keeps coming up with and hopefully someone can help me get on track to make a robot...
I will keep looking for a solution however if someone can help much appreciated...

Cheers Sean B

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries D:\documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=2341_0043 -ide-version=10819 -build-path C:\Users\SEANBR~1\AppData\Local\Temp\arduino_build_236132 -warnings=none -build-cache C:\Users\SEANBR~1\AppData\Local\Temp\arduino_cache_703511 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Program Files (x86)\Arduino\examples\02.Digital\toneMelody\toneMelody.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries D:\documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=2341_0043 -ide-version=10819 -build-path C:\Users\SEANBR~1\AppData\Local\Temp\arduino_build_236132 -warnings=none -build-cache C:\Users\SEANBR~1\AppData\Local\Temp\arduino_cache_703511 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Program Files (x86)\Arduino\examples\02.Digital\toneMelody\toneMelody.ino
Using board 'uno' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Using core 'arduino' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Detecting libraries used...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/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=10819 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\SEANBR~1\AppData\Local\Temp\arduino_build_236132\sketch\toneMelody.ino.cpp" -o nul
Generating function prototypes...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/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=10819 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\SEANBR~1\AppData\Local\Temp\arduino_build_236132\sketch\toneMelody.ino.cpp" -o "C:\Users\SEANBR~1\AppData\Local\Temp\arduino_build_236132\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\SEANBR~1\AppData\Local\Temp\arduino_build_236132\preproc\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/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=10819 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\SEANBR~1\AppData\Local\Temp\arduino_build_236132\sketch\toneMelody.ino.cpp" -o "C:\Users\SEANBR~1\AppData\Local\Temp\arduino_build_236132\sketch\toneMelody.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\SEANBR~1\AppData\Local\Temp\arduino_cache_703511\core\core_arduino_avr_uno_0c812875ac70eb4a9b385d8fb077f54c.a
Linking everything together...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\Users\SEANBR~1\AppData\Local\Temp\arduino_build_236132/toneMelody.ino.elf" "C:\Users\SEANBR~1\AppData\Local\Temp\arduino_build_236132\sketch\toneMelody.ino.cpp.o" "C:\Users\SEANBR~1\AppData\Local\Temp\arduino_build_236132/..\arduino_cache_703511\core\core_arduino_avr_uno_0c812875ac70eb4a9b385d8fb077f54c.a" "-LC:\Users\SEANBR~1\AppData\Local\Temp\arduino_build_236132" -lm
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\Users\SEANBR~1\AppData\Local\Temp\arduino_build_236132/toneMelody.ino.elf" "C:\Users\SEANBR~1\AppData\Local\Temp\arduino_build_236132/toneMelody.ino.eep"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-objcopy" -O ihex -R .eeprom "C:\Users\SEANBR~1\AppData\Local\Temp\arduino_build_236132/toneMelody.ino.elf" "C:\Users\SEANBR~1\AppData\Local\Temp\arduino_build_236132/toneMelody.ino.hex"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-size" -A "C:\Users\SEANBR~1\AppData\Local\Temp\arduino_build_236132/toneMelody.ino.elf"
Sketch uses 3204 bytes (9%) of program storage space. Maximum is 32256 bytes.
Global variables use 60 bytes (2%) of dynamic memory, leaving 1988 bytes for local variables. Maximum is 2048 bytes.
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM3 -b115200 -D -Uflash:w:C:\Users\SEANBR~1\AppData\Local\Temp\arduino_build_236132/toneMelody.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:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

     Using Port                    : COM3
     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\SEANBR~1\AppData\Local\Temp\arduino_build_236132/toneMelody.ino.hex"
avrdude: writing flash (3204 bytes):

Writing | ################################################## | 100% 0.53s

avrdude: 3204 bytes of flash written
avrdude: verifying flash memory against C:\Users\SEANBR~1\AppData\Local\Temp\arduino_build_236132/toneMelody.ino.hex:
avrdude: load data flash data from input file C:\Users\SEANBR~1\AppData\Local\Temp\arduino_build_236132/toneMelody.ino.hex:
avrdude: input file C:\Users\SEANBR~1\AppData\Local\Temp\arduino_build_236132/toneMelody.ino.hex contains 3204 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.43s

avrdude: verifying ...
avrdude: 3204 bytes of flash verified

avrdude done. Thank you.

Invalid library found in C:\Program Files (x86)\Arduino\libraries\libraries: no headers files (.h) found in C:\Program Files (x86)\Arduino\libraries\libraries
Invalid library found in C:\Program Files (x86)\Arduino\libraries\sketches: no headers files (.h) found in C:\Program Files (x86)\Arduino\libraries\sketches

I can't see the problem you describe there.

This indicates you have plenty of memory remaining.

It looks like it compiled and uploaded just fine. The only warning it is giving is at the end where it complains about a 'library' and a 'sketches' folder inside your 'libraries' folder. Those should not be there.

C:\Program Files (x86)\Arduino\libraries\libraries\
C:\Program Files (x86)\Arduino\libraries\sketches\

Hi todd
thanks for the quick reply.. So why is it not uploading the programme?? It will not load even the basic programmes but it was fine earlier on but when I tried the sound sensor programme it went all awry... Any ideas how to fix it?? Remember I am only a beginner so I know it is probably me but any tips??

Cheers Sean B

Thanks BLh64

I'm only starting out with this so where should they be I saved arduino in my program files... Where do you recommend they should go please

Many thanks Sean B

please show error message where it says it failed to upload

The typical location on Windows is

C:\users\ <username>\Documents\Arduino\

and any libraries you install will go

C:\users\ <username>\Documents\Arduino\libraries\

avrdude: verifying ...
avrdude: 3204 bytes of flash verified

avrdude done. Thank you.

It says it uploaded and verified your sketch. If the sketch is not doing what you expected then there may be a problem in the sketch?

The "toneMelody" example sketch you show above does nothing but play music on Pin 8. Do you have a speaker connected to Pin 8 as described in the tutorial for that example?
https://www.arduino.cc/en/Tutorial/BuiltInExamples/toneMelody