Millumin & Arduino - Millumin Stream
Im brand new to Millumin but got told about it when discussing a project with a friend, and it turns out its exactly what I was looking for. I have managed to get a rudimental version of what I am trying to achieve to work. But now i'm trying to slim-line it a little bit and was hoping for a couple of pointers.
* I must also add that i'm pretty new to Arduino too, but picking it up very quickly.
So my project is an installation, of witch we project onto box's the box's have a motor in each to rotate them. Millumin triggers the motor to go and plays the video to animate the box spinning.
I have got to a point where Millumin sends a HIGH value on D5, witch goes though a resistor to D4, D4 is setup to listen for HIGH, when it see's it, it triggers the motor (the amount of steps is all fixed inside the Arduino code, so just need a trigger).
Thats fine I can keep working like that, but when I start running 4 motors off of each Arduino its just more cables and bits in the circuit. So I am wondering how I can pass a value though Milluminstream to trigger different motors. I have followed the online examples but im getting a little bit stumped. I also could be completely wrong on how I understand the Milluminstream library to work.
From what im understanding from it onInPutvalue I can get the Key:Index & value being sent. So in Millumin I tell an electronic layer to send
"M1 1" I should receive that in the variable in my Arduino? (I am using M to represent Motor, so M2 would be the second Arduino controlling the second stack of box's).
My code in Arduino inside the "void onInputValue(uint8_t key, uint8_t index, uint16_t value)" would see if its an 'M' key and Index, then depending on the number that is passed in the value, trigger that motor. So 0 would keep all off, 1 would trigger the sequence for motor 1 and so on.
Am I right in thinking like this? Does this even make sense? I was having troubles with getting the info passed. Do I need togo into an Analog I/O to read the value if I send it out a digital pin instead of it doing it internally?
Any advice or points in the right direction would be grand.