Tried the multimeter.. got some readings but am still a bit murky on exactly how to make sence of it.
Would be great if you could do a demo in class.. The meter I got from Amazon is a bit different that the one shown in the lab.. Just would like to be clear on the differences and in general how it works and when is necessary to use. ( I know its explained but I think I need more real time example)
The first button lab went well.. Here is a little video:
but there was no sample code. I looked on line and was not sure what to use.. so would be great if you could go over that as well. I will try to make a soft a switch and bring it in..
The readings were interesting. I liked Talk to me.. I do agree that the most complicated interactivity is not always the best choice and the focus when designing a project needs to be on how effective is the tool and its capacity to deliver its message with an integrated aesthetic... The rant was good .. as I agree that it is important to consider the whole body in terms of interactive access..
The cookbook was much too much material to absorb..Most of us have limited programing background .. I have a little and still all that material needs some practical reference to really understand.. I could not see any code that referenced the breadboard set-up in the second lab..I was not sure if I should add a wire to pin 13 from the led and to wire the switches to one pin or three..
So.. not that successful. but I like making videos when things do work..
code for first button project
void setup() {
pinMode(2, INPUT); //sets the switch to be an input
pinMode(3, OUTPUT); // sets green led pin to be output
pinMode(4,OUTPUT); // sets the yellow led pin to be aan output
}
void loop() {
if (digitalRead(2) == HIGH) {
//if switch is closed:
digitalWrite( 3, HIGH); // turn on green led
digitalWrite(4,LOW); // turn yellow led on
}
else {
//if the switch is open:
digitalWrite(3, LOW); //turn off green
digitalWrite(4,HIGH); //turn on yellow
}
}
I finally got the three button configuration to work..
found an adafruit tutorial that showed how the little button is wired..
that was whole issue..
here is a video that includes code for two versions
oops.. code doesn't read so
#1
three button#1 |
three button #2 |
No comments:
Post a Comment