30 GPIOs in the LPC11U24. Four are outputs:
- p5 MOSI will be for the NeoPixel strand
- one for the speaker
- one for the motor
That leaves 27 for wires that can be pulled out to change the behavior.
Six inputs for color with two each for red, green, and blue. If both are in, then that color will be off. If one is in, then half on, If neither, then full on. (If all LEDs are set to be off then it will be very softly on, white.)
Two inputs for blink method: blink selected color to full white (00), blink selected color to black (01), blink to random (10), and blink to the opposite color (not all the bits),
Three wires for timing of the blink, where if there is only one of the wires in (doesn't matter which), it will not blink. The remaining five timing are in seconds: 0.1, 0.5, 1.0, 2.0, 5.0.
Ok, so 27 - 6 - 2 - 3 = 16 inputs left.
I'll need a sound selector. How many sounds can I do? Various clock ticking sounds (say 4), silence (a couple slots of that), and any music I can pack into a frequency/duration array. So at least three wires, maybe four.
What to do with the remaining twelve inputs. Hmmm... I did say I wanted a motor. I was just going to vibrate it when a wire is pulled out. I suppose like sounds, I can do a frequency/duration thing. Three wires for that.
Nine remaining inputs. I have eight LEDs on the NeoPixel strand. I want to have one LED always on. But that could take up seven inputs.
And I think leave I'll leave the remaining two open. For future expansion.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.