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.

Tutorial written by Anthony.

__________________________________________________________________________

Setup:

  • Option 1 – easy – Using usb cable

1: Plug Neopixel wires like this ( you can use optional 1000 µF, 6.3V capacitor ) :
Neo_Arduino1
2: Upload MRLcomm Inside the dedicated arduino
3: Activate Neopixel inside InMoov/config/service_9_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 port

1: You need to connect Arduino slave to Arduino master like this
new Nervo Board:
ArduinoRXTX

Older NervoBoard :

ArduinoRXTXOld

Neopixel:
Neo_Arduino1

2: Upload MRLcomm Inside the dedicated arduino
3: Activate Neopixel inside InMoov/config/service_9_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

You can also test your NeoPixel by running this python script directly in MyRoboTlAB:

https://github.com/MyRobotLab/pyrobotlab/blob/develop/home/hairygael/NeoPixelTest.py

 

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

source: https://github.com/MyRobotLab/inmoov/wiki/HOWTO-Neopixel-diagram-&-configuration

Comments 8

  1. Bonjour,

    Je crois qu’une petite erreur s’est glissée dans les schéma. En tout cas, sur mes cartes Mega, les pins RX1/TX1 et RX3/TX3 sont inversées par rapport à ce qui est indiqués sur les schémas.

    Bon à savoir si on galère à faire communiquer notre Arduino avec un module ^^

Leave a Reply