Some work with variable resistors – early signs of my stupid pet trick
I’d like to make a programmable tee-shirt, with a built in light show, also including a slot for messages, in front of the “screen”…
here’s what I have so far – I just need to make the LED’s brighter and then implant them into a shirt…
I used a push pad to turn on a series of lights (as pressure increases, more lights come on) while increasing the amplitude of a speaker.
And below I use three photocells, each one dims an LED:
Here’s the code:
int POTPIN = 0; //the pin for the sensor
int led1 = 5; //the pin for the LED first
int led2 = 9;
int led3 = 10;
int led4 = 3;
int speaker = 6;
int val = 0; //stores the state of the input pin
// pinMode(POTPIN, INPUT);//do I need to put this????
val = analogRead(POTPIN);
if (val >0 &&val<250)