Me and a friend have been working on a board game table for some time now, and we are trying to get the lights to work properly.
Our idea is to control the lights via Bluetooth from an app, and we got it working fine, but we think we ran into a RAM bottleneck of the UNO so we decided to upgrade to a MEGA for the extra memory.
However, it seems that the lights do not work properly with the MEGA, they flash in a crazy manner when we try to get them to do what we want, no matter how simple the code.
What we tried:
-changing wires
-changing the code (making sure we are using the right lights type, pins, number of lights, etc.)
-different power supply
-resistor between data and lights
-making sure everything is grounded
We ran out of ideas so we decided to see if anyone could have any ideas what the problem may be. In the post I am attaching a schematic of the system. (the lights are ws 2812, and the UNO in the schematic is replaced by the MEGA, with either 5v or 12v connected as a power supply, neither fixing the lights)