0

Loading sketch to Nano for LED strip
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Loading sketch to Nano for LED strip

by sutliff2000 on Tue Jun 01, 2021 9:15 pm

I am working with an analog strip using this article: https://learn.adafruit.com/rgb-led-strips
I was able to get it to work perfectly with the Arduino Uno. Then I transferred all the wires to the Nano and I can't get it to work.
It will compile and upload the sketch but the LEDs won't light. I have double checked everything from the schematic. The only thing that is different from the Uno to the Nano is that there isn't a 9v labeled on the Nano, as used with the Uno.

Also, is the Nano supposed to keep blinking? I have pressed the button, press and held the button - and it continues to blink.

TIA.

sutliff2000
 
Posts: 15
Joined: Sun Mar 04, 2018 5:09 pm

Re: Loading sketch to Nano for LED strip

by dastels on Tue Jun 01, 2021 10:11 pm

How exactly do you have it wired with the nano?

Dave

dastels
 
Posts: 6868
Joined: Tue Oct 20, 2015 3:22 pm

Re: Loading sketch to Nano for LED strip

by sutliff2000 on Tue Jun 01, 2021 10:27 pm

0601212114_2.jpg
0601212114_2.jpg (826.69 KiB) Viewed 440 times

I hope this is photo is helpful. I didn't change anything on the breadboard, just moved the connecting wires to the nano.
I did update the tools:
Board: Arduino Nano
Processor: ATmeg328P
Port: COM4

sutliff2000
 
Posts: 15
Joined: Sun Mar 04, 2018 5:09 pm

Re: Loading sketch to Nano for LED strip

by jps2000 on Wed Jun 02, 2021 4:50 am

Yes , the picture is helpful. You face a hardware problem.
You have to solder pin headers to the nano board and then put the nano in your white experimental board. Alternatively you may use female headers to contact the pin header.
Further it is good custom to use black wire for GND and Red for vcc. Mixing colors is a frequent source of errors

jps2000
 
Posts: 639
Joined: Fri Jun 02, 2017 4:12 pm

Re: Loading sketch to Nano for LED strip

by sutliff2000 on Wed Jun 02, 2021 8:15 am

I did use the bread board, which I did after I posted the photo, it still did not work.

It's interesting that the instructions have you using the digital pins with the analog LED strip. I tried it with the analog pins but just go this error:
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x9c

When I use the digital pins I get this error:
An error occurred while uploading the sketch

sutliff2000
 
Posts: 15
Joined: Sun Mar 04, 2018 5:09 pm

Re: Loading sketch to Nano for LED strip

by adafruit_support_bill on Wed Jun 02, 2021 8:42 am

You need to solder those connections. Simply poking the jumper pins through the solder pad holes will not make reliable electrical contact.

adafruit_support_bill
 
Posts: 81583
Joined: Sat Feb 07, 2009 10:11 am

Re: Loading sketch to Nano for LED strip

by sutliff2000 on Wed Jun 02, 2021 3:01 pm

The soldering didn't change anything. But downloading the Adafruit AVR Boards got it to light. I had to update the version. But that only worked partially. I can't get a light pattern of fading.

I am getting the following error. At one point I was able get the blue light to come on fully. But now all three colors seem to peter out and now it won't light at all. When I test it on the Uno, it works perfectly.
I don't think it is the solder joins because, when I touch the LED wire to the third leg of the MOSFET IRLB8721, the light comes on full.


Arduino: 1.8.15 (Windows 10), Board: "Arduino Nano, ATmega328P"

Sketch uses 1254 bytes (4%) of program storage space. Maximum is 30720 bytes.

Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x0f

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x0f

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x0f

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x0f

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x0f

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x0f

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x0f

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x0f

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x0f

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x0f

Problem uploading to board. See https://support.arduino.cc/hc/en-us/sec ... 0003198300 for suggestions.



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

sutliff2000
 
Posts: 15
Joined: Sun Mar 04, 2018 5:09 pm

Re: Loading sketch to Nano for LED strip

by dastels on Wed Jun 02, 2021 3:21 pm

The Adafruit AVR board support package is irrelevant here. You have an Arduino Nano and you have the Arduinop Nano selected as the board.

Try manually resetting while avrdude is trying to sync.

Also can you post some clear photos of the soldering?

Dave

dastels
 
Posts: 6868
Joined: Tue Oct 20, 2015 3:22 pm

Re: Loading sketch to Nano for LED strip

by sutliff2000 on Wed Jun 02, 2021 3:36 pm

dastels wrote:Try manually resetting while avrdude is trying to sync.


How would I do that?

Thanks

sutliff2000
 
Posts: 15
Joined: Sun Mar 04, 2018 5:09 pm

Re: Loading sketch to Nano for LED strip

by dastels on Wed Jun 02, 2021 3:44 pm

Press the reset button on the nano.

Dave

dastels
 
Posts: 6868
Joined: Tue Oct 20, 2015 3:22 pm

Re: Loading sketch to Nano for LED strip

by sutliff2000 on Wed Jun 02, 2021 3:46 pm

0602211432_2 (1).jpg
0602211432_2 (1).jpg (154.77 KiB) Viewed 373 times

photo of the solders

sutliff2000
 
Posts: 15
Joined: Sun Mar 04, 2018 5:09 pm

Re: Loading sketch to Nano for LED strip

by dastels on Wed Jun 02, 2021 3:59 pm

Having the board upside down is an interesting choice. You can't access the reset button or see the LEDs.

Dave

dastels
 
Posts: 6868
Joined: Tue Oct 20, 2015 3:22 pm

Re: Loading sketch to Nano for LED strip

by sutliff2000 on Wed Jun 02, 2021 4:17 pm

Weeeelll, it was a choice of memorizing the pins, or limited access to the reset button. I chose the first one obviously.
Yes, I have rearranged the breadboard so I can get under it to hit the reset button.
I tried once quickly after I hit Load.
I tried once for a longer press after I hit Load.
I tried before I hit load.
Nothing seems to make a difference.

I can try resoldering the pins....

sutliff2000
 
Posts: 15
Joined: Sun Mar 04, 2018 5:09 pm

Re: Loading sketch to Nano for LED strip

by dastels on Wed Jun 02, 2021 5:23 pm

There's always https://content.arduino.cc/assets/Pinout-NANO_latest.png.

A quick press while avrdude is trying to sync. Maybe a double-press. No gaurentees, but sometimes that helps.

You might find something useful here: https://forum.arduino.cc/t/solved-arduino-nano-v3-stk500_getsync-not-in-sync-resp-0x00/241839/8

Dave

dastels
 
Posts: 6868
Joined: Tue Oct 20, 2015 3:22 pm

Please be positive and constructive with your questions and comments.