Ws2812b color change

HI

New to all this and awful at coding.

What I am looking to do use Arduino nano with 8 or 10 neopixels and change colour via a momentary switch.

For instance, 5 led green and other 5 red. Press the button and change to blue and orange (thereabouts) and so on, maybe 10 sets of colours.

Any help is greatly appreciated, have looked at various sites, seen how to do rainbow, fade and other sketches from adafruit but nothing to what I am looking for, probably is just can't find anything.

Thanks again.

Hi. This is not a free coding service. If you want to learn to code, have a go, post your best attempt here (using code tags) and we will help. If you don't want to learn, go to the "Gigs & Collaborations" section of the forum and offer to pay for someone to code it for you.

PaulRB:
Hi. This is not a free coding service. If you want to learn to code, have a go, post your best attempt here (using code tags) and we will help. If you don't want to learn, go to the "Gigs & Collaborations" section of the forum and offer to pay for someone to code it for you.

Wasn't expecting anyone to do for me, was trying to find out first if it could be done and possibly best place to look maybe with in the adafruit tits to learn.

But if this is the sort of attitude one can expect, then probably not the best place to find help.

Northwales wrote (in part):

was trying to find out first if it could be done and possibly best place to look

This should have been in the first post. Otherwise, the post looked like many that we receive here and the response by PaulRB was on the spot. I nearly responded that way myself.

Yes, this can be done with most Arduinos. I do not know about the nano specifically.
The best place to look is to learn from the examples in the Arduino IDE, then make your own attempt, and then post if you are having problems. Search engines on the web (Google, Bing, etc.) are helpful as well.

Read these, if you have any questions after, ask for help here:
Some things to read:

https://learn.adafruit.com/category/learn-arduino
https://learn.sparkfun.com/tutorials/tags/arduino?page=all
https://learn.sparkfun.com/tutorials/what-is-an-arduino

http://playground.arduino.cc/Code/AvoidDelay

http://www.gammon.com.au/forum/?id=12153

https://www.arduino.cc/en/Main/Products
https://learn.sparkfun.com/tutorials/using-the-logic-level-converter

To post code and/or error messages:

  1. Use CTRL-T in the Arduino IDE to autoformat your complete code.
  2. Paste the complete autoformatted code between code tags (the </> button)
    so that we can easily see and deal with your code.
  3. Paste the complete error message between code tags (the </> button)
    so that we can easily see and deal with your messages.
  4. If you already posted without code tags, you may add the code tags by
    editing your post. Do not change your existing posts in any other way.
    You may make additional posts as needed.
  5. Please provide links to any libraries that are used
    (look for statements in your code that look like #include ). Many libraries
    are named the same but have different contents.

Before posting again, you should read the three locked topics at the top of the Programming Questions forum, and any links to which these posts point.

If your project involves wiring, please provide a schematic and/or a wiring diagram and/or a clear photograph of the wiring.

Good Luck!

hi. Some people have a hard time breaking down a large project into smaller ones,.

It can be done. I have a large display controlled via wifi, which also tells me the weather and time, on the front of my house as eve lighting. I only learned about arduino two years ago..

Do you have the nano and the button? If so, google how to connect the button to the arduino. There are at least two ways to hook up a button to an arduino, but i recommend using a digital pin on one side of the switch and the other to ground, and using the nanos internal pull-ups.

Once you have the switch connected, write a small program to test if your arduino can read the button presses. If you have trouble with this, post a pic of how you have the arduino and switch connected along with what you have tried.

Google

  1. How to hook up switch to arduino
  2. Arduino input pullup