I'm trying to get something working and I'm a complete newbie at this
I saw something on YouTube that makes a rotary encoder control the color change of LED lights like a color wheel.
I would like to do the same thing but instead of LED (W2812) I would like to control DMX lights to do the same.
I have code from GREG FRANK (@Greglarious) GitHub - greglarious/rotaryled
here is his demo video demonstration of arduino with rgb led strip and rotary encoder - YouTube
watch at 45 sec for what I'm trying todo but with DMX
I just don't know how to merge it with the
DMX shield that I have https://www.cqrobot.com/DMX-Shield-for-Arduino-Remote-Device-Management-Capable
PLEASE HELP !!!!
I feel like a big Dummy
I just don't know how to merge it with the
I haven't looked at the code but it's usually impossible to simply "merge" the code from two or more projects.
Sometimes you can re-use a library or "steal" functions but you'll probably have to write the main code yourself. That means understanding how the input (rotary encoder) works and how the output (DMX) works, getting them to work separately, then you figuring out how to put them together.
When you're ready to "merge" your own code it's usually best to start with the hardest part (maybe the DMX) and then start adding bits of the easier part (rotary encoder). For example, just do something simple when rotary encoder is moved, then "build-on" adding details.
There could be some timing issues... i.e. You could miss a rotary pulse if the processor is busy writing to the DMX, etc. And, if you use interrupts, you could interrupt the DMX transmission in the middle of a message, etc. Maybe there's enough buffering in the DMX transmission but I don't know...