Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Controlling NeoPixels from a slaved Arduino
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Controlling NeoPixels from a slaved Arduino

by SkyKnightOwl on Tue Aug 08, 2017 4:26 am

Good Day!

I was wondering if there'a any guide in controlling Adafruit NeoPixel RGB Strips from a master RPi to a slaved Arduino Nano.

SkyKnightOwl
 
Posts: 1
Joined: Tue Aug 08, 2017 4:24 am

Re: Controlling NeoPixels from a slaved Arduino

by adafruit_support_rick on Thu Aug 10, 2017 10:47 am

No guide for this. Yow is the nano connected to the pi? Serial? I2C?
Whatever, you'll need to come up with a simple comm protocol to send commands to the nano. Simplest thing might be to just send a pixel number, r, g, and b values in ascii text.

something like this:
Code: Select all | TOGGLE FULL SIZE
0, 0, 255, 128
1, 255, 128, 0


You would write a parser on the nano that converts the ascii to binary, using the commas to separate the values. Look for the newline to separate the commands. Then just plug the data into a setPixelColor function call.

Add another ascii command to signal a call to the show pixels function

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Please be positive and constructive with your questions and comments.