I can't upload Fastled.h to arduino nano.

Hello. Thanks to all for reading. I've been trying to upload this to my arduino nano, but i had no luck. I am trying to made a homemade ambilight.

this is the error that i have.

Arduino:1.8.6 (Windows 10), Tarjeta:"Arduino Nano, ATmega328P"

In file included from C:\Users\IVÃ?N\Documents\Arduino\adalight_ws2812-master\Adalight_WS2812\Adalight_WS2812.ino:1:0:

C:\Users\IVÁN\Documents\Arduino\libraries\FastLED/FastLED.h:17:21: note: #pragma message: FastLED version 3.002.000

pragma message "FastLED version 3.002.000"

^

El Sketch usa 4514 bytes (14%) del espacio de almacenamiento de programa. El máximo es 30720 bytes.
Las variables Globales usan 460 bytes (22%) de la memoria dinámica, dejando 1588 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=0xfb
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xfb
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xfb
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xfb
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xfb
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xfb
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xfb
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xfb
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xfb
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xfb
Problema subiendo a la placa. Visita http://www.arduino.cc/en/Guide/Troubleshooting#upload para sugerencias.

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

I've beent triying various ports but i have no luck. Also i've soldered to pins to gnd and pin6 of the nano, i don't know if maybe thats a problem. Anyone knows why this could happen? Thanks.

You can't upload a .h header file to an Arduino.

Have you selected the correct board?

(deleted)

Hello, thank you for taking your time to reply.

Yes, i've selected arduino nano in tools > board.

Well, im not trying to upload a .h file, just this

#include "FastLED.h"
#define NUM_LEDS 60
#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 != 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*.r = Serial.read();_
    _ leds.g = Serial.read();
    leds.b = Serial.read();}
    FastLED.show();
    }[/quote]*

    but i've tried with 2 computers, changing ports and i can't seem to be able.
    Thank your repliying spycatcher2k. I'll try._

Hello, thanks Spycatcher, that worked! :slight_smile: