No video

Arduino Tutorial 36: Understanding How to Use Tilt Switches in Your Projects

  Рет қаралды 92,327

Paul McWhorter

Paul McWhorter

Күн бұрын

Пікірлер: 1 800
@brankostrbac5931
@brankostrbac5931 5 ай бұрын
I am electrical engineer, this is the best tutorials I have ever seen!
@ayratkutlushin5252
@ayratkutlushin5252 4 жыл бұрын
String birthday = "Happy Birthday!"; String granddaughter = "Gabriella"; void setup { serial.begin (9600); } void loop { if (11/12 = your birthday && granddaughter=coming home) { serial.print(birthday); serial.print("clue word"); serial.println(granddaughter); }
@AhmedMohammed-kz6ej
@AhmedMohammed-kz6ej 4 жыл бұрын
hahahah this is so cute
@Vivalavidapool
@Vivalavidapool 3 жыл бұрын
haha, I second that! Great video!
@ac8228
@ac8228 3 жыл бұрын
That's wrong, it should be == because it's conditional
@terrymiller1600
@terrymiller1600 3 жыл бұрын
Paul, I also am an Engineer but, I went to school in the age of vacuum tubes. I was the RTU Engineer at my local electric utility. Your videos are very professional informative. I do watch every lesson to the end. I also spent 7 years in the Ivory Coast as a Peace Corps volunteer. Thanks for the wonderful classes. I do really appreciate the insight. BTW, Happy Birthday and enjoy your time with Gabrella.
@abdulfx5030
@abdulfx5030 9 күн бұрын
GABRIELLA! Thank you engineer. I have an electronics engineering degree. Thank you for giving this free tutorial. It was one of the best tutorials I've watched.
@Chris_Bro_aka_MR_PLAT1NEM
@Chris_Bro_aka_MR_PLAT1NEM 3 жыл бұрын
GABRIELLA! I'm currently on day 3 of going through these tutorials and I have done them all the way through including the homework in between. This stuff works!
@FEDERICO-tc3wn
@FEDERICO-tc3wn 2 жыл бұрын
Gabriella!
@dema3619
@dema3619 2 жыл бұрын
you are incredible fast! congratulations, you are a really fast
@billlaird7332
@billlaird7332 11 ай бұрын
GABRIELLA! I'm watching all of your Arduino tutorial videos in order and always to the end. I don't do every assignment, but when learning a new important point, I do the assignment to reinforce the learning. You are a Master Teacher and your teaching style is the best I have ever experienced. I have completely understood every lesson. I especially like the in depth explanations of the combination of software, hardware, and physics. Well done, sir.
@sumantakumardutta986
@sumantakumardutta986 11 ай бұрын
Done the assignment by myself after pausing the video. Got it right in the first shot itself. Really had fun!!!😃😃😄
@Rorschachcollision
@Rorschachcollision 9 ай бұрын
I am a programmer and engineer, so have very little patience for these things - but the wife had to point out that you and I are both Scorpios. So happy birthday, great teacher, and know that I will follow your tutorials always to the end, with coffee in hand.
@MrSylsound
@MrSylsound 3 жыл бұрын
"Gabriella !" Awesome videos by the way! After only a few days of owning the Elegoo kit, I made it to lesson 36 and was able to do the homework, and it worked! I'm super happy :) Thank you!
@kaindradjoemena7789
@kaindradjoemena7789 3 жыл бұрын
Awwww Gabriella looks cute Happy birthday Paul! I just made a robot the other day that follows light. Nope, I did not copy anyone’s code. I did it myself. Thank you
@bilbo593
@bilbo593 4 ай бұрын
I am a retired Electronic Repair and did my course back the 70's with AWA Corp and Industrial Electronics . I am enjoying keeping my mind active and re learning things. I closed down my Repair Business back in 2008 and since then I have lost touched with everything electronics and all the latest innovations. Gabriella was happy to catch the plane to come and see you. And a very Happy Birthday!!
@alecgriffiths790
@alecgriffiths790 8 ай бұрын
Gabriella! And yes, I was able to figure out how to set up and program the LEDs with the tilt switch without having to simply copy what you were doing... for once, haha! Hopefully that means I'm finally figuring this stuff out. This was a great tutorial, and I'm looking forward to watching the next one.
@tonygolden8622
@tonygolden8622 2 жыл бұрын
Hello again Paul. Now that I have completed the project and watched the end of the lecture it is time to mention Gabriella. I have watched all of your videos, some more than once. I have completed all the projects, got many of them right, made mistakes on others, but learned something and had fun with all of them. I see that you have many other courses, enough to keep me busy for a long time. It is hard to imagine all the work it took to produce them. I really like the spontaneous feel, like one is working along with you at the same time, and your sense of humor is spectacular. Now on to lesson 38, 39, ……. Tony
@MajdMazin
@MajdMazin 4 жыл бұрын
Gabriella. I have been watching till the end every single one since the beginning. You have been a godsend good sir. I highly appreciate all the effort you put into these tutorials, it is not lost on us. You are a truly exceptional teacher and a delight to watch and learn from.
@banyincam
@banyincam 3 ай бұрын
I showed my son the green on tilt red project and he was amazed. I explained that it was as simple as two connections and a little ball. I even unplugged it and rattled the ball inside. He then suggested a magnet and sure enough, the magnet doesn't even have to touch it. It simply gets close and the lights change color. Gabriella!
@emiliomartineziii2980
@emiliomartineziii2980 Жыл бұрын
At the start of the video I paused and built the entire thing and got it to work by myself!
@johnmills353
@johnmills353 4 жыл бұрын
Hi Paul, Gabriella !! Following your whole series of newer Arduino tutorials, just finished No 36 (tilt Switch). I always watch them to the end, I have about a 50% success rate with the assignments. You have got the mix of practical and theory just about right in my opinion.
@cmartin6126
@cmartin6126 2 жыл бұрын
Hey Mr.Paul! Another glorious video tutorial. I am very grateful for the hard work that you put into these amazing tutorials. Keep up the good work! Gabriella looks excited! -STILL not Carole, just her son.
@JohnyRalte
@JohnyRalte 2 жыл бұрын
Gabriellaaaa!!! Not only did I watch all your videos from start to end, I have watched some videos twice. You are a good teacher.
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Thank you so much!!
@muhammadrafiqulislamkhan6994
@muhammadrafiqulislamkhan6994 2 жыл бұрын
Happy Birthday. God bless Gavrialla. I do not know how many times I watch your video to understand your project. Every time a new thing comes out to me. Your debugging process is wonderful. It helps students where they are made mistake. Today I learn why I put TiltVal in place of TiltPin into serial.println because we already have tiltPin=2. I know it easy for everyone to undetstand but it is really difficult in past to me but today my legendary teacher Paul all clear to me. Thanks for everything Paul. God bless you.
@soup2ru433
@soup2ru433 3 жыл бұрын
Really wish I had you as a teacher when i was in school, I might have just paid more attention.
@yasins8713
@yasins8713 4 жыл бұрын
i figured out the error and homework by myself, i also used the mini breadboard for the tilt switch so i could move it with out reducing the visibility of the leds. gravrela
@tonygolden8622
@tonygolden8622 2 жыл бұрын
Hi Paul. I’m just another old dog trying to learn some new tricks. You are a great teacher. Thanks for your generosity of spirit.
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Glad to help
@satisfactoyz
@satisfactoyz 3 жыл бұрын
Today's homework was much easier to complete without instruction. And it was your birthday! Lucky man to have such a beautiful grand-daughter! Thanks for another great lesson.
@johnmichaeljones2600
@johnmichaeljones2600 4 жыл бұрын
Belated “Happy Birthday”! Another great tutorial. Gabriella.
@delroybarnes2041
@delroybarnes2041 4 жыл бұрын
Made it to the end ans saw "Gabriella"; see much more than 3 minutes worth.
@agonslay9173
@agonslay9173 Жыл бұрын
3 years late but Happy Birthday!! Also Gabriella looks like an angel. I thing you are the sweetest and coolest grandpa that everybody would want
@timothyflanagan7775
@timothyflanagan7775 2 жыл бұрын
All the info you put into your videos; does NOT go to waste with this student
@TheUnofficialMaker
@TheUnofficialMaker 4 жыл бұрын
i use this tilt switch with a 555 timer to light an led and installed in a house shoe so I can see at night if I have to get up.
@musicalhamsa5892
@musicalhamsa5892 4 жыл бұрын
the 3 dislikes are the people who dont like coding
@geraldinecommowick
@geraldinecommowick 3 жыл бұрын
What is there to dislike? I don't get it.
@benthompson6118
@benthompson6118 Жыл бұрын
Gabriella. I recommend all of your video tutorials to anyone who asks me where to learn arduino, pi, fusion360, or python.
@rodchristen2705
@rodchristen2705 Жыл бұрын
I watched to the end and did my own coding!! Thanks for your help. I hope you had a great time with Gabriella as she was coming to see you. Grandkids are great!!!!!
@dannycollins5698
@dannycollins5698 Жыл бұрын
This was fun. I taught this to my 4 boys and wife. It was fun letting them hold the tilt switch. I asked them what they felt. It was fun to see them enjoy learning. 4, 6, 8, and 10 are the ages of my boys. This is so wonderful to take the code and to the physical world. It is fun thinking about what projects we can do with all that you have taught me. My boys have ideas of what we can do together. Look forward to paying it forward to my boys and may a school someday! We started with an experiment from the Feynman Physics lectures/exercises this morning and then did this. Wow -- how blessed I am to study Physics with Feynman and Computer Science with you Mr. McWhorter!!!
@paulmcwhorter
@paulmcwhorter Жыл бұрын
Great that you are making this investment in your boys. Well done!
@eddiedunseath9063
@eddiedunseath9063 Жыл бұрын
I also used else instead of 2 if's on this. I jump back into your lessons to check things as I'm doing my homework (sometimes for only a few minutes, as you say), because I started your most excellent tutorials only 2 months ago, following my 80th birthday Arduino gift, and my brain velocity is much lower than it was 60 years ago! Also in this project i stuck my tilt switch to my stepper motor cardboard arrow (motor fixed vertically), connected using a pair of female/male wires. It switches the red/green LED's, but also controls the stepper motor direction, clock/anticlockwise, like a wiper blade. Thanks for your really excellent lessons Mr Paul. I used to live in Addis Ababa, love Africa and its wonderful people! Hi Gabriella !!
@angusclarke8592
@angusclarke8592 2 жыл бұрын
Thanks, Paul. My Maths is actually non-existent so I'm very slow at working these things out. But trying a new thing in my late 60's gives me a new challenge in life. Welcome to Africa. I see you've now re-located. Very Brave at your age, but obviously Higher Hands are leading you. And Gabriella is a sweetie. So Cute.
@israelkolawole7144
@israelkolawole7144 Жыл бұрын
Hi Gabriella, Mr. Paul has taught me a lot and am very grateful so give him lots more applause
@diessos
@diessos 2 жыл бұрын
Gabriella..... took a few months off due to other commitments. But was able to easily do this on my own. Really like these videos. I am finally understanding how all this works.
@johnryall5711
@johnryall5711 3 жыл бұрын
Many Happy Returns Paul, made it to the end AND made it work! Granddaughters are precious, enjoy your time with Gabriella.
@joelmagana4227
@joelmagana4227 Ай бұрын
Funny enough, I wrote my own code before looking at yours, but neither mine nor your code seemed to work, so I was just about to get ready to take apart my circuit. Then I realized that I had never grounded my red LED. Now, it works like a charm!
@zachhamersley967
@zachhamersley967 3 жыл бұрын
Don't understand why people wouldn't finish the videos, but I like to understand how things work. Make it to the end every time, I thought that was the point. Did the homework on my own the same way you did, I think I'm starting to get this stuff. "Gabriella". Thanks for the videos Paul!
@victorlove3558
@victorlove3558 2 жыл бұрын
Gabriella, I am very appreciative of your easy to follow and understand lessons. I'm in my seventies and doing Arduino for the first time.
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Wonderful!
@kirstinlee6838
@kirstinlee6838 6 ай бұрын
Happy birthday! Your granddaughter Gabriella is adorable! I was so excited to do the homework by myself. Thank you so much for these videos.
@gilnasty82
@gilnasty82 2 жыл бұрын
GABRIELLA is precious!! Truly a gift from God!! :-) I can't believe average view time of your videos is only 3 minutes!! WOW!! I find myself anxious for more!! Can't wait to start the next lesson! HAPPY BIRTHDAY PAUL!! (late by a few years sorry)
@Mr_Jonathan_Greer
@Mr_Jonathan_Greer 16 күн бұрын
I really like the homework. It forces me to recall things that I have learned and figure it out on my own. I really enjoy the way you do these lessons! Great work!
@digitaldoubter
@digitaldoubter 5 ай бұрын
Gabriella!! I'm a computer science student who has a passion for building things with my hands, your tutorials have been awesome and I'm really thankful for this series!
@aaronmilliman7685
@aaronmilliman7685 Жыл бұрын
Seeing the children healthy and Happy is the best birthday gift ever! Happy Birthday and Gabriella looks so happy.
@jaydusterhoff2795
@jaydusterhoff2795 2 жыл бұрын
Gavriella. Struggled with the homework for a bit until I realized I used the wrong brackets. Worked great after that lol. Happy very belated birthday Paul, hope you had a great day.
@amiamso
@amiamso 8 ай бұрын
GABRIELLA, I just want to say THANK YOU for all your videos. Yes, I watch them to the end, and then go back and pice-meal them into the code project i'm working on. Oh... and no, I don't do my homework. I take a coffe break with you. Thanks again for all that you do.
@dubrocadidier4583
@dubrocadidier4583 2 жыл бұрын
GAVRIELLA .... This Homework was cleared fast 😀 thanks Paul. I have been watching all your videos to the end. Most times I replay as many times as possible to understand the concepts. Especially the ''PUSH BUTTON AS TOGGLE'' lesson.😄
@CK-sv8fc
@CK-sv8fc 3 жыл бұрын
Happy Birthday Paul!! --Gabriella-- As soon as I heard "pause this video" I immediately went ahead and did the homework.
@MrBrentc74
@MrBrentc74 3 жыл бұрын
Gabriella looks like a bundle of joy! I saw the mistake as you were typing it. Still need to wrap my head around the toggle switch logic, but was able to do the homework just fine. Thanks for the effort you give in sharing this knowledge. We are truly blessed to be able to learn this because of beautiful people like yourself!
@daniel-yd7bq
@daniel-yd7bq 11 ай бұрын
Gabriella! You are the best teacher I have ever had, I'm glad you made this series
@paulmcwhorter
@paulmcwhorter 11 ай бұрын
Wow, thank you!
@daniellehwing4667
@daniellehwing4667 4 ай бұрын
Gramps Paul must be so proud!!
@HASANALI-wd1yl
@HASANALI-wd1yl 2 жыл бұрын
happy birthday Mr. McWhorter, you absolute legend!
@davidkeynton3402
@davidkeynton3402 3 жыл бұрын
Yes, I got to the end and completed the homework before watching how you did it. Am enjoying all your videos. Gabrielle.
@derekpalmquist594
@derekpalmquist594 Жыл бұрын
Gabriella! Was able to do the homework on my own. Just proof of how awesome of a teacher you are! Keep it up Paul!!
@paulmcwhorter
@paulmcwhorter Жыл бұрын
Great job!
@ABAT58
@ABAT58 2 жыл бұрын
Thank you very much, Paul. That is because you are printing the pin not the value you just read. Thank you for your trick. You are a wonderful instructor.
@jeffnixon8338
@jeffnixon8338 Ай бұрын
Gabriella. Love your explanation and coding, Paul. I’m Jeff from Australia
@thelocal911
@thelocal911 Жыл бұрын
I always do the homework Paul. And, you're right, it really does help. I coded mine to take three readings 500ms apart. You can shake it all day without triggering the red LED, but one second after it tips, boom. Red Light!
@hbar2028
@hbar2028 2 жыл бұрын
Gabriella. Been watching all your videos beginning to end at work on my breaks. Then when I have time at home, I redo them again step by step. Great videos sir! Learning so much.
@ErlankBru
@ErlankBru 3 ай бұрын
Thanks Paul, I enjoyed this project and watched until the end and was also able to program the homework myself. Gabriella looks very excited to go see her grandpa!😀
@lefterisdagkalakis3016
@lefterisdagkalakis3016 Жыл бұрын
Paul, I did the mistake of the equal, instead of the equal equal. I was breaking my head to understand why it wasnt working, and then I eventually understood it. I hope that eventually I learned it. GABRIELLAAA!!
@TheCourtoh
@TheCourtoh 2 жыл бұрын
Gavriella. I don't have a tilt switch in my kit but I am listening along to the video.
@user-ys6bc7yh7z
@user-ys6bc7yh7z 9 ай бұрын
Thank you for the great series! The deliberate mistake was that we were reading tiltPin, instead of tiltVal!
@charlesouma2803
@charlesouma2803 2 жыл бұрын
I was able to go back and finish the assignment on my own without watching the whole video. It worked, and now that i have watched to the end....Gabriella❤❤
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Excellent!
@Jobbe59
@Jobbe59 6 ай бұрын
Gabriella! I watch all your lessons to the end. Don't want to miss a second of them.
@alexguidi2345
@alexguidi2345 6 ай бұрын
Hi Gabriella, I actually did the project by myself before you gave the homework as when you started the video and showed the tilt switch and the two LED’s I knew exactly where this was going 😂
@user-po3zo6dj7b
@user-po3zo6dj7b 10 ай бұрын
"Gavriella". Off course I always follow your videos to the end. Well, I did my homework and I did it well after two mistakes ("Red" instead of 1, "Green" instead of 0). Always fun to follow your Lessons.
@josemurillo227
@josemurillo227 11 ай бұрын
Gabriella!! I am 3 years and change in the future wishing you a very late happy birthday PAUL! haha. Also, I was able to do the homework on my own the only thing different I just put the else statement instead of another if statement. Great video once again !!
@mystreteacher
@mystreteacher Жыл бұрын
Gabriella. Thanks for putting this series together. I'm an Assistive Technologist for students with disabilities and I'm just starting down the Auduino path so I can make more customized and sensitive switches for the students I work with.
@koomber777
@koomber777 2 ай бұрын
I'm happy to admit that going through these lessons that I have printed the pin rather than val many, MANY times.
@Zpheme12
@Zpheme12 26 күн бұрын
you are one of the greatest you tubers for electronics education. (Gabriela)
@jabber2824
@jabber2824 3 ай бұрын
Love this course! And yes did my homework and watch til the end. I bet Gabriella is having her own Arduino kit by now. Cheers!
@williamlemley4333
@williamlemley4333 9 ай бұрын
Gabriella, homework completed. Added a delay in the loop to avoid intermittent flickering in the closed position.
@sapphirereaper1252
@sapphirereaper1252 5 ай бұрын
Gabriella! and that's for every video so far. This series is absolutely brilliant!
@utahasweseeit
@utahasweseeit Жыл бұрын
I made it to the end and did the homework on my own. Gabriella. Grandchildren are the best.
@vincentgirard8045
@vincentgirard8045 3 жыл бұрын
This wasn't the first time that I have attempted the homework but it was the first time that I successfully completed it without having to cheat. Thank you for all your work.
@williamluety6430
@williamluety6430 2 жыл бұрын
This was a great problem which I solved with using Your Tutorials and, of course an Arduino kit. A motor driven arm rotate starting at -10 degrees all the way around 360 degrees to +10 degrees and then stop. Of course after it stops you will need to rotate it back to the -10 degree start position. Tilt switch are not used due to repeatability problems. We also couldn't use limit switches. If you would like to know my solution just ask. Only tutorials 1 thru 17 were needed.
@pudgepatenaude3481
@pudgepatenaude3481 3 жыл бұрын
Boom, homework done. Gabriella looks very happy to be coming to see you.
@noobcoderandmaker
@noobcoderandmaker 7 ай бұрын
I'm watching Paul!. Enjoying the series so far. I also made it to the end, as I have with all your videos.
@parulchhabra2939
@parulchhabra2939 2 жыл бұрын
Happy Birthday Mr Paul, seeing the video 2 years after you posted it and coincidentally on your birthday date 🙂. You are an excellent mentor so can't miss any part of the video and yes saw Gabriella !!!!
@akm5611
@akm5611 2 жыл бұрын
Hi Paul, I think your lessons are great. I have had some programming in C about 25 years ago and it seems to be like riding a bike, most of it came back. Thanks for the videos, having a great time with my Arduino.
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Great to hear!
@chernoblyat1901
@chernoblyat1901 3 жыл бұрын
Gabriella is lucky to have someone like you sir!
@user-mx4ek3jf8s
@user-mx4ek3jf8s Жыл бұрын
Gabriella. I watch all tutorials to the end. They are so informative and easy to understand. Happy birthday.
@audreyflores243
@audreyflores243 Ай бұрын
Made it to the end. Gabriella (I hope I spelled her name correctly) I was able to do the homework on my own, along with the servo/joystick homework. Having a great time. Hope when you made this video you had a great birthday. Thank you so much again for the great content.
@yigitpar6492
@yigitpar6492 2 жыл бұрын
Gabriella! Not a single second is wasted by skipping it. I have very limited time during the day because of work+parenting, but I am here to learn, not to memorise some stuff for a day or two. Hoping one day I'll tell/show someone what I learned, so I gotta be prepared :) Thanks a lot
@alanfowler3069
@alanfowler3069 Жыл бұрын
Tilt Switch working, think I'm finally getting to grips with this coding. Happy Days. I Know I'm late to the class, but really enjoying learning new skills. Thank again.
@paulmcwhorter
@paulmcwhorter Жыл бұрын
Nice work!
@kevinshaver5613
@kevinshaver5613 2 жыл бұрын
The project was an easy one. After the stepper motor lesson,this one was welcome!
@Aliguibrisa393
@Aliguibrisa393 Жыл бұрын
Gabriela I watch your videos all times to the end thank you for your time
@caltech-wirewizard
@caltech-wirewizard Жыл бұрын
Gabriella !! Yes, I go from start-to-finish on each video in succession and I enjoy them! And YES, each and every assignment.
@paulmcwhorter
@paulmcwhorter Жыл бұрын
Wonderful!
@tomeasley5979
@tomeasley5979 2 жыл бұрын
Nice that Gabriella could come and visit you! I am sure you enjoyed the visit! and Happy Belated Birthday as I realize the time delay of making the video and us viewing it.
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Thanks so much! 😊
@philnewman1110
@philnewman1110 Жыл бұрын
I always make it to the end even if I have the video two or three times (Your benefit Paul) and I worked out the fault that was in there before you showed it! Im so pleased with myself! GiddyUp Gabrielle!! Thanks Paul.
@gladbod300
@gladbod300 2 жыл бұрын
Thanks, post-Happy B-day! As a fun challenge I made the code so that it allowed vibration using two variables. The first was an average of 30 shorts or open circuits using a for loop. This produced either an int of one, or a float less than one. The other was produced with an if statement that counted the number of consecutive averaged ones (shorted states/cycles). So if 20 consecutive averaged ones were counted then it would allow the shorted state of one to pass through the if statement and trigger the light (if (ave=1 && count > 20) etc...). I based this by vigorously shaking it, which usually triggered 4-15 consecutive averaged ones. If I tipped it over, then it instantly (to the natural eyes) counts 20+ consecutive averaged ones (or shorts), and it gets triggered.
@davedave3631
@davedave3631 3 жыл бұрын
Happy belated birthday, Paul. You probably won’t see this but I really enjoy your tutorials. I wish I would have found them sooner. Who knows, maybe I would have been so much further ahead by now if I would have. Two thumbs up, sir.
@paulmcwhorter
@paulmcwhorter 3 жыл бұрын
Glad you like them!
@Sam-rz5hw
@Sam-rz5hw 2 жыл бұрын
And i am watching this lecture on my birthday!!
@Shalfatk01
@Shalfatk01 2 жыл бұрын
gabriela is pretty name :) . side note. most of those short views are because somebody come back and seek only the part of the video that didn't remember. new viewer can also speed up the video up to 2x speed. so it is half of the time . those are factors why those numbers may seems to be "low" but dont worry. those videos were made two years ago and i just stumble across them :D and i love all of them. it is exactly the way i like to learn. you made great job by making those videos.
@bill6590
@bill6590 3 жыл бұрын
Made it: Gabrella. Good tutorial. I tried to use the else command instead of a double digitalWrite command. I got a very weak green and red LED lite. But, with the doubleWrite commands. I got a bright LED lite. Strange, not sure what happened. I got it right except I forgot ==. I just used 1 =, and forgot my penmodes. I always go all the way thru the tutorials and do the homework first. HAPPY BIRTHDAY PAUL!
@yepitsmebob88
@yepitsmebob88 2 жыл бұрын
Gabrialla, I did the home work and the mistake on my own. Awesome lesson, keep it up.
@leifpernstig3200
@leifpernstig3200 2 жыл бұрын
Hi Paul, and happy birthday. Hope Gabriella comes to visit! And yes, I watch all your excellent tutorials to the end (36 so far!)
@arseivan
@arseivan Жыл бұрын
Hey Paul, thank you for another lesson (Gavriella)! I did this one before watching you doing it. Below is the code I ended up having. Nice way to simplify the if statements here - since we read 0 and 1 already we can incorporate these values in the digitalWrite statements: int greenPin = 8; int redPin = 9; int tiltPin = 53; void setup() { pinMode(greenPin, OUTPUT); pinMode(redPin, OUTPUT); pinMode(tiltPin, INPUT_PULLUP); Serial.begin(9600); } void loop() { bool tiltVal = digitalRead(tiltPin); digitalWrite(redPin, tiltVal); digitalWrite(greenPin, !tiltVal); }
Arduino Tutorial 37: Understanding How to Control DC Motors in Projects
31:25
You can learn Arduino in 15 minutes.
16:34
Afrotechmods
Рет қаралды 10 МЛН
Doing This Instead Of Studying.. 😳
00:12
Jojo Sim
Рет қаралды 35 МЛН
Survive 100 Days In Nuclear Bunker, Win $500,000
32:21
MrBeast
Рет қаралды 160 МЛН
Can This Bubble Save My Life? 😱
00:55
Topper Guild
Рет қаралды 67 МЛН
Fast and Furious: New Zealand 🚗
00:29
How Ridiculous
Рет қаралды 49 МЛН
Arduino Tutorial 34: Simplest Way to Use a Pushbutton Switch
10:26
Paul McWhorter
Рет қаралды 98 М.
Get Started in Electronics #6 - Motion-Activated Tilt Switch Uno Alarm!
15:03
I built my own graphics card
15:34
jdh
Рет қаралды 1,4 МЛН
Fun with Transistors
24:33
HackMakeMod
Рет қаралды 196 М.
6 Horribly Common PCB Design Mistakes
10:40
Predictable Designs
Рет қаралды 190 М.
Mechanical  Switches are Obsolete?! Switch to a Latch Circuit! EB#53
10:36
I Made A Water Computer And It Actually Works
16:30
Steve Mould
Рет қаралды 7 МЛН
Connecting Arduino with multiple I2C devices
6:22
BlueDot
Рет қаралды 191 М.
What's the difference? Arduino vs Raspberry Pi
6:21
Tinkernut
Рет қаралды 1,8 МЛН
Doing This Instead Of Studying.. 😳
00:12
Jojo Sim
Рет қаралды 35 МЛН