Arduino Workshop - Chapter Three - IF Statements
Vložit
- čas přidán 4. 09. 2024
- The full Arduino Workshop in step-by-step format can be found here core-electroni...
In this section, we'll be looking at using 'If' statements, which are the backbone of decision-making for microcontrollers.
We're official retailers for Arduino in Australia - powered by makers, for makers! core-electroni...
Your a life saver! I have been tearing my hair out trying to do this. Now after watching this Eureka!, two weeks of head bashing and brain frying have been put behind me thank you.
Brilliant video and well explained. This example of the IF statement to create a toggle action WITHOUT delays is a fundamental of well executed code writing.
This tutorial series is fantastic. Simple, clear and doesn't assume prior coding knowledge. Thank you, you've really helped me get my head around how to do a lot of things and avoid unnecessary headaches!
If explaining "IF" is the purpose of this video, you've made it way more complicated than necessary. How about a short example first. Then a more complex one later in the video.
yeahh
This video series is brilliant! Thanks for helping me understand programming the Arduino.
This programme is amazing..very well presented and explained perfectly. Had to sit down and read it loads and practiced writing it a few times but got it. Have altered it to allow four LED’s and a dimmer as well. Thanks
Excellent video. Thank you . I can't understand why you don't have more likes.
Thank you for this video series! I find it very helpful, and what you're saying is very easy to follow.
This example is a little more complicated than one might expect at this level, but if this is the worst video you ever made, you're doing great!
Very informative. But in the last part, while explaining else, you have followed the if directly with else which will cause a compilation error. The else should be put after an if block as follows. if(condition){ // code }else{ // code }.
Your videos are very informing but the background music is very annoying and unnecessary.
same
Dito
This is exactly what I said! The only thing worse is WUMAO and how they censor everything. WUMAO sucks.
I use "once" a lot. Some things can update much more than needed. A piece of code will open by once = 1 and when in it closes by itself with once = 0. Just a tip.
Very cool video. Knowledge behind it is very important bacause this works much better then attempts from other youtubers on button switch code. Thanks
hope you are still active.. currently having problem with toggle switch to control motor using millis. this what i need hope you can help me. when digitalpin is high (always high since toggle switch) thats is the time the millis will start to count till 3hrs to on the motor.
Get rid of the background music please!!! I gave up ....
at 16:48 it should have been else if and not if else
I Don't understand why we need to record the last button state. You can do everything as intended without recording the previous button state.
edit: I also don't see the point in recording the time since the button was last pressed.
Hey man,
really enjoying your videos and learning heaps, - Great job.
i have a question..... can you have a long unsigned float?
good work you have much knowledge of ardiuno
Great Videos.
thanks. great video. Excellent.
Arduino can work two stetment at same time
I still do not understand the first ‘if statement.’ I do not see where we define lastPress besides initializing it as zero. How will this ensure we don’t get ‘bounce feedback.’ Wouldn’t Millis always be greater than the debounce time except for the first twenty milliseconds. Great videos btw. Please help.
Edit: I got it now, I forgot to set lastPress = Millis in my code. EXCELLENT VIDEOS!!!
Great to see you fixed it Matthew. Problem solving is a vital skill that's transferable across programming and life in general.
thanks!
excellence teaching, but could use better camera men.
Hi, I need to compare 4 digital outputs, someone knows how it is done.
if the 4 are in high state of true .. thanks
nice i like this videos
plzzzz remove thos background musiccccc it really hurts >>>>>>
Hey, understanding this is pretty hard for a beginner like me. It feels too complicated
Don't worry, at begginer level you have to ignore some stuff
But, if you need help I may able to explain it
Great vid but background music adds nothing to the content and discriminates against those of us who do not have perfect hearing e.g. able to differentiate what you are saying against that dreadful background music. I'm sure you dont intend to exclude hard of hearing people from your vids. Thanks for sharing
You are crowding too many things at a time. Like mills, state, toggle when you started with how to use if. This leads to a lousy instructor.
The F Music kill me
Also had to stop watching at this point, music doing my head in
Maybe ask your wife about hair.
Damn over Complicated example and confusing. It should have a syntax examples followed by some code examples. Morevover first if is nesting the other two.