HOWTO Neopixel diagram & configuration

Wilco van Toorn edited this page Aug 31, 2017 · 15 revisions

To use a neopixel you need a dedicated arduino. A small one , Arduino Nano or promini is enough.

You have 2 options to connect this 3rd arduino , Using RX/TX ( master - slave arduino ) or direct USB


Setup:

  • Option 1 - easy - Using usb cable

1: Plug Neopixel wires like this ( you can use optional 1000 µF, 6.3V capacitor ) :
neopixel arduino
2: Upload MRLcomm Inside the dedicated arduino
3: Activate Neopixel Inside services/neopixel.config like this
( change of course NeopixelMasterPort=COM5 and pin=2 to Your values )

[MAIN]
isNeopixelActivated=1
NeopixelMasterPort=COM5

[NEOPIXEL]
pin=2
numberOfPixel=16


  • Option 2 : Using RX/TX connection

It is usefull if you don't have enough usb ports
PLESE NOTE : WIRE CONNECTIONS NEED TO BE CROSSED RX>TX / TX>RX

1: you need to connect arduino slave to arduino master like this
new nervoboard :
neopixel arduino

old nervoboard :
neopixel arduino

neopixel:
neopixel arduino PLEASE NOTE : WIRE CONNECTIONS NEED TO BE CROSSED RX>TX / TX>RX

2: Upload MRLcomm Inside the dedicated arduino
3: Activate Neopixel Inside services/neopixel.config like this
( change of course NeopixelMaster=left/right and pin=2 to Your values ) For information Serial2 ( RX2/TX2 ) is case sensitive

[MAIN]
isNeopixelActivated=1
NeopixelMasterPort=Serial2
NeopixelMaster=left

[NEOPIXEL]
pin=2
numberOfPixel=16

source : http://myrobotlab.org/service/NeoPixel