Neopixel & Mega2560 don't work

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
marber68
 
Posts: 2
Joined: Wed Sep 03, 2014 2:45 pm

Neopixel & Mega2560 don't work

Post by marber68 »

Hi,

im from Germany and would use an Mega2560 with an WS2812b Strip and your Library.
With an UNO all works fine.
But if i connect an MEGA2560 the animations runs to fast, the Colors and LED jumps around and flickering.
When i let blink only one led, with delay(500), it blinks three times, then 10 seconds nothing, and so on.

Whats wrong?
Should i change some program code?

Thanks fpr help, and sorry for the bad english.

Regards Mario

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Neopixel & Mega2560 don't work

Post by adafruit_support_bill »

Neopixel code for the UNO should run the same on a Mega. Both processors should have the same clock speed. Are these both official Arduino boards, or clones?

If you post the code you are using we can check for anything unusual.

User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: Neopixel & Mega2560 don't work

Post by pburgess »

Which pin number are you using?

If it's one of the analog pins...there's a -very- esoteric issue that affects the Arduino Mega, and you should try any of the digital pins and see if it changes.

User avatar
marber68
 
Posts: 2
Joined: Wed Sep 03, 2014 2:45 pm

Re: Neopixel & Mega2560 don't work

Post by marber68 »

Hi,

thanks all for the fast reply.
I don't know whats the matter.
After i have test the Mega several times, reconnect all four times, now it works. ??
I don't change anything, no code, no pins. Now i think, the Mega board is faulty.

Its an SaintSmart, that looks like an original Arduino.
The code i tested are the examples from the adafruit library.
Only the LED count and Pin number i changed.

I used several Pins from 6 to 53, all the same result.

Now i will test it for a while and look if the fault recur.

Thank you very much.
Regards Mario

User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: Neopixel & Mega2560 don't work

Post by pburgess »

Could just be the connections. Like if you're using stranded wire in the Arduino sockets, usually a bit flaky.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”