# Neopixel - no output, example?

**URL:** <https://discourse.nodered.org/t/neopixel-no-output-example/24276>\
**Category:** General\
**Created:** [5 April 2020 16:37 UTC](https://discourse.nodered.org/t/neopixel-no-output-example/24276 "2020-04-05T16:37:38Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![RogierQ](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rogierq/32/3211_2.png) [@RogierQ](https://discourse.nodered.org/u/RogierQ)\
**Post date:** [5 April 2020 16:37 UTC](https://discourse.nodered.org/t/neopixel-no-output-example/24276/1 "2020-04-05T16:37:38Z")

</div>

Hi!

I am trying to get a neopixel cirkel running with node red.  
But no output at all.  
done all needed steps in the readme file and connected to pin 12, gpio 18

Can somebody help me with a working example or test file?  
I saw last update was 10 months ago, could it be that it is not running on V1.0 \>?

Thanks!

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [5 April 2020 18:53 UTC](https://discourse.nodered.org/t/neopixel-no-output-example/24276/2 "2020-04-05T18:53:11Z")

</div>

It would help to know what node-red-contrib-xxxx node are you using.

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [5 April 2020 20:13 UTC](https://discourse.nodered.org/t/neopixel-no-output-example/24276/3 "2020-04-05T20:13:53Z")

</div>

I t works fine for me on several Pi

Did you notice the pre-requisite for it?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/7/e7b8e37079bf9cea72773935ca0a1860471a8855.png)

PS Its a good idea to run one the unicorn examples using python to make sure the hardware is connected and working before trying it out in Node-RED

---

<div class="post-metadata">

**Author:** ![RogierQ](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rogierq/32/3211_2.png) [@RogierQ](https://discourse.nodered.org/u/RogierQ)\
**Post date:** [5 April 2020 20:25 UTC](https://discourse.nodered.org/t/neopixel-no-output-example/24276/4 "2020-04-05T20:25:04Z")

</div>

of course, sorry!

# node-red-node-pi-neopixel

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [6 April 2020 00:03 UTC](https://discourse.nodered.org/t/neopixel-no-output-example/24276/6 "2020-04-06T00:03:06Z")

</div>

Don't fret.

You aren't the only one who has _fallen for that_ trap.

I recently had the same problem.

So long as you learn and (try) not to repeat the mistake: all is good.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [6 April 2020 09:00 UTC](https://discourse.nodered.org/t/neopixel-no-output-example/24276/7 "2020-04-06T09:00:34Z")

</div>

> [@RogierQ](#):
>
> node-red-node-pi-neopixel

what neopixel device are you using?(can you give a url pointing at it?)  
how many led's?  
what are you using for power?  
what are you connecting all the wires to?

---

<div class="post-metadata">

**Author:** ![RogierQ](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rogierq/32/3211_2.png) [@RogierQ](https://discourse.nodered.org/u/RogierQ)\
**Post date:** [6 April 2020 09:31 UTC](https://discourse.nodered.org/t/neopixel-no-output-example/24276/8 "2020-04-06T09:31:21Z")

</div>

It is this one from ali  
Connected to the 5 volt and gpio 18 pin 12  
12 leds  
I saw a tutorial video connected the same way and it was working in that video

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/c/4c688ee9031bf611b47b1ef43447352f8c8815b2.jpeg)

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [6 April 2020 09:35 UTC](https://discourse.nodered.org/t/neopixel-no-output-example/24276/9 "2020-04-06T09:35:26Z")

</div>

You have to connect ground (pin6) as well

Have you tested using python example e.g.

sudo python Pimoroni/unicornhat/examples/rainbow.py

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [6 April 2020 09:37 UTC](https://discourse.nodered.org/t/neopixel-no-output-example/24276/10 "2020-04-06T09:37:38Z")

</div>

There **may** be a problem with the levels.

RPI signals are 3.3v the LEDs are needing 5v.

That also may be a problem.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [6 April 2020 10:57 UTC](https://discourse.nodered.org/t/neopixel-no-output-example/24276/11 "2020-04-06T10:57:48Z")

</div>

Can you provide a copy of your flow?

---

<div class="post-metadata">

**Author:** ![RogierQ](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rogierq/32/3211_2.png) [@RogierQ](https://discourse.nodered.org/u/RogierQ)\
**Post date:** [7 April 2020 17:30 UTC](https://discourse.nodered.org/t/neopixel-no-output-example/24276/12 "2020-04-07T17:30:26Z")

</div>

The code below is working.  
I think the problem was the chinese thing.

```auto
[{"id":"31f4c4ce.c844c4","type":"rpi-neopixels","z":"28f42d2c.d47122","name":"","pixels":"8","bgnd":"","fgnd":"","wipe":"40","mode":"pixels","rgb":"rgb","brightness":"100","gamma":true,"x":642.5,"y":104,"wires":[]},{"id":"8e2c17ea.77c808","type":"inject","z":"28f42d2c.d47122","name":"","topic":"","payload":"Blue","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":354,"y":90,"wires":[["31f4c4ce.c844c4"]]},{"id":"9f8a849e.b6d5c","type":"inject","z":"28f42d2c.d47122","name":"","topic":"","payload":"red","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":343,"y":154,"wires":[["31f4c4ce.c844c4"]]},{"id":"7103e3b0.bea42c","type":"inject","z":"28f42d2c.d47122","name":"","topic":"","payload":"pink","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":347,"y":219,"wires":[["31f4c4ce.c844c4"]]}]

```

Now need to find out how to control single pixels and stuff, tutorial links are welcome 😉  
Thanks for your help and support

---

<div class="post-metadata">

**Author:** ![RogierQ](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rogierq/32/3211_2.png) [@RogierQ](https://discourse.nodered.org/u/RogierQ)\
**Post date:** [7 April 2020 19:35 UTC](https://discourse.nodered.org/t/neopixel-no-output-example/24276/13 "2020-04-07T19:35:22Z")

</div>

When i read the info i find this about controlling parts of the pixel ring

A range of pixels from _x_ to _y_ can be set by `msg.payload` with a CSV string _x,y,r,g,b_

I understand this as the code below

```auto
msg.payload = ( 1,3,255,0,255 );

```

tested this in all modes of the neopixel node but no succes.  
do i understand this wrong?  
thanks!

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [7 April 2020 19:46 UTC](https://discourse.nodered.org/t/neopixel-no-output-example/24276/14 "2020-04-07T19:46:23Z")

</div>

Use the string "1,3,255,0,255"

---

<div class="post-metadata">

**Author:** ![RogierQ](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rogierq/32/3211_2.png) [@RogierQ](https://discourse.nodered.org/u/RogierQ)\
**Post date:** [7 April 2020 20:01 UTC](https://discourse.nodered.org/t/neopixel-no-output-example/24276/15 "2020-04-07T20:01:40Z")

</div>

Hihaa! You made my day, got it running!

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [6 June 2020 20:01 UTC](https://discourse.nodered.org/t/neopixel-no-output-example/24276/16 "2020-06-06T20:01:53Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
