ARDUINO VJEZBE 4

  • Upload
    damir-k

  • View
    231

  • Download
    1

Embed Size (px)

Citation preview

  • 7/21/2019 ARDUINO VJEZBE 4

    1/7

    !"#$%&' )"'* +,#&'-.!/&, 0"%1+,",! #$%#$&'& () *)+,&-)*,) !

    "#$"#%&' ()%#$*)+' +,&-.$+'/$*' ) #'0-.'1,& $

    '.'1,2.$ -1'3$

    "4565 37897:5; ?4@A CDEF

  • 7/21/2019 ARDUINO VJEZBE 4

    2/7

    ! "#$%&'( *#(+ ,-$'(./"0'- 1#&2,-#-

    ! "#$%&'( *#(+ ,-$'(./"0'- 1#&2,-#-

    .-#&,.*" *(2%'&*"3&," . #"4%'"5(2

    )7:

  • 7/21/2019 ARDUINO VJEZBE 4

    3/7

    "#$%&'( *#(+ ,-$'(./"0'- 1#&2,-#- 6

    "#$%&'( *#(+ ,-$'(./"0'- 1#&2,-#- 6

    .4I58 M:

  • 7/21/2019 ARDUINO VJEZBE 4

    4/7

    7 "#$%&'( *#(+ ,-$'(./"0'- 1#&2,-#-

    7 "#$%&'( *#(+ ,-$'(./"0'- 1#&2,-#-

    +5:

  • 7/21/2019 ARDUINO VJEZBE 4

    5/7

    "#$%&'( *#(+ ,-$'(./"0'- 1#&2,-#- 8

    "#$%&'( *#(+ ,-$'(./"0'- 1#&2,-#- 8

    )7:

  • 7/21/2019 ARDUINO VJEZBE 4

    6/7

    9 "#$%&'( *#(+ ,-$'(./"0'- 1#&2,-#-

    9 "#$%&'( *#(+ ,-$'(./"0'- 1#&2,-#-

    34N4L4I EU ,O

  • 7/21/2019 ARDUINO VJEZBE 4

    7/7

    "#$%&'( *#(+ ,-$'(./"0'- 1#&2,-#- :

    "#$%&'( *#(+ ,-$'(./"0'- 1#&2,-#- :

    #G7Z78G7 94 M:;< H6JO4GU

    int potenciometar = A0;int analogna_vrijednost;int led = 10;

    void setup() {Serial.begin(9600);pinMode(potenciometar, INPUT);pinMode(led, OUTPUT);

    }

    void loop() {analogna_vrijednost=analogRead(potenciometar);if (analogna_vrijednost515) {digitalWrite(led, HIGH);} else {digitalWrite(led, LOW);}delay(100);

    }

    d5N4L8< 94N4L4IU -?G7HL5 M5L78K