Different output between Arduino Mini 05 and Arduino Mega 2560

Hi all,
I've just finished to setup my new Arduino Mini 05: i've soldered the pins to easily work in the breadboards...
I've also uploaded the code of my program to control the color of an rgb led strip through mobile phone using Bluetooth. The code was previusly written and tested on Arduino Mega 2560 Rev3, and it worked quite well.
Unfortunately i've noticed a strange thing in the Mini: the animation through the HSL color spectrum is not fluid. Sometimes there is a drastic change in the color. Maybe i can solve this problem increasing the delay in the loop.
Another strange thing is the combination of R,G,B components of the color... I've inserted in the code the RGB components of some colors (for example, light green, emerald, cyan, pink, violet, ....), and they worked well in the arduino mega. I'm now testing it in the Mini, and some colors are really wrong (like the violet, orange,...).
What do you thing is the problem?

this seems like shortage of ram, these ATMegas tend run out often out of ram when dealing with large arrays which happens largely in the case of led lighting.

but then we dont know what you are doing in your code.

"Fortunately" i'm working with a 5050 rgb led strip: i cannot control each led! I need just one color (RGB) for the entire strip. So i think it's not a memory problem...

i cannot control each led! I need just one color (RGB) for the entire strip. So i think it's not a memory problem...

I have done a lot of this RGB strip and LED addressal and according to just your narration(even that is like mostly probably you only understand it the best) and no code I came to that ram low point.

ahhhhhh, i have done the most newbie mistake in the world :slight_smile:
i've assumed the pin7 was a pwm pin. Accordingly to the Mini description, the pwm pins are: 3, 5, 6, 9, 10, 11
don't ask me why the designer didn't put pwm pins consecutively...
now everything is working fine. thanks anyway.

Insert Quote
ahhhhhh, i have done the most newbie mistake in the world smiley
i've assumed the pin7 was a pwm pin. Accordingly to the Mini description, the pwm pins are: 3, 5, 6, 9, 10, 11

You learned a lesson here that first all make sure hardware connections and addressal in code are all correct and then comes the fuses etc lower level setup stuff for your uC and then comes your logic in your code.

Davide_sd:
don't ask me why the designer didn't put pwm pins consecutively...

Because they're not consecutive on the Mega328 chip.

they're not consecutive on the Mega328

They're not consecutive on the Uno, or the mega2560 , either (not very, anyway). But the PCB designers DID make them consecutive on the Arduino MEGA...