Arduino Workshop - Chapter Three - WHILE Loops

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ม.ค. 2025

ความคิดเห็น • 27

  • @ath0rus
    @ath0rus 4 ปีที่แล้ว +3

    one of the best things I have learnt is that when you want to reference the "built in" led on the Arduino the best way to do that is using "int led = LED_BUILTIN;". "LED_BUILTIN" just references to the built in LED. yes ik you can use pin 13, but this method makes sure that the led will light up on any (most) Arduino.

  • @MaxMakerChannel
    @MaxMakerChannel 6 ปีที่แล้ว +1

    I love this guy! Thanks!

  • @ChickenPermissionOG
    @ChickenPermissionOG 4 ปีที่แล้ว +2

    Been trying to get a while loop to work with a hall sensor but it won't leave the loop when the condition becomes false.

  • @cyberspider78910
    @cyberspider78910 2 ปีที่แล้ว

    One question : This means main loop will resume only after while loop is completed or loop will be looping at microcontroller speed each time coming across while() and evaluating the condition ?

  • @1malditoPerro
    @1malditoPerro 2 ปีที่แล้ว

    Hey, I'm trying to make a pwm and frequency counter that when it finds the desired frequency and duty cycle you press a button to stop the counting but remain transmitting at the frequency and duty cycle it stopped at. Also a back button and forward buttong would be desired to fine tune. I made the counter already but I have no control over it I have no idea how to interrupt the For loop. Any ideas?

  • @gauravkajal1192
    @gauravkajal1192 3 ปีที่แล้ว

    Hello dear
    Can you help me to solve this
    I have 4 IR sensor
    When first sensor gives signal to aurdino for 1 sec only, after 2 sec our relay is on for 1 sec and then off
    And these all happened with all 4 sensor and 4 relays

  • @hobbyelectronics2121
    @hobbyelectronics2121 2 ปีที่แล้ว +1

    2:44 it's easy to add digitalRead inside the while loop condition instead of checking it through a variable.

  • @Tubeunus
    @Tubeunus 4 ปีที่แล้ว

    I want to send some text to arduino to stop one condition and send another text to start another (if condition) could u make a video for that....

  • @taranagnew436
    @taranagnew436 6 ปีที่แล้ว

    what does toggle state do in the code and if i wanted to do a buttonState on a analog pin for a button on a LCD shield, is this how i would code it? buttonState = analogRead(btnSELECT);

  • @MrDumbdane
    @MrDumbdane 7 ปีที่แล้ว +9

    Im learning a lot here, so thx :-) but at 2:48...... "So, we're checking the button here" *points at screen off camera*. Just made me giggle ;-)

  • @qzorn4440
    @qzorn4440 3 ปีที่แล้ว

    very nice... this would be be great with a switch-case to pick different while loops.. 🤔 thanks a lot. 🙂

  • @hariwantstoplaygame5093
    @hariwantstoplaygame5093 6 ปีที่แล้ว

    how can i use interrupt with ultrasonic

  • @BFC24
    @BFC24 4 ปีที่แล้ว

    how to beeak a loop?

  • @RESO_44
    @RESO_44 3 ปีที่แล้ว

    Hi there.. Can I have I while loop in a function?

  • @mr.rangeroze6044
    @mr.rangeroze6044 5 ปีที่แล้ว

    Why use "=!" instead of "!="?
    Is this the logic behind the different operators?:
    toggleState NOT equal to toggleState
    and
    toggleState equal to NOT toggleState

  • @ovi_4
    @ovi_4 4 ปีที่แล้ว +1

    Thumbs up for the content. However thumbs down for the size of the written code on the screen. Who on earth can see the wrighting if one watches the video on a mobile device, such us a tablet? Let alone watching it on a phone!. Really not usable. The text size should be about 5 times bigger than it is now for someone to see it without using a magnifier glass.

    • @NikonPunch
      @NikonPunch 4 ปีที่แล้ว

      I don't know. Maybe use a computer then? That's your problem. Font size is large enough.

    • @cw4608
      @cw4608 4 ปีที่แล้ว +1

      There is a supplemental webpage link in the video info section. It may help.

    • @jsebbie
      @jsebbie 2 ปีที่แล้ว +1

      bruh i can see it just fine on my iphone, you probably just have bad eyesight lmfao