Right MCU for neopixel + coding
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Right MCU for neopixel + coding

by neilvdm on Tue Aug 20, 2019 6:15 am

Hi all,
Im busy an a project, an Educational Toy for toddlers, a 3D printed one
The basic idea is that I have 4 "standard" puzzle shape pieces, that will fit into each other to form a larger square, but inside of each puzzle piece is a primitive shape that needs to be assembled first.
assembled puzzle.jpg
assembled puzzle.jpg (52.65 KiB) Viewed 29 times

Keep in mind that the puzzle piece will be printed in a clear PLA for example
Once the completed primitive has been inserted into the puzzle piece, I want the whole puzzle piece to light up white, and with the color of the shape to "flow" into the puzzle, also, the open sides of the piece to be green
Something like this:
1 piece puzzle lights.jpg
1 piece puzzle lights.jpg (11.59 KiB) Viewed 29 times

now here is where I get stuck:
The inside shell of the piece will obviously have Neopixels installed, and seeing that each of the 4 pieces will need its own MCU, I was looking at the Adafruit ItsyBitsy 32u4 - 3V 8MHz - Will this work?
puzzle shell.jpg
puzzle shell.jpg (47.71 KiB) Viewed 29 times

1. I do not know anything about the coding in Arduino for Neopixels, how would one go about coding something like this?
what I was thinking to initiate each of the commands
a) the puzzle lighting up with the color of the primitive shape flowing into the puzzle piece
b) the open edges lighting up green, until another piece is connected

I was thinking to fit 3 micro switches, so for
a) switch open = no action, switch closed = start code for the color flow
b) switch open = outer edge LEDs light up green, switch closed = outer edge LEDs white (but b only comes into effect at the same time as a)

Does this make any sense?

I would GREATLY appreciate any assistance or guidance in the right direction!!

Thank you guys

Posts: 4
Joined: Tue Aug 20, 2019 5:09 am

Please be positive and constructive with your questions and comments.