Arduino Tutorial 60: Add a Go Button to your Distance Sensor

  Рет қаралды 35,061

Paul McWhorter

Paul McWhorter

Күн бұрын

Пікірлер: 359
@mrktm65sx
@mrktm65sx 10 ай бұрын
"I AM LEGEND". I used "int goButton=2", configured pin 2 with internal pullup, and used "while(digitalRead(goButton));" statement to wait for button press before performing one distance measurement. Thank you so much for your most excellent tutorials!
@paulmcwhorter
@paulmcwhorter 10 ай бұрын
LEGEND!
@alexnaglich
@alexnaglich 2 жыл бұрын
Made it to episode 60! Excellent lessons, Paul. You are wonderful, you've taught me an amazing life still in a week.
@mohsenr4434
@mohsenr4434 2 жыл бұрын
Honestly I got a bit lazy and skipped my homework here because I knew exactly how to do it so I just watched the tutorial to make sure I'm not missing out on any new tips. Thank you.
@batticha462
@batticha462 4 жыл бұрын
For more accurate measument we can use the HC-SR05 and to calculate the sound speed related to temperature and humidity
@pointer333
@pointer333 2 жыл бұрын
Before the pushbutton homework, I did this with the DHT! Except I read from a trusted source that humidity has a negligible effect, so used only temp in speed of sound equation.
@DirkSimilon1
@DirkSimilon1 3 жыл бұрын
Wonderful feeling that all the things I learned, suddenly fit in together. At the start I feared the homework-tasks, now I'm looking forward to them. Allthough this one was a hard one, especially because my laptop sometimes does 'weird' things with the Com-ports... Thank you very much,Paul
@keyboardlearning7552
@keyboardlearning7552 2 жыл бұрын
I remembered the hack of using the inbuilt Pull-Up resistor, and used Digital pin 6. Thanks for reminding me to add instructions. I used "Push Btn 2 read", and then, when the button was pressed immediately cleared the display, a an acknowledgement. For the homework, I'm planning on taking 5 readings of distance; Checking for outliers and then averaging the remaining readings. (If I'm left with fewer that 3 readings, I'll have a second go at getting 5 distances. Great video. Many thanks.
@charlielowell4077
@charlielowell4077 2 жыл бұрын
I AM LEGEND! Homework was a piece of cake! Connected at pin 5, used two additional wires with the switch and (total) seven additional lines of code. Made me think a little though and thanks again for that. This old bean needs all the exercise we can put it through. :-) EDIT: Added two more lines to include "Position Target" on cleared display while waiting for button press. I inserted my initial comment at the beginning of this lesson.
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Fantastic!
@timjpyne
@timjpyne 3 жыл бұрын
Hi Paul, I am legend. I used a I2C modulo to connect my lcd screen, so I only used A4 and A5 pins for the communications. It has constantly amazed me how quick I have learnt how to program the Arduino. By watching your channel. Before I found your channel, I thought I would never master it. I have even adapted the program so I can measure in metric or imperial (I am from the UK). Also, if you use pinMode (buttonPin, INPUT_PULLUP); it will use internal resister and save a line of code. Thanks for great informative channel. Tim
@pointer333
@pointer333 2 жыл бұрын
Your last statement intrigued me. What is the purpose of saving a line of code in an internal resistor? Also, how the heck does a simple resistor store a line of code?! 😄 Or is the resistor providing the load needed for that to happen somehow? I'll have to look into the I2C module you speak of... I had the thought that maybe I could use a serial to parallel converter to do this (I know next to nothing at this point), but it sounds like I2C is purpose built and there's an Arduino library for it.
@Yousif_Maksabo
@Yousif_Maksabo 11 ай бұрын
I had the I2C module too which saved me from the real pain lol
@destinyokwong2099
@destinyokwong2099 27 күн бұрын
good to know about this method
@destinyokwong2099
@destinyokwong2099 27 күн бұрын
@@pointer333 i think what he meant was that setting that pin as INPUT_PULLUP will eliminate the need to digitalWrite to the input pin(buttonPin).
@adamcurtice3584
@adamcurtice3584 2 жыл бұрын
I am legend. I got my go Button to work by utilizing the Serial Monitor. Through its use I figured out I was only getting 1 button read. Once I embedded another button read inside my while loop the button setup worked perfectly. I have managed to complete all my homework assignments to this point. Thanks for the wonderful learning experience.
@adriangabris413
@adriangabris413 3 жыл бұрын
Thank you paul. Without a doubt, you are the best teacher that I have ever encountered. I am really happy that I've discovered your channel, It's a gold mine for information
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
Wow, thank you!
@Hino_55
@Hino_55 4 жыл бұрын
I am Legend. I did the Go Button using your older method Sir Paul. I did it using comparing the button states...i.e. buttonValOld and buttonValNew. Thank you for this lesson Sir Paul!
@sssagc
@sssagc 3 жыл бұрын
OK I am legend. Its one of the most easy of assignments done as it was just an extension to the earlier homework of adding an LCD to read out the distance in cm and inches. Added an "IF" condition to detect a LOW from the push button ( which is held HIGH in Void Setup to act as a current limiter ) which then begins the cycle of measuring the distance and outputs the results to the LCD. By disabling a lcd.clear() statement at the bottom of the code from the previous assignment, the LCD retains the data when the finger is lifted of the button switch. Now ... to watch the rest of this video ...
@kevhopkins984
@kevhopkins984 4 жыл бұрын
Managed most of the homework, enjoyable tutorial. Answer to your question: shorten the pulse time on the HC-SR04.
@jefftech8497
@jefftech8497 Жыл бұрын
I am leg....so close! I danced around with researching the code, saw an example of this but discarded it. I had everything but the right while statement. Thanks Paul!
@steamarduino4942
@steamarduino4942 4 жыл бұрын
I am Legend. I rearranged the pins and used D2 for the pushbutton - no need to use the analog inputs. I also used if else rather than while to trigger the pushbutton. Keep up the good work, Paul! I have a miserable record with completing MOOC courses, but I'm proud to be at Tutorial 60 and going strong.
@franciscoserafim7793
@franciscoserafim7793 2 жыл бұрын
I arrived late to this tutorials but it´s has been a pleasure to follow your teaching abbility. I´m also a teacher (physic and chemistry). In this particular video i stopped at 1´43´´ to write that "I am a legend". I used a Button Pull Up Pin and then I put all the code for the lcd and the HC SR04 inside a while cycle that only works when ButtonValue is 0. Many thanks.
@frang342
@frang342 Жыл бұрын
Hey paul, I just finished lession 60 and I'm walking around with my portable distance sensor measuring everything. This is really cool,it feels great to see it all come together and work like its supposed to.I have started with your tutorials from number 1 till now and have learned a lot. I am now able to set up my programs and test all the different sensors i own along with a lcd to see everything come alive on the screen. It's been a wonderful experience. Thankyou Paul for taking the time and having the patients to show us how its done.
@paulmcwhorter
@paulmcwhorter Жыл бұрын
Excellent!
@erikburman530
@erikburman530 2 жыл бұрын
I did it! Now I'm finding that I don't have to go back to old lessons to remember how to get things done. My memory was a bit fuzzy on the push button process but because you showed us in detail how to read pushbuttons I remembered the theory and was able to reason it out on my own. Fantastic!
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Wonderful!
@michaeldalfonzo3912
@michaeldalfonzo3912 3 жыл бұрын
I did complete it and got it working just fine. This was a pretty easy assignment. Really enjoying these lessons.
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
Great job!
@jimlabissonniere7400
@jimlabissonniere7400 4 жыл бұрын
I am legend.....took a couple of hours, then I realized I couldn't use D13 , but I got there.....great project, Thanks Paul!
@ABSP5766
@ABSP5766 4 жыл бұрын
I am legend! I used an if statement instead of the while, but the rest was very similar. Paul, I am totally hooked on your course. As a matter of fact, I need to do something else, and every day I promise to myself to follow only one of your tutorials, but I end up doing three or four, or even five, a day.
@electronichome1153
@electronichome1153 2 жыл бұрын
Looks like you have plenty of time... Congratulations!
@amayerstatue
@amayerstatue Жыл бұрын
I am legend! I also attached the temperature sensor and a button that switches the data displayed. Thank you for these tutorials!
@cbrombaugh
@cbrombaugh 3 жыл бұрын
I am legend. I used pin 13 on my Mega 2560 with no problem. Maybe I was lucky that it works? Along with many others, I am still enjoying your most excellent Arduino lessons. They are great at any price, but free is spectacular.
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
Good to hear
@richardalexander633
@richardalexander633 2 жыл бұрын
Hi Paul, I am legend. I achieved the homework and understand the code and the components all from the ground up thanks to you. So, Paul McWhorter you are legend too..... Thank you so much for making this series of tutorials and for all you have taught me so far.
@justmc62
@justmc62 Жыл бұрын
Legend- Got the homework done very close to your solution. Used an If & Else statement vs a While one. Also used an Analog pin that according to the Nano documentation will work as a Digital pin via the INPUT_PULLUP pinMode command. Thanks again for another fabulous lesson.
@paulmcwhorter
@paulmcwhorter Жыл бұрын
LEGEND!
@aaronmilliman7685
@aaronmilliman7685 2 жыл бұрын
Almost pulled ahead on this class but pumped my breaks and finished nicely. Thanks for another great video.
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Great job!
@leebasham1107
@leebasham1107 3 ай бұрын
Hi Paul, I am Legend, I did this on my own, I thought about it and realised that i can add the switch, one pin to ground the other to pin8 (butPin) and using pinMode( butPin, INPUT_PULLUP); I could control the LCD display with an if (bitVal==0) . this along with an I2C LCD I usd the lcd.noBacklight() command to turn off the backlight before the if statement then lcd.backllight() turns it on and with a 5 sec delay you have enough time to get a reading. If i want to reduce the power consumption of my PP3 battery i could also use the lcd.noDisplay() and lcd.display() to turn off the actual readings although i suspect that the backlight draws the major amount of the current. Your videos are superb, your teaching style is excellent, I have learnt so much from this series and look forward to each lesson. chers Lee
@Hemangsk
@Hemangsk 3 жыл бұрын
Figured it out! I find myself going back to push button video where you show the simplest way to use a push button. One of these days I'm finally going to be able to keep that technique in back of my head.
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
Excellent!
@glennlindstrom9080
@glennlindstrom9080 4 жыл бұрын
The assignement forced us to think for ourselves and after some headscratching my friend and I solved the problem, so we are Legend.
@davebroster5560
@davebroster5560 2 жыл бұрын
I am legend. Ran out of space on the breadboard for the switch due to the Power Supply module. However I had a small piece of breadboard supplied in of the the kits I bought, so just mounted the switch on that. Worked a treat. Going to get one of those USB power packs to free up some space on the main breadboard. Having watched your explanation I wonder if I've missed something. I'm using a nano and have Pins 4-9 for the LCD, Pins 11 and 12 for the Sensor, which still leaves 2,3 and 10 free, so I just used Pin2 for the switch.
@williamwachter3279
@williamwachter3279 Жыл бұрын
Thanks, Paul! Each lesson builds on previous lessons to give us a repretoire!
@Szienz
@Szienz 4 жыл бұрын
did not make it entirely on my own, but close enough then needed the video in the end to trap the code error. Good training as always!
@lorisrobots
@lorisrobots 2 жыл бұрын
I am legend! It was fun to share this project with my family. Now to see how you approached it. I didn't have an issue with pin 13 since I used the LCD with the I2C backpack.
@andywylie287
@andywylie287 3 жыл бұрын
Giddy UP! Another finest quality, informative, expert tutorial from the most excellent educator, Paul McWhorter. I am really enjoying this journey. Thank you so much.
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
Glad to help
@terrymurphy565
@terrymurphy565 4 жыл бұрын
I am Legend. I actually wired up both the DHT11 and HC SR04 and added 3 buttons, one for each reading(Temp, Humidity, Distance) I had to use the UNO though, not enough PINs on the Nano. Thanks for another great lesson.
@terrymurphy565
@terrymurphy565 4 жыл бұрын
Now I know I could have used the analog pins, guess the Nano would have worked.
@eladioh3858
@eladioh3858 3 жыл бұрын
I am Legend ! I also added a Laser sensor as a pointer on one of the pins , makes it a bit more interesting ! thank you so much Paul !!! Another great lesson !!!!
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
Nice work!
@jerrypeng8215
@jerrypeng8215 3 жыл бұрын
Thank you, Paul. I use the joystick(button)+lcd1602+HC-SR05 to achieve the function. Your tutorial helps me a lot.
@CarolinaDGF
@CarolinaDGF 3 жыл бұрын
I am Legend. I love how the lessons build on each other.
@sammysam1503
@sammysam1503 4 жыл бұрын
I am legend! I love your videos! They are so amazing! Ordered a raspberry pi and a car kit so that I can do your other tutorials! Its gonna be a long time until I leave your channel, and I hope that time is well spent! Also, I really love your bible boy channel, its very good!
@rickgrear8270
@rickgrear8270 2 жыл бұрын
I am legend. I connected two breadboards to fit everything for this. Thanks!
@marvinmeng7213
@marvinmeng7213 3 жыл бұрын
I am legend! I had incorporated a button after the last video that changed the units between meters and centimeters, so I just adapted the code from that!
@patkeller2617
@patkeller2617 Жыл бұрын
Yes, Mission completed! Key was to refer back to tutorials 27-29 and create a button push loop that only triggered on change of state of the button and then only did the measurement when that change of state was to the closed position.
@Cartoonen
@Cartoonen 2 жыл бұрын
I'm legend. But I did use an OLED (SSD1306, I2C) and the Micro Arduino, so I did not experience any trouble with the digital ports. (no number 13 on Micro). Thank You for your fab lessons. Regards from Denmark.
@RavensHammer00
@RavensHammer00 10 ай бұрын
I am Legend. Thanks, Paul! Okay, finished watching, going to go do my homework. This is probably going to hurt. Increasing precision with speed of sound...I think I know where to start.
@paulmcwhorter
@paulmcwhorter 10 ай бұрын
LEGEND!
@johntello8904
@johntello8904 3 жыл бұрын
I am legend!!! This was tricky to get it to work properly...but I managed to complete the homework beforehand!
@thomasmaxwell4396
@thomasmaxwell4396 2 жыл бұрын
I am legend :-) I used A2 since it was closer to the button, I hadn't thought of 13 at all - something to think about for the future. As for the homework, you don't differentiate between a hardware or software solution, or whether we can use an avg of 10 reads, or if we need to make it more accurate with a single read. Easiest solution is 10 reads and take the avg of that.
@hughpatterson1480
@hughpatterson1480 3 жыл бұрын
I am legend, except I am exhausted from trying to solve the pin problem. I thought pin 13 might be a problem due to it's connection to the built in LED, but I tried it on the chance that I was wrong. It was an epic fail (one for the history books of nerd lore). I worked through the logic of using an analog pin and success. Thanks again for another fantastic lesson Paul!
@farshidowrang2762
@farshidowrang2762 2 жыл бұрын
Takk!
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Once again, Really appreciate it!
@dalecapling5153
@dalecapling5153 3 жыл бұрын
I AM LEGEND! I used PIN D3 for the switch input and Pin D2 for Trigger and Pin D4 for Echo. I also used "IF" commands with the same result.
@dougrichardson9469
@dougrichardson9469 2 жыл бұрын
Thank You For Posting These Very Helpful😀 Lessons
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Glad you like them!
@wick6296
@wick6296 4 жыл бұрын
Hello Mister Paul ! Thank you for all these videos you're making for us, for free ! You have my gratitude, and of course the like button pressed !
@caltech-wirewizard
@caltech-wirewizard 2 жыл бұрын
"I am legend". I had a brain fart on the "pull-up" resistor for some reason. My code was "dead-on ... perfect" right from the get-go. I found the wiring "error of my ways" then "BOOM", worked perfect ! I had Digital Pin2 (D2) available for the "pull-up" side and didn't have to resort to Pin13 or any Analog Pins on my Nano (Which I bought from Paul's provided link).
@hasan-motam
@hasan-motam 2 жыл бұрын
I am legend! Did it on my own after some software troubleshooting.
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
LEGEND!
@nicholasesposito1212
@nicholasesposito1212 4 жыл бұрын
I was able to do it on my own though i did use some past videos to refresh certain topics . I also saw that the next video was to add a go button so i added that in too . Thanks for the great tutorials!!
@jansimurda9998
@jansimurda9998 4 жыл бұрын
I did my homework and it didn' t take me a long. But, I've got great teacher. Thank you Paul
@snehashishbanerjee2575
@snehashishbanerjee2575 4 жыл бұрын
Can't appreciate enough... Another excellent project. Your neat and clean building approach turns electronic circuits into like a beautiful Artwork! Hope to see you on lesson no. 61 soon...!!!
@vincecouldrey2370
@vincecouldrey2370 3 жыл бұрын
I am legend. Excellent videos Paul. New to Arduino and I have worked through this series of tutorials. learned a great deal. Thank you for your work in creating this videos. From over the pond
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
Great to hear!
@purvagn
@purvagn 4 жыл бұрын
We are your students and we are legends! :) luckily we are still using Uno so didn't run out of the pins.
@florianverbruggen4434
@florianverbruggen4434 4 жыл бұрын
Sir, you are the reason, why i like Arduino. And i'm legend
@destinyokwong2099
@destinyokwong2099 26 күн бұрын
sir, the way you did it has made me to take note of formatting
@paulmcwhorter
@paulmcwhorter 26 күн бұрын
Glad I could help!
@corneliuschamberlainmarcou6127
@corneliuschamberlainmarcou6127 Жыл бұрын
Mr.Paul, you are a Legend.✊🙌
@matthewclarke5169
@matthewclarke5169 4 жыл бұрын
I am Lengend, I loved this homework, the maths isn't my strong point, however, the coding and fault finding are loads of fun. even managed to hook the backlight up the the button function.
@johnmorris3898
@johnmorris3898 4 жыл бұрын
Thanks again Paul for your excellent tutorials. Didn't put the second read button in the while loop so got nothing as you stated. I thought about it and changed it to an if loop but with buttonVal==0 and put the whole measure calculate print delay and clear inside the if loop. It worked so I was feeling smug. I think the while loop is more elegant though, less smug now.
@JimPeugh
@JimPeugh 9 ай бұрын
I am Legend! Got it by referring to my previous completed projects. Adding switch straightforward.
@paulmcwhorter
@paulmcwhorter 9 ай бұрын
LEGEND!
@ShinesMonkey1
@ShinesMonkey1 4 жыл бұрын
I am legend!! (after finally figuring out how to set up the while statement - it finally dawned on me that I did not need to make an additional statement on when buttonVal=0).
@wallaceshackleton1889
@wallaceshackleton1889 4 жыл бұрын
Mine works in a kind of fashion, the measurement delay is erratic but the principle works so I'm happy.
@MrSt3v3Solo
@MrSt3v3Solo 8 ай бұрын
I am legend :D Thanks Paul for your lessons!!!! Using them for Home Education for my 13 year old daughter. Plus I am learning, amazing lessons!
@paulmcwhorter
@paulmcwhorter 8 ай бұрын
LEGEND!
@varunnova5905
@varunnova5905 3 жыл бұрын
I am a legend, I added a reset button too, it clears the screen, was pretty helpful!
@stevenog
@stevenog 2 жыл бұрын
Did the homework before watching this lesson. Used D3 for the button.
@michaelcostello6991
@michaelcostello6991 4 жыл бұрын
Really interesting seeing how the while loop stops the program so easily. thanks
@dplighting
@dplighting 4 жыл бұрын
D13 seems to work ok with an external resistor, i did wonder why pin 13 would not pull up via code, thanks for the tip!! Another great lesson thanks Paul!!
@ujjawalgupta9221
@ujjawalgupta9221 Жыл бұрын
I am LEGEND!! Thank you sir for all your lectures.
@tanvirahmed8586
@tanvirahmed8586 3 жыл бұрын
I completed the homework. I'm a legend.
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
LEGEND!
@willemwieriks4053
@willemwieriks4053 3 жыл бұрын
Boom, Homework done and I succeeded. Thanx Paul!
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
Great job!
@niteshram1578
@niteshram1578 Жыл бұрын
Couldn't be able to do by myself.....but u r the "LEGEND..!!!!"
@paulmcwhorter
@paulmcwhorter Жыл бұрын
LEGEND!
@petrusjohannesrautenbach382
@petrusjohannesrautenbach382 3 жыл бұрын
"I am legend!" but only because of a good teacher!!!!!
@alexm.4720
@alexm.4720 2 жыл бұрын
*edit 2 Looks like i already have the assignment done for next Lesson 61 :D . Thanks for this amazing Arduino Series. I have learned so much and i am excited to see what we will be learning next! *edit 2:49 how did you use up all your digital pins with only the LCD and the Ultrasonic sensor if the LCD only uses 6 pins and the Ultrasonic sensor uses 2 pins. Thats 8 pins total..?? I had enough pins left to also connect the DHT11 sensor and TWO buttons and still had pin 13 available. XD I am legend! I even went ahead and added a for loop inside the if statement so when i pressed the button it would make 10 distance readings with a delay of 25ms each and calculate the average distance. With this i am getting more accurate readings.
@matthewcollins1858
@matthewcollins1858 Жыл бұрын
Present. I am legend. Didn't have any issues with not enough pins, did have an issue with every time I pressed the button it would turn everything off, figured since electricity flows like water it was shorting itself out. Solved it by placing a resistor between the power supply and the button.
@paulmcwhorter
@paulmcwhorter Жыл бұрын
LEGEND!
@muhammaddanial50
@muhammaddanial50 4 жыл бұрын
Boom it worked another super cool lesson
@minhtam5051
@minhtam5051 4 жыл бұрын
Hi Paul. I did the homework with 2 buttons.
@kuravani1963
@kuravani1963 4 жыл бұрын
Thank a lot Sorry i could not do the homework due to tis lockdown in Maldives ,Still waiting for my Arduino nano and Jumper wire and bread board. but i'm taking your lessons very seriously.
@jasonvictor9542
@jasonvictor9542 Жыл бұрын
Thanks Paul, another great lesson, i like this perfecting looks and acts alot better!
@bassome3000ify
@bassome3000ify 4 жыл бұрын
Thank u paul for all ur shared experience and knowlesge, not just arduino , but also the other stuff like wind and many others. u helped many to learn a lot :D
@freddyveza
@freddyveza Жыл бұрын
I am legend! Using a Uno, a push button, an HC SR-04, an I2C LCD and a potentiometer for screen brightness, all hocked up to a 170 point breadboard with a bunch of jumper cables in between, my build is so ugly, love it
@paulmcwhorter
@paulmcwhorter Жыл бұрын
LEGEND!
@Jason-ot6jv
@Jason-ot6jv 4 жыл бұрын
I finally caught up to your most latest video, im so excited for the new one! I am legend!
@josemunoz629
@josemunoz629 4 жыл бұрын
same here!!
@jabber2824
@jabber2824 7 ай бұрын
I AM LEGEND. I didn’t encounter the problem with the pin since I changed the LCD to an I2C controlled OLED which only needs 2pins (A4 and A5). But, I suddenly had issues running on the usb port where the void loop () would only run once and the arduino nano would then stop. Looks like it’s related to a bad cable or connector. Running from a 9v battery and the power regulator is fine.
@pudgepatenaude3481
@pudgepatenaude3481 3 жыл бұрын
Homework done, I am legend in my own mind.
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
If you are on lesson 60, you are LEGEND indeed!
@MSMEHYDRO
@MSMEHYDRO 4 жыл бұрын
Good stuff Paul. Hope all is well!
@tntragan
@tntragan 2 жыл бұрын
I did the homework again with success, however, I did not have a prompt asking for user action. I just did mine with an if loop and a delay. It worked well. Since I haven't purchased the nano yet, I had plenty of space on my arduino. No wires were covering my open pins of 4, 5, and 6 and I plugged in there for my pullup resistor button. I'm curious why you don't use the INPUT_PULLUP command in the setup instead of the two lines you use. Maybe your trying to get people to see what they are doing by using both commands? I am still following your channel every day. I try to get at least a couple lessons in every evening. Thank you for all the work you are putting into these vids. They are helping me immensely and I really appreciate it.
@loat5505
@loat5505 4 жыл бұрын
Great work Paul, I would have no idea what to do if it wasn’t for u ❤️
@GabesvanBlerk
@GabesvanBlerk 7 ай бұрын
I am legend . Tanks Paul love your vidoes!
@SC-ys5re
@SC-ys5re 2 жыл бұрын
I am legend😄. Thank you for this amazing tutorial🤗🤗
@roxleyldc
@roxleyldc 3 жыл бұрын
Paul and anyone else, I found the problem! The board selection was on the wrong device. Thank you, all set.
@caripatd232441
@caripatd232441 4 жыл бұрын
I' M A L E G E N D. Thanks Professor McWhoter. Really good lesson. I figure out the pin 13 problem. Was a good challange
@mun5660
@mun5660 3 жыл бұрын
I was able to do it...it was pretty easy tbh. Thank you sir!
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
Excellent!
@killianbuenst9154
@killianbuenst9154 4 жыл бұрын
Please, be my personal hero and make a html serie of tutorials
@thusharabro9349
@thusharabro9349 4 жыл бұрын
AWESOME TUTORIAL please do a midi drum kit tutorial that can work with PC software. like FL Studio.... you are the best electronic teacher that I've ever seen ALL THE BEST!!!!!!!
@paulrockwell9914
@paulrockwell9914 3 жыл бұрын
Got it working as homework! My LCD display text wasn't as elegant as yours though. Also did a little C++ extra-curricular learning to abstract a button into its own object class (and have it work the same regardless of whether I use a pull-up or pull-down resistor);
@A.Qalawi
@A.Qalawi 22 күн бұрын
great lesson! for the next hw i would make it fire 5 times, and then print the avr of the 5 times ... could work..
@Vbeck56
@Vbeck56 3 жыл бұрын
I had the Pin13 issues, but the way I solved it was by using a OLED screen with an I2C four wire connection... took a but of tweaking to work out the code. also I used an If statement....it did work as well as yours but after seeing you use a while loop i changed it and it works much better. I am currently working on scrolling text. I don't want to copy and paste, I'm trying to figure what commands control it so i can fully understand the coding and properties.
Arduino Tutorial 61: Improving Precision of Your Distance Measurements
27:42
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
I tried the Cheapest Arduino Alternative (that Nobody heard of)
13:31
Arduino Tutorial 31: Using Servo in a Simple Project
37:51
Paul McWhorter
Рет қаралды 143 М.
How to Use Arduino Interrupts The Easy Way
33:28
Rachel De Barros
Рет қаралды 94 М.
Arduino Tutorial 38: Using a Tilt Switch Cut Off With a DC Motor
17:28
How does a USB keyboard work?
34:15
Ben Eater
Рет қаралды 3,3 МЛН
How to use rotary encoders
14:12
FriendlyWire
Рет қаралды 44 М.
How to Control Stepper Motors with Arduino using a GRBL CNC Shield!
8:55