Problem uploading a program into my arduino.

Hello everyone!

First of all, I have to say that I’m Spanish so there may be some grammatical errors or something like that, so sorry. However, I’ll try to write in the best way I can, and I accept any correction :smiley: .

I’m writing this post because a few months ago I saw a YouTube video in which a man showed how to build an “ambilight” using some led strips and an Arduino Nano. Even though the process is explained in Spanish I’ll give you a link to the video below, because, maybe, it can help solving my problem.

So now let me explain you the problem. After buying everything and attaching the led strips to my screen I tried to install the program which I need to do the “Ambilight” into the Arduino, but it fails.
This is the program I try to install.

#include <bitswap.h>
#include <chipsets.h>
#include <color.h>
#include <colorpalettes.h>
#include <colorutils.h>
#include <controller.h>
#include <cpp_compat.h>
#include <dmx.h>
#include <FastLED.h>
#include <fastled_config.h>
#include <fastled_delay.h>
#include <fastled_progmem.h>
#include <fastpin.h>
#include <fastspi.h>
#include <fastspi_bitbang.h>
#include <fastspi_dma.h>
#include <fastspi_nop.h>
#include <fastspi_ref.h>
#include <fastspi_types.h>
#include <hsv2rgb.h>
#include <led_sysdefs.h>
#include <lib8tion.h>
#include <noise.h>
#include <pixelset.h>
#include <pixeltypes.h>
#include <platforms.h>
#include <power_mgt.h>








#include "FastLED.h"
#define NUM_LEDS 102
#define DATA_PIN 6
#define serialRate 500000
static const uint8_t prefix[] = {'A', 'd', 'a'};
 
// Define the array of leds
CRGB leds[NUM_LEDS];
 
void setup() {
      FastLED.addLeds<WS2811, DATA_PIN, RGB>(leds, NUM_LEDS);
      Serial.begin(serialRate);
      Serial.print("Ada\n");
}
 
void loop() {
      for(int i = 0; i < sizeof(prefix); ++i){
            while (!Serial.available());
            if(prefix[i] != Serial.read())
            return;
      }
      while(Serial.available() < 3);
      int highByte = Serial.read();
      int lowByte  = Serial.read();
      int checksum = Serial.read();
      if (checksum != (highByte ^ lowByte ^ 0x55)){
            return;}
 
      uint16_t ledCount = ((highByte & 0x00FF) << 8 | (lowByte & 0x00FF) ) + 1;
      if (ledCount > NUM_LEDS){
            ledCount = NUM_LEDS;}
           
      for (int i = 0; i < ledCount; i++){
            while(Serial.available() < 3);
            leds[i].r = Serial.read();
            leds[i].g = Serial.read();
            leds[i].b = Serial.read();}
            FastLED.show();
}

And here is the error that appears when I try to upload it to the Arduino:

Arduino:1.8.3 (Windows 7), Tarjeta:"Arduino Nano, ATmega328"

In file included from C:\Users\VICENT\Documents\Arduino\libraries\FastLED-master/bitswap.h:4:0,

                 from C:\Users\VICENT\Documents\Arduino\sketch_jul20a\sketch_jul20a.ino:1:

C:\Users\VICENT\Documents\Arduino\libraries\FastLED-master/FastLED.h:17:21: note: #pragma message: FastLED version 3.001.005

 #    pragma message "FastLED version 3.001.005"

                     ^

El Sketch usa 4656 bytes (15%) del espacio de almacenamiento de programa. El máximo es 30720 bytes.
Las variables Globales usan 586 bytes (28%) de la memoria dinámica, dejando 1462 bytes para las variables locales. El máximo es 2048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x9a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x9a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x9a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x9a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x9a
avrdude: stk500_recv(): programmer is not responding
Problema subiendo a la placa. Visita http://www.arduino.cc/en/Guide/Troubleshooting#upload para sugerencias.
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x9a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x9a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x9a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x9a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x9a

Este reporte podría tener más información con
"Mostrar salida detallada durante la compilación"
opción habilitada en Archivo -> Preferencias.

Here’s the link to the video I said

So that’s all :smiley:
Thank you everyone in advance :grinning:

You didn't select the correct board. Or you didn't select the correct serial port.

Your "debug" skipped the information that includes trying to program the board. If you bought a cheap board from an unofficial supplier, you probably need to install their serial drivers.