Neopixel - no output, example?

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!

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

I t works fine for me on several Pi

Did you notice the pre-requisite for it?

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

of course, sorry!

node-red-node-pi-neopixel

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.

1 Like

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?

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

You have to connect ground (pin6) as well

Have you tested using python example e.g.

sudo python Pimoroni/unicornhat/examples/rainbow.py

There may be a problem with the levels.

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

That also may be a problem.

Can you provide a copy of your flow?

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

[{"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 :wink:
Thanks for your help and support

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

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!

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

1 Like

Hihaa! You made my day, got it running!

Thanks!

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