Arduino Neopixel

In this post we will learn how to use the neopixel or ws 2812 or fast led with Arduino. These types of LED or strip or ring are controlled by only one single Vin pin and all the LEDs are individually addressable so these are also called individual addressable LEDs and they are quite costly than normal RGB LED.

Gather Your Components

so very first you need to get two important components one of them is an arduino and other one is neopixel ws2812 LEDs / led strip or ring.

Items to Buy (affiliate link) –

Arduino Uno- Buying Link

Ws2812 neopixel (12 bit) ring – Buying Link, Link 2

Ws2812 neopixel (7bit) ring- Buying Link

Ws2812 neopixel (3 bit) ring – Buying Link

Ws2812 neopixel led strip – Link 1 , 

Link 2 , Link 3


The connections are very simple.all you need to do is to connect vcc of neopixel to the +5v & Gnd of neopixel to the Gnd & the Vin pin of the neopixel to any digital pin ( i am connecting it to pin 6 because we will define the pin 6 in the software.).

If having issue in connections then refer video for help.


Open Arduino IDE then go to examples & go to “neopixel” then open “simple” sketch.

In the sketch you need to set two things first

1- define PIN 6 (You need to define the pin no of arduino on which Vin pin of neopixel is connected, we are using PIN 6 here)

2- define NUMPIXELS 12 (you need to define no of pixels your neopixel have which means no of LED on it , we have 12 LEDs on our neopixel so we’ll use 12)

And in the loop section there is one command is used to set the color of neopixel


Where “i” is the number of pixel or led you want to turn ON in any color

& “r” “g” “b” are shades of color which are RED , GREEN,BLUE & their value range is 0 to 255.

So here we are using


This means that the first pixel is set for blue color.

Upload the Code

The final step is upload the code to Arduino & you are done & if you did everything correct then neopixel will turn on according to the logic you gave .

And if have any issue with any step please refer for video.

Enjoy your neopixel.


  1. I was recommended this website by means of my cousin. I’m no longer certain whether or
    not this publish is written by him as nobody else
    recognize such distinctive approximately my trouble.
    You are wonderful! Thanks!

  2. Hey there! Someone in my Myspace group shared
    this website with us so I came to take a look.
    I’m definitely enjoying the information. I’m book-marking and will be tweeting this to my followers!

    Excellent blog and wonderful style and design.

  3. Hello would you mind letting me know which web host
    you’re using? I’ve loaded your blog in 3 completely different internet browsers and I must say this blog loads a lot quicker then most.
    Can you suggest a good web hosting provider at a fair price?
    Thank you, I appreciate it!

  4. Hey there! Someone in my Myspace group shared this website with us so I
    came to take a look. I’m definitely enjoying the information. I’m bookmarking and will be tweeting this
    to my followers! Great blog and superb design and style.

  5. I know this if off topic but I’m looking into starting my own blog and was curious what all is needed to get
    setup? I’m assuming having a blog like yours would cost a
    pretty penny? I’m not very internet smart so
    I’m not 100% positive. Any suggestions or advice would be greatly appreciated.
    Many thanks

  6. Howdy! I know this is kind of off topic but I was wondering if you knew where I could locate a captcha plugin for my comment form?
    I’m using the same blog platform as yours and
    I’m having trouble finding one? Thanks a lot!

  7. I am really enjoying the theme/design of your blog.

    Do you ever run into any browser compatibility problems?

    A handful of my blog visitors have complained about my
    site not operating correctly in Explorer
    but looks great in Firefox. Do you have any tips to help
    fix this problem?

  8. Have you ever considered publishing an e-book or guest authoring on other websites?
    I have a blog based upon on the same information you discuss and would really like to have you share some stories/information. I know my visitors would appreciate your work.

    If you’re even remotely interested, feel free to send me an e-mail.

  9. Hey, I think your site might be having browser compatibility issues.
    When I look at your website in Chrome, it looks fine but when opening in Internet Explorer, it has some overlapping.

    I just wanted to give you a quick heads up! Other then that, wonderful blog!

  10. Howdy! This is my first visit to your blog! We are a team
    of volunteers and starting a new initiative in a
    community in the same niche. Your blog provided us valuable
    information to work on. You have done a outstanding job!

  11. Excellent article. Keep writing such kind of info on your page.
    Im really impressed by it.
    Hi there, You’ve done an excellent job. I will certainly digg it and individually recommend to my friends.

    I’m sure they will be benefited from this site.

Leave a Reply

Your email address will not be published. Required fields are marked *