703
edits
mNo edit summary |
|||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
[[File:4_Buttons_Internal_Pullup_schem.png | thumb | Buttons without extra pull up resistors - be careful!]] | |||
[[File:LED_Pin_13_Steckplatine.png | thumb | Using an LED on pin 13]] | [[File:LED_Pin_13_Steckplatine.png | thumb | Using an LED on pin 13]] | ||
| Line 5: | Line 7: | ||
[[File:LED_Pin_3_Potentiometer_A0_Steckplatine.png | thumb |Use a Potentiometer and LED]]<br> | [[File:LED_Pin_3_Potentiometer_A0_Steckplatine.png | thumb |Use a Potentiometer and LED]]<br> | ||
First Lesson, 2nd of May, 2012: | |||
* Arduino file format (pde and ino) | * Arduino file format (pde and ino) | ||
| Line 21: | Line 23: | ||
<br clear="all"> | <br clear="all"> | ||
2nd Lesson, 9th of May, 2012: | |||
[[/Variables_Random_analogWrite | Code + comments: Variables, Random and analogWrite ]]: (The code examples I made during class.) | |||
* introduce the concept of variables. | * introduce the concept of variables. | ||
* introduce | * introduce 2 function: random() and analogWrite | ||
* | * if we are fast: analogRead() and Serial communication basics | ||
Introducing variables. | Introducing variables. | ||
int (means an integer number: 0 1 2 3 4 5 6 ... and also negative numbers. limits: -32,768 to 32,767 | * int (means an integer number: 0 1 2 3 4 5 6 ... and also negative numbers. limits: -32,768 to 32,767 | ||
there are other kinds of variables. we only use int for simplicity in this lesson. | * there are other kinds of variables. we only use int for simplicity in this lesson. | ||
valid names for variables: otto, lemonade24 | ** In your homework: see other types of variables. | ||
not allowed names for variables: ööö äää 1234Otto (must start with an alphanumeric character) | |||
Names of Variables: | |||
valid names for variables: examples: otto, lemonade24, pudding, pinNumber, pin_Number | |||
not allowed names for variables: ööö äää 1234Otto (It must start with an alphanumeric character) | |||
better names for variables: delayTimeOff, pinNumber, delayTimeOn | better names for variables: delayTimeOff, pinNumber, delayTimeOn | ||
edits