I appreciate you taking time to do these videos! I have PLC experience from manufacturing woodworking machinery, and I have retrofitted several cnc machine with mach3 and even helped beta test mach4. I also have a daughter with cerebral palsy that is 11. I used to tease her when she was 4. I'd ask her to go put wood in the furnace. She'd say I cannot, I'll get burnt or it's too heavy. One night she said that "if you will build me a robot I will". Ever since that night I have been dreaming of building a robot with her. Here we are watching your videos. Good Lord willing, we will be building our first test robot very soon. She is very excited and loves to write code that she has learnt so far. I'm very excited also!
Paul, I'm an avid (Python) programmer and sysadmin by day. I have had an arduino laying around forever, but it took a pandemic to find the time to mess with it. Thank you for these tutorials, they are excellent!
Followed through all your old courses and am finding the new courses a refreshing review and still picking up many new pointers. Thanks for the extra effort you put into these videos. Your homework assignments are a great touch.. keep it up. This senior citizen is enjoying the challenge.
Sorted this out for homework . I’m also 74 and had no idea of where or how to start. Your lessons are spot on step by step. I am beginning to learn how electronic components work and how to build a circuit that works.
I didn't learn anything about electronics until I went to an aviation maintenance/technical college. If I had a chance to take an electronics class in Jr High or high school I think my entire life would have been different today.
I love when he puts a constant in the code. You know it's just a matter of time before he says, "uh-Oh, are y'all screaming at me?". In my everyday life, whenever I make a boneheaded mistake, I scream, "NO! NO! NOOO!!" very softly to myself. Mr. McWhorter is a trip and I am very much enjoying these new and improved Arduino tutorials.
I'm currently a first year mechanical engineering student, I wanted to get into a mechatronics program but it wasn't available, so I thought why not to learn the electronics and coding by myself. So I found these tutorials and I really got super excited to start. I wanna say thank you for your amazing and fruitful content, really the way you express your ideas and knowledge is truly amazing!!! Waiting for more videos on arduino🙌😁
Hi Paul. I am a retired controls engineer from the worlds largest manufacturer of freeze-less outdoor plumbing supplies. I still do ALOT of controls engineering for myself simply because I loved the job! I wanted to get into a new platform so I chose the Arduino platform. Let me tell you, you are the Bob Ross of programming and design. I just love the way you methodically go through the lessons and have the talent to speak everything that is going through your mind. That my friend is a very tough thing to do, and I appreciate it immensely. If someone has the desire to learn the Arduino these are the best teaching videos I have ever run into about the subject. Thanks again for sharing your knowledge and talent.
Your tutorials are definitely outstanding! My note book is growing. Even with the excellent way you present the material I still watch the videos at least twice. Good stuff and with the hands on experiences it brings it alive.
Everybody used to tell me to check on arduino, as an automation engineer I usually use 'blocks' to construct devices. I started as electronic engineer 20 years ago, but after 10 years of tinkering with all those small components I was fed up and 10 years ago migrated into automation (no more soldering and assembling - I just got fed up with it). I ordered arduino recently as an impulse buy (finally, after years I checked on it). Your lectures are fantastic, picking up syntax, basically I have done some coding with different tools previously. Already have 2 projects in my mind TCPIP analyser/logger and tablet as HMI, a lot of work, but it is way faster to learn new things when you want to do something and you do not know how! Challenge is not to copypaste anything from the Internet. Thank you for this great content.
Man, you so much remind me of my science teacher in high school, the one who explained things so good that at 58, I still remember the principles of a lot of the physics stuff he taught us!
Paul, you would be shocked to know I am watching your videos all the way from Afghanistan. For no apparent reason, you remind me of Robert De Neiro. Love your lessons, love the energy you're sending across.
Thanks a lot sir, coming back to circuits and programming after 20 years of abstinence from anything technology-related that goes deeper than simple usage or pressing buttons and your tutorials are the best I could find. Greetings from Austria!
Thank you so much, Paul! I've been trying to get into Arduino for the past week and trying to read through the badly written manuals and guides online. And I was honestly about ready to give up. I have no prior education in anything electronic or with coding. But watching your videos on this so far have help me SO much, and actually given me confidence! So much that I actually started doing the homework you gave for this episode before you even mentioned it! I just finished up the last line of code whenever you assigned us to go through and change the brightness, and it just meant a lot to me that I already was confident enough to figure it out on my own and do it. Please keep up the good work, and I can't wait to learn more! :) Thank you!
Paul you are rare teacher who can give me good feeling about myself! More experienced people might think that it is to easy, but I feel that this is just right amount and I'm not scared away and i wanna know more!
Hello Paul, Once again, I did the homework and am just starting tutorial 7 - The binary counter to 31 was relatively easy, and I was able to create a "clean board" that looked neat and organized first shot, and the coding had no faults. Your audio is excellent, along with your teaching skills. I initially purchased a Vilros starter kit, and have recently added a GAR Monster Kit to my arsenal. (I will work toward being able to use the components appropriately, but looking at it gives me the desire to succeed enough to use the components in the GAR kit, however basics start with baby steps with an eye on the eventual prize package. Thank you so much for your tutorials, and your teaching skills.
These tutorials are great. I've wanted to play with Arduino for a long time and these videos finally got me going. My daughter and I are doing this together and having a good time. Thanks for putting these together. God Bless.
first off, thank you for the tutorial. i have zero knowledge in Arduino, and almost zero on programming, but the lesson here is awesome! It kinda reminds me of my professor back in college on your methods of teaching. very easy to understand!
Sir there isn't a better teacher out there, came to watch new arduino series after 3 years whenI watched the old one and I found that you are a even better teacher now.Thank you 🙏💯
Paul, Eleanor and I completed this evening's assignment. She set up the circuit all on her own AND she typed out the code for the initial build, which was a first! She got busy working on another craft after dinner so I did the homework. But, when she was done, she came up and we observed it in action and inspected the code together. Then, we made a modification that set nine brightness levels that cycled through a little faster, and then we watched it in the dark. It was so cool!
Paul, I think these tutorials are awesome. I like that you are able to keep the interest of people of all ages. I also like how you explain everything in detail and not only how to do something, but WHY it is done. I'm onto the seventh video now and I believe I will be going through all of them. Thank you!
Finally learning basic coding feels tangible. Best professor I’ve never had, wish I had teachers/professors who taught as well as you throughout my years of education!
I have really enjoyed all the videos so far. I was in automation and worked on some really big projects before hurting my back in 2000. My boss was just starting teach me how to program. He did work for Dow Chemical for 10 years or so before I came to work with him. We did projects for Roche Vitamins, Anheuser Bush, Wetmore Printing in Dallas, Texas where we completely rewired and reprogrammed a Harris Web press an M300 I think it was called. I did about 80% of the wiring on that monster. The project for Roche we dealt with Allen Bradley and another project for Harris Web press here in Houston we completely reworked an M1000 web press with Siemens controls. What fun and challenging the projects were. Thanks and I look forward to learning more and more.
Some pretty sophisticated gear for a $35 - $45 investment. Thank you Paul for sharing your knowledge and expertise with us, having a great time with the Arduino !
Amazed that I’m following this series and understanding it being my first venture into electronics and Arduino. Got setup for lesson 5 right first time, not bragging just pointing out how great and easy to follow your lessons are. So, thank you. Looking forward to completing the set
I am having fun and enjoying your tutorials so I thank you very much. I am an old hardware guy (think machine language programming MC6800, Z80, F8 when I was in University) and a long time software developer where I spent my career in I.T.. It is joy to play with these little guys again. Arduino makes it really easy.
Excellent teacher, I am that guy right off the street you mentioned earlier with absolutely no former knowledge of this subject and I am learning. Thank you.
As soon as you mentioned that we could input a number, it gave me an idea. Have it turn up slowly and then regress to nothing. Over and over. I was not disappointed. It looks neat. Real simple code that I slopped out in about a minute. for(size_t i = 0; i 0; i--) { analogWrite(redPin, brightness[i]); delay(50); } Just throw it in your loop function.
Im studying computer engineer, but I want to focus in this area combining programming with hardware, I love your tutorials, greetings from Puerto Rico.
Found your channel by searching Fusion 360. I don't have Fusion and Arduino at the moment, but it won't take long. However my mother tongue is not English, I understand everything you explain. Thanks a lot! Great channel.
N'est-ce pas, Xavier ! Hahaha! Super vidéos que fait ce mec-là. Vraiment. Perso, je n'en suis qu'à mes tout début, mais je suis rendu plus loin, mais j'attends qu'il parle de « struct » .. j'ai un super beau petit projet avec un DS3231 (RTC) et une sonde d'environnement genre BME280 et des modules Bluetooth pour transmettre l'info à l'intérieur. Bonne chance et bonne journée! On se recommunique si tu veux.
These videos are excellent and even an old man like myself can follow them with little difficulty. As an ex-teacher myself Paul you are an excellent teacher. Many thanks.
For this one, I added comments above each number (//zero, //one, etc) to help keep everything separated. I also added an “off/low” after each number so it flashes vs just switching. Then I used an int for the delay so I could adjust how quickly it switched between numbers. I think I overachieved a little on this assignment. Definitely enjoying the lessons so far.
cool dude! the //just refer to notes (for us) not to be used by the arduino right? also, i feel like my LEDs have very poor turndown ratio. 255 looks like 100 and even 10 feels like it should be 50 or so. You as well?
I've been following your lessons and like your teaching style, concepts actually sink in to my grey matter. I successfully built the counter and programmed it without a hitch, it was pleasing that the programming was quite similar to yours. Thanks Paul.
Sir, your lessons are too good to understand. I normally download the codes & just do some projects. Now I really understand how these codes are written after following your lessons. Keep it up.
Assignment is completed! Thank you very much. Had some problems with Arduino update, downloaded an old version and it works just fine. I am so glad that I continue learning from you. Thank you very much again.
I’m currently a uni student for computer science/engineering, and I got an arduino since it looked like something fun to do during summer. These tutorials have been great, and it’s cool to see computer science topics I have learned in class be physically applied to an actual object. I used a simple while loop to make the light gradually increase then decrease, and it was a joy to see. I hope that tutorials like this help get more people into technological/engineering fields. Have a great day
Always a good practice to declare constant variables with const ( const int redPin=9; ). This ensures that we don't inadvertently change the value of the variable in our code. Great Videos!
Hey Paul, your lessons are really good, you teach just like my Dad, I wanted to try low and bright at the same time, so I did declare two variables (bright and low) and then two for delay time, (dt and watitTime); I could share the code here... int bluePin =11; int bright =255; int low =0; int dt=1000; int waitTime=10000; void setup() { pinMode(bluePin, OUTPUT); } void loop() { analogWrite(bluePin,bright); delay(waitTime); analogWrite(bluePin,low); delay(dt); }
I'm starting my electrician apprenticeship but I want to get into industrial part of it, so I need to learn bits of PLCs. These videos are exactly what I wanted to learn. Gonna automate my veggie patch!
Paul, you are dead on point with the homework assignments. I have had to troubleshoot my mistakes and figure out what is wrong. Since I am a Toyota technician, I troubleshoot all the time and the mistakes I make when programming teaches me what could possibly be a problem when there is an issue. Great work teaching!!
Troubleshooting is a really important skill. By the way, I drive nothing but toyotas for the last 10 years. Right now I am driving a Toyota Hilux Diesel 4WD 4 door . . . perhaps the best vehicle toyota ever made. Sad it is not available in US
@@paulmcwhorter You must have acquired that from our south of the border cousins or overseas. The Hilux was always sold everywhere except in North America. You can get them with diesels along with the Land Cruiser, but not here. Toyota is not interested in trying to meet the emission standards of the U.S. for diesel engines. The last time the U.S. had a diesel Toyota was the early ‘80s. They were great engines but without a turbocharger, very low powered.
That is actually good. It is a good teacher who utilizes available resources, and then coaches and mentors students along side the videos. Wise teacher you have.
This lessons really help me with my University studies to get a better understanding of Arduino so I can do my project for the assessment, especially now with covid-19 and the lectures are online. I love the way you teach you make it very simple and easy to understand and also fun at the same time. Thank you very much for the tutorials. Sergiu from the UK
I recently started learning arduino. Your explanations are the best I found on youtube. The way of talking and the dedication to make ideas clear really show that you are a teacher. Thank you for taking the time and effort to put these together, they are very enjoyable.
The HW assignments definitely help alot...I follow along with you and then when I do the assignments, I don't struggle too much because you explain everything very clearly. I am completely new to programming and these lessons are really great. Thank you!
Yesterday I was doing some little project of my own and I hardcoded the waiting time instead of using a constant. I heard Paul's voice inside my head shouting "Nooooo! that is bad bad coding!". And then, when the program loaded, I shouted "Boom!". ;-D
Thank you Paul for giving of your time and expertise. I ordered the kit that you are using, before I found your tutorials online. When I have a chance in the evenings I have started using your tutorials. Initially I was using the kit and last night I found Arduino TinkerCad which I used to do the homework. I can be in the living room with my wife, keep the mess down and do everything on the computer. My main focus is understanding what is happening which you make sure to include as well as develop coding skills to do practical projects.
Sir, i am grateful for your class . Its informative and educative . I believe by the time am done with the whole tutorials I should be able to come up with something for my poultry farm operations .
Just got my Arduino Super Kit today; actually had it handed to me by the mailman (in this case it was a man) right off the truck before he could even load it into the rented mailbox. Paul, I've gone through the first 6 videos, doing the circuits and homework. Having been a professional programmer for 5+ decades, I normally set myself a higher programming standard to meet (e.g. for the homework from video 4 I used a function to streamline the code). All this to point out that your videos can even be fun for salty old bit-hackers like me. It's like going back to my youth :) I may not be able to stand ice coffee (sorry), but I can have fun playing with some simple circuits. Watching these videos has actually given me the idea to design and build a NTP-based digital clock for the bedroom. I can print a case on my Ender 5 Pro.
Boom I am completing tutorial using Mega2560 and use pin13 for analogWrite and brightness value divided in 8 segment between 0 to255 and get wonderful result. Thanks Paul
Fantastic teacher. Taking us from what we know to what we need to know, step by step; really makes it easier to understand what is going on and diagnose problems ourselves. It's great that you've made intentional errors and even started programming how a beginner would with no variables and gone back to show how they make life easier and are an essential part of coding. Similarly pointing out that the circuit needs to be grounded before it is complete etc. The little touches like that are great. I can't skip over the theory lessons on electrons and binary, that I previously had minimal knowledge of. Without those I couldn't have worked out how to build the binary LED counter myself. Keep up the brilliant educational content sir. Many thanks.
Dear Paul, I really like your video, your way of teaching is very clear, it fits me as a beginner in Arduino. Recently I develop a Fuel Flow simulator. Long story short, it has to produce 2 pulses named Drum & Impeller. Let say the pulse width is 5 ms (5000 us), and the Pulse Repetition Time (PRT) is 40 ms, so the Drum pulse will repeat after 40 ms, the same way as Impeller pulse. The time delay between the Drum and Impeller pulses is proportional with the Fuel Flow. It's 40 PPH (Pounds Per Hour) for every one ms, for example 400 PPH --> the delay is 10 ms, 500 PPH the delay is 12.5 ms. I managed to generate the pulses accurately (I checked with digital oscilloscope, it has cursors for marking times), as well as the time delay of Drum-Impeller pulses. I use delayMicroseconds() function for pulse width and Drum-Impeller delay. However, I could not get accurate timing for PRT every loop. I tried delay() function, I tried while loop with micros(). It seems the program add some time delay. I check for 800 PPH (20 ms delay), Drum: 5ms, delay: 20ms, Impeller: 5ms, total 25 ms than I add 15 ms to cycle the loop to satisfy 40 ms PRT requirement, all pulses and delay are accurate, but PRT is more than 40 ms, it's more than 100 ms. Are there limitations of Arduino? How to solve this? BTW, I use Arduino Nano Atmega 328P/5V for this application. I would really appreciate it if you can help me. Regards, Mula W. Wangsaputa mula165@gmail.com
If you don't mind to review the sketch I wrote: /* Fuel Flow Transducer Simulator * Mula - YB1BUL * January 2023 */ #include #include #include #include Rotary r = Rotary(3,2); LiquidCrystal_I2C lcd(0x27, 16, 2); const int drum=9; //output pin DRUM const int imp=10; //output pin IMPELLER int pw; //pulse width in microsecond unsigned long prt; //Pulse Repetition Time or Period in us unsigned long prtu; //Pulse Repetition Time or Period in us int ff; //Fuel Flow in PPH int ffmax; //Max Fuel Flow byte sff; //Fuel Flow Step in PPH int ffd;//delay due to FF in us int ffm; //residue boolean statepulse; unsigned long time_now=0; void setup() { lcd.begin(); lcd.backlight(); lcd.clear(); pinMode(drum,OUTPUT); pinMode(imp,OUTPUT); ff=0; ffmax=1000; sff=10; pw=5000; statepulse=true; PCICR |= (1
Actually it's already solved. I got helps from others in Arduino Forum. Thank you. here is the final code: /* Fuel Flow Transducer Simulator * Mula - YB1BUL * January 2023 */ #include #include #include #include Rotary r = Rotary(3,2); LiquidCrystal_I2C lcd(0x27, 16, 2); const int drum=9; //output pin DRUM const int imp=10; //output pin IMPELLER unsigned long pw; //pulse width in microsecond unsigned long prt,prt150,prt100,prt50,prt40; //Pulse Repetition Time or Period in us int ff,ff70,ff100,ff200; //Fuel Flow in PPH int ffmax; //Max Fuel Flow int sff; //Fuel Flow Step in PPH int ffd;//delay due to FF in us unsigned long time_now=0UL; void setup() { lcd.begin(); lcd.backlight(); lcd.clear(); pinMode(drum,OUTPUT); pinMode(imp,OUTPUT); ff=0; ff70=70; ff100=100; ff200=200; ffmax=1000; sff=10; prt=150000; prt150=150000; prt100=100000; prt50=50000; prt40=40000; pw=5000; PCICR |= (1
I did this project on my own before watching this video. I'm very happy that you went through the whole project and explained your rationale. I know it takes a lot of time, but it really helps. Alright, so the things I did wrong. First, I put the pinMode commands outside the setup. Of course I got a compile error and did some research to fix it. My second big mistake is that I didn't use any variables. It's hard for me to imagine what variables I need before I write the program, but hopefully I will get better at that. After that it wasn't too tough. I kept trying to come up with a shortcut for entering five lines for each number, but I couldn't. The last thing that stumped me forgetting that binary counts right-to-left while I read left-to-right, so all my entries were backwards. Fortunately I realized that reversing the pin jumpers would be easier than rewriting the code. Whew! Thanks for all your hard work!
I really enjoyed this video and learned something new. I've been wondering how to dim an LED for a bit now. I did the homework and now have a gently pulsing LED that looks pretty neat! Cant wait to learn more!
Your teaching ability and quality so high. You can make difficult matter so the easiest way. Here, very simply you explain the difference between analog Write and digital Write. Short video. But very important to understand Arduino Basic. Thanks for your beautiful video.
I am into analog synthesizers and is the reason I am here learning about Arduino, that and wanting to have a lot of fun making cool projects. This info about analog stuff is just what I am looking for. The synths use variable voltages. I want to build some of my own modules. Thanks for all the good info.
Pretty cool! I hooked my multimeter up to the circuit and was able to watch the voltage change as I changed the analogWrite value from full, to 3/4, to 1/2, to 1/4 and to zero in 5 second increments.
Another great lesson Sir Paul! I'd like to think about it this way: 1. The exponent represents the number of places. 2. The evaluated exponential expression represents the number of decimal digits we can generate. // Note: we always start with zero. // Binary System can only utilize either 0, 1 or a combination of 0 and 1 (depending on the number of places available). ---> the weight of each place (starting from the right going to the left) is 2^0, 2^1, 2^2, 2^3,...etc. // Decimal System can utilize either 0,1,2,3,4,5,6,7,8,9 or a combination of these (depending on the number of places available) ---> the weight of each place (starting from the right going to the left) is 10^0, 10^1, 10^2, 10^3,...etc. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- For Example: BINARY SYSTEM 2^1 = 2 ---> The exponent 1 represents that we have one bit-place to write a binary digit on. ---> The evaluated expression is 2, which means we can generate two decimal digits i.e. 0,1. 2^2 = 4 ---> The exponent 2 represents that we have two bit-places to write a binary digit on. ---> The evaluated expression is 4, which means we can generate four decimal digits i.e. 0,1,2,3. 2^3 = 8 ---> The exponent 3 represents that we have three bit-places to write a binary digit on. ---> The evaluated expression is 8, which means we can generate eight decimal digits i.e. 0,1,2,3,4,5,6,7. 2^4 = 16 ---> The exponent 4 represents that we have four bit-places to write a binary digit on. ---> The evaluated expression is 16, which means we can generate sixteen decimal digits i.e. 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- For Example: DECIMAL SYSTEM 10^1 = 10 ---> The exponent 1 represents that we have one decimal place to write a decimal digit on. ---> The evaluated expression is 10, which means we can generate ten decimal digits i.e. 0,1,2,3,4,5,6,7,8,9. 10^2 = 100 ---> The exponent 2 represents that we have two decimal places to write a decimal digit on. ---> The evaluated expression is 100, which means we can generate one-hundred decimal digits i.e. 0,1,2,3,...,99. 10^3 = 1000 ---> The exponent 3 represents that we have three decimal places to write a decimal digit on. ---> The evaluated expression is 1000, which means we can generate one-thousand decimal digits i.e. 0,1,2,3,...,999. 10^4 = 10000 ---> The exponent 4 represents that we have four decimal places to write a decimal digit on. ---> The evaluated expression is 10000, which means we can generate ten-thousand decimal digits i.e. 0,1,2,3,...,9999. -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I really appreciate and enjoy the virtual classes you provide over RUclips. It is a great resource for those who want to learn, and you are a great example of what a good instructor should be. Thank you sincerely from Manila, Philippines!
While doing the assignment, I tried a little experiment: after coding the LED to go through 5 steps of increasing brightness, I added another 4 steps of decreasing brightness. The LED now cycles through increasing/decreasing brightness continuously. At a delay of 50, there's no noticeable flicker. Pretty cool, actually.
Hey Paul, really like how intuitive this is feeling so far - I started my LED at the brightest level and reduced it until it was off: int redPin = 9; int bright = 255; int middle = 127; int dim = 63; int off = 0; int d = 200; void setup() { // put your setup code here, to run once: pinMode(redPin, OUTPUT); } void loop() { // put your main code here, to run repeatedly: analogWrite(redPin, bright); delay(d); analogWrite(redPin, middle); delay(d); analogWrite(redPin, dim); delay(d); analogWrite(redPin, off); delay(d);
i have been trying to casually get into coding for a couple years now. last one was tasker( a phone automation app.turn on gps when connected to car etc.) and i just realized, what always makes me stop. it's Variables! when the instructor started yelling about entering a constant i was instantly up the adding a variable....also on the home work about the 4bit counter i did exactly how he did when he demonstrated that H/w. this is the place i chose for my beginner learning. turns out the starter kit i bought is the one being used in these videos you're this guy Paul goes deep. i mean he goes in depth like DO WE NEED to know all that about LEDS in #3? probably not. but i cant stand when you be like why do i need to do this part, and they say just do it. or, thats how it is. this particular video clearly doesn't need me hyping it up. but thanks paul for getting variables to start to stick. im excited to watch the rest and use this knowledge on Arduino and possible elsewhere
Getting geared up for some robotic endeavors and starting from scratch. This is AWESOME! Video quality is nice, Audio quality is nice, the camera views are nice. Overall this is what I would expect from an online University. Absolutely...Perfect for what I need. 30 minute to an hour is ideal. I did spend to much time trying to think of a counter and realized I did not know enough of the coding language to proceed and time was short. I did cheat and watch the next lesson and wound up typing the number by number code. Hopefully things get really involved and oriented more towards automation. Start small and grow with experience. I plan to follow all this through until I feel capable.
I'm semi-retired now and have more time to learn. I'm using your series to refresh my memory and get proficient with Arduino. So, far I'm breezing through. This is a huge help. Thank you for all your work and sharing your knowledge. Once I'm up to speed maybe I can find some way to share with others too? Scouts? Local school?
This will be one the first project I will attempt when I receive my starter kit. Very informative lesson for a beginner like me, thank you keep the good work.
Paul, Yes analog is great and you explained it well! I decided to create 4 variable off,dim,medium,bright, so I could turn up the brightness then gradually turn it back down. Very simple concept, but the main thing is I am finally realizing the "POWER of the CODE" lol, and I can do it without referring back to the Tutorial, BOOM!!! SIDE NOTE: When trouble-shooting, the mind can play tricks on what you "think" you see, i.e. I was going to use the variable name "low" but I typed "dim", However in the "loop" I typed low, and it took a while to recognize the problem because I would see the word dim and my mind fills in the image as "low". So I had to tell my eyes..."Do Behave Baby"... lol Anyway Another Great Video Thanks, Gary
Best tutorials in the internet that really have the ability to teach you a new skill
I agree
I tried other tutorials & i also tried skillshare nothing even compares to this
This is indeed another level
and he has an another power the ICE COFFEE power
Booooooom 😅
I don't know how I managed to find your channel, but I'm extremely glad that I did
I appreciate you taking time to do these videos! I have PLC experience from manufacturing woodworking machinery, and I have retrofitted several cnc machine with mach3 and even helped beta test mach4. I also have a daughter with cerebral palsy that is 11. I used to tease her when she was 4. I'd ask her to go put wood in the furnace. She'd say I cannot, I'll get burnt or it's too heavy. One night she said that "if you will build me a robot I will". Ever since that night I have been dreaming of building a robot with her. Here we are watching your videos. Good Lord willing, we will be building our first test robot very soon. She is very excited and loves to write code that she has learnt so far. I'm very excited also!
Did you ever get your Robot built with your Daughter.x
Paul, I'm an avid (Python) programmer and sysadmin by day. I have had an arduino laying around forever, but it took a pandemic to find the time to mess with it. Thank you for these tutorials, they are excellent!
Followed through all your old courses and am finding the new courses a refreshing review and still picking up many new pointers. Thanks for the extra effort you put into these videos. Your homework assignments are a great touch.. keep it up. This senior citizen is enjoying the challenge.
Nice me likey
Sorted this out for homework . I’m also 74 and had no idea of where or how to start. Your lessons are spot on step by step. I am beginning to learn how electronic components work and how to build a circuit that works.
Where the hell were these classes when I was in school?? I would have actually been interested in going to school learning things like this.
True story!
@@andrasparanici5491 I was lucky, I had 2 teachers just like this.
It's amazing how much you enjoy going to class, right?
I didn't learn anything about electronics until I went to an aviation maintenance/technical college. If I had a chance to take an electronics class in Jr High or high school I think my entire life would have been different today.
Agree.
Is "not" the schools, is the teacher it always has. When they bring passion and know how they are a force.
This senior citizen is enjoying all the vlogs and trying to learn new things !
This is community service, this gentleman should be given a medal.
I now understand all this perfectly.
Thank you sir
Wow, thanks
I love when he puts a constant in the code. You know it's just a matter of time before he says, "uh-Oh, are y'all screaming at me?".
In my everyday life, whenever I make a boneheaded mistake, I scream, "NO! NO! NOOO!!" very softly to myself. Mr. McWhorter is a trip and I am very much enjoying these new and improved Arduino tutorials.
I'm currently a first year mechanical engineering student, I wanted to get into a mechatronics program but it wasn't available, so I thought why not to learn the electronics and coding by myself. So I found these tutorials and I really got super excited to start. I wanna say thank you for your amazing and fruitful content, really the way you express your ideas and knowledge is truly amazing!!! Waiting for more videos on arduino🙌😁
I can actually follow along.
I’m 65 years old, this is the first time in my life I’m writing code.
Thank you!
When the day comes when I finally become a Mechatronics Engineer, I wanna thank you personally for all these knowledge.
sameeee
I never thought I could binge-watch educational videos until I found your channel.
As a teacher myself, the way you have broken down your curriculum into this series of tutorials is exceptional and "most excellent."
Wow, thank you!
Have been following along since episode - 1. Eagerly waiting to reach the last. Best Tutorial on You Tube by far. Keep it up
Lots of good lessons coming up. Hope you will stay tuned.
Hi it was my first time about learning digital because of you sir i understand more. You are a great teacher thank you so much i love it.
i see 64 and be like waaat how cam o finish i leik it tho
Best Arduino tutorial video series on RUclips
facts
Hi Paul. I am a retired controls engineer from the worlds largest manufacturer of freeze-less outdoor plumbing supplies. I still do ALOT of controls engineering for myself simply because I loved the job! I wanted to get into a new platform so I chose the Arduino platform. Let me tell you, you are the Bob Ross of programming and design. I just love the way you methodically go through the lessons and have the talent to speak everything that is going through your mind. That my friend is a very tough thing to do, and I appreciate it immensely. If someone has the desire to learn the Arduino these are the best teaching videos I have ever run into about the subject. Thanks again for sharing your knowledge and talent.
“ I can see clearly now the fog has cleared” I never realised how logical this coding is. Great stuff, thanks!
My 3 sons (aged 10,8,6) and I are doing your course 1 video a day. Fantastic stuff.
Fantastic!
Your tutorials are definitely outstanding! My note book is growing. Even with the excellent way you present the material I still watch the videos at least twice. Good stuff and with the hands on experiences it brings it alive.
But are you remembering the ice coffee?
Everybody used to tell me to check on arduino, as an automation engineer I usually use 'blocks' to construct devices. I started as electronic engineer 20 years ago, but after 10 years of tinkering with all those small components I was fed up and 10 years ago migrated into automation (no more soldering and assembling - I just got fed up with it). I ordered arduino recently as an impulse buy (finally, after years I checked on it). Your lectures are fantastic, picking up syntax, basically I have done some coding with different tools previously. Already have 2 projects in my mind TCPIP analyser/logger and tablet as HMI, a lot of work, but it is way faster to learn new things when you want to do something and you do not know how! Challenge is not to copypaste anything from the Internet. Thank you for this great content.
Man, you so much remind me of my science teacher in high school, the one who explained things so good that at 58, I still remember the principles of a lot of the physics stuff he taught us!
Paul, you would be shocked to know I am watching your videos all the way from Afghanistan. For no apparent reason, you remind me of Robert De Neiro. Love your lessons, love the energy you're sending across.
Thank you Paul, I'm 63 and enjoying your channel
Thanks a lot sir, coming back to circuits and programming after 20 years of abstinence from anything technology-related that goes deeper than simple usage or pressing buttons and your tutorials are the best I could find. Greetings from Austria!
All the best
Thank you so much, Paul! I've been trying to get into Arduino for the past week and trying to read through the badly written manuals and guides online. And I was honestly about ready to give up. I have no prior education in anything electronic or with coding.
But watching your videos on this so far have help me SO much, and actually given me confidence! So much that I actually started doing the homework you gave for this episode before you even mentioned it! I just finished up the last line of code whenever you assigned us to go through and change the brightness, and it just meant a lot to me that I already was confident enough to figure it out on my own and do it.
Please keep up the good work, and I can't wait to learn more! :)
Thank you!
Paul you are rare teacher who can give me good feeling about myself! More experienced people might think that it is to easy, but I feel that this is just right amount and I'm not scared away and i wanna know more!
Hello Paul, Once again, I did the homework and am just starting tutorial 7 - The binary counter to 31 was relatively easy, and I was able to create a "clean board" that looked neat and organized first shot, and the coding had no faults. Your audio is excellent, along with your teaching skills. I initially purchased a Vilros starter kit, and have recently added a GAR Monster Kit to my arsenal. (I will work toward being able to use the components appropriately, but looking at it gives me the desire to succeed enough to use the components in the GAR kit, however basics start with baby steps with an eye on the eventual prize package. Thank you so much for your tutorials, and your teaching skills.
These tutorials are great. I've wanted to play with Arduino for a long time and these videos finally got me going. My daughter and I are doing this together and having a good time. Thanks for putting these together. God Bless.
Wow, and you are making memories that will last a lifetime for your daughter. How wonderful for you to make such time for her. She is truly blessed.
first off, thank you for the tutorial. i have zero knowledge in Arduino, and almost zero on programming, but the lesson here is awesome! It kinda reminds me of my professor back in college on your methods of teaching. very easy to understand!
Sir there isn't a better teacher out there, came to watch new arduino series after 3 years whenI watched the old one and I found that you are a even better teacher now.Thank you 🙏💯
Compled the assignments, only after making every coding error possible. Great way to learn by correcting your own mistakes,
hello i'm 13 years old I love learning new things and you are an amazing teacher thank you so much for these lessons
Excellent. Become an engineer, make the world a better place. Stick with it!
Paul,
Eleanor and I completed this evening's assignment. She set up the circuit all on her own AND she typed out the code for the initial build, which was a first! She got busy working on another craft after dinner so I did the homework. But, when she was done, she came up and we observed it in action and inspected the code together. Then, we made a modification that set nine brightness levels that cycled through a little faster, and then we watched it in the dark. It was so cool!
Great job!
Paul, I think these tutorials are awesome. I like that you are able to keep the interest of people of all ages. I also like how you explain everything in detail and not only how to do something, but WHY it is done. I'm onto the seventh video now and I believe I will be going through all of them. Thank you!
Finally learning basic coding feels tangible. Best professor I’ve never had, wish I had teachers/professors who taught as well as you throughout my years of education!
I have really enjoyed all the videos so far. I was in automation and worked on some really big projects before hurting my back in 2000. My boss was just starting teach me how to program. He did work for Dow Chemical for 10 years or so before I came to work with him. We did projects for Roche Vitamins, Anheuser Bush, Wetmore Printing in Dallas, Texas where we completely rewired and reprogrammed a Harris Web press an M300 I think it was called. I did about 80% of the wiring on that monster. The project for Roche we dealt with Allen Bradley and another project for Harris Web press here in Houston we completely reworked an M1000 web press with Siemens controls. What fun and challenging the projects were. Thanks and I look forward to learning more and more.
Some pretty sophisticated gear for a $35 - $45 investment. Thank you Paul for sharing your knowledge and expertise with us, having a great time with the Arduino !
Amazed that I’m following this series and understanding it being my first venture into electronics and Arduino. Got setup for lesson 5 right first time, not bragging just pointing out how great and easy to follow your lessons are. So, thank you. Looking forward to completing the set
Great to hear!
I am having fun and enjoying your tutorials so I thank you very much. I am an old hardware guy (think machine language programming MC6800, Z80, F8 when I was in University) and a long time software developer where I spent my career in I.T.. It is joy to play with these little guys again. Arduino makes it really easy.
Excellent teacher, I am that guy right off the street you mentioned earlier with absolutely no former knowledge of this subject and I am learning. Thank you.
Great job! I am really glad to get that feedback. I think people who are willing to work hard can learn this stuff. Keep up the good work
As soon as you mentioned that we could input a number, it gave me an idea. Have it turn up slowly and then regress to nothing. Over and over. I was not disappointed. It looks neat. Real simple code that I slopped out in about a minute.
for(size_t i = 0; i 0; i--)
{
analogWrite(redPin, brightness[i]);
delay(50);
}
Just throw it in your loop function.
Im studying computer engineer, but I want to focus in this area combining programming with hardware, I love your tutorials, greetings from Puerto Rico.
Found your channel by searching Fusion 360. I don't have Fusion and Arduino at the moment, but it won't take long.
However my mother tongue is not English, I understand everything you explain.
Thanks a lot! Great channel.
N'est-ce pas, Xavier ! Hahaha! Super vidéos que fait ce mec-là. Vraiment.
Perso, je n'en suis qu'à mes tout début, mais je suis rendu plus loin, mais j'attends qu'il parle de « struct » .. j'ai un super beau petit projet avec un DS3231 (RTC) et une sonde d'environnement genre BME280 et des modules Bluetooth pour transmettre l'info à l'intérieur.
Bonne chance et bonne journée! On se recommunique si tu veux.
My grandson Mihir has been following the series since episode 1. He really loves it , he is in episode 20 currently.
These videos are excellent and even an old man like myself can follow them with little difficulty. As an ex-teacher myself Paul you are an excellent teacher. Many thanks.
Greetings to you from Egypt👍
Greetings!
For this one, I added comments above each number (//zero, //one, etc) to help keep everything separated. I also added an “off/low” after each number so it flashes vs just switching. Then I used an int for the delay so I could adjust how quickly it switched between numbers. I think I overachieved a little on this assignment. Definitely enjoying the lessons so far.
cool dude! the //just refer to notes (for us) not to be used by the arduino right? also, i feel like my LEDs have very poor turndown ratio. 255 looks like 100 and even 10 feels like it should be 50 or so. You as well?
I've been following your lessons and like your teaching style, concepts actually sink in to my grey matter. I successfully built the counter and programmed it without a hitch, it was pleasing that the programming was quite similar to yours. Thanks Paul.
Sir, your lessons are too good to understand. I normally download the codes & just do some projects. Now I really understand how these codes are written after following your lessons. Keep it up.
Thanks and welcome
Assignment is completed! Thank you very much. Had some problems with Arduino update, downloaded an old version and it works just fine. I am so glad that I continue learning from you.
Thank you very much again.
LEGEND!!!
Samuel ;)
I’m currently a uni student for computer science/engineering, and I got an arduino since it looked like something fun to do during summer. These tutorials have been great, and it’s cool to see computer science topics I have learned in class be physically applied to an actual object. I used a simple while loop to make the light gradually increase then decrease, and it was a joy to see. I hope that tutorials like this help get more people into technological/engineering fields. Have a great day
I really do think these lessons are an excellent supplement to university instruction.
Always a good practice to declare constant variables with const ( const int redPin=9; ). This ensures that we don't inadvertently change the value of the variable in our code. Great Videos!
Hey Paul, your lessons are really good, you teach just like my Dad, I wanted to try low and bright at the same time, so I did declare two variables (bright and low) and then two for delay time, (dt and watitTime); I could share the code here...
int bluePin =11;
int bright =255;
int low =0;
int dt=1000;
int waitTime=10000;
void setup()
{
pinMode(bluePin, OUTPUT);
}
void loop()
{
analogWrite(bluePin,bright);
delay(waitTime);
analogWrite(bluePin,low);
delay(dt);
}
I'm starting my electrician apprenticeship but I want to get into industrial part of it, so I need to learn bits of PLCs. These videos are exactly what I wanted to learn. Gonna automate my veggie patch!
Paul, you are dead on point with the homework assignments. I have had to troubleshoot my mistakes and figure out what is wrong. Since I am a Toyota technician, I troubleshoot all the time and the mistakes I make when programming teaches me what could possibly be a problem when there is an issue. Great work teaching!!
Troubleshooting is a really important skill. By the way, I drive nothing but toyotas for the last 10 years. Right now I am driving a Toyota Hilux Diesel 4WD 4 door . . . perhaps the best vehicle toyota ever made. Sad it is not available in US
@@paulmcwhorter You must have acquired that from our south of the border cousins or overseas. The Hilux was always sold everywhere except in North America. You can get them with diesels along with the Land Cruiser, but not here. Toyota is not interested in trying to meet the emission standards of the U.S. for diesel engines. The last time the U.S. had a diesel Toyota was the early ‘80s. They were great engines but without a turbocharger, very low powered.
My robotics teacher has essentially been having you teach the class at this point, it’s awesome.
That is actually good. It is a good teacher who utilizes available resources, and then coaches and mentors students along side the videos. Wise teacher you have.
This lessons really help me with my University studies to get a better understanding of Arduino so I can do my project for the assessment, especially now with covid-19 and the lectures are online. I love the way you teach you make it very simple and easy to understand and also fun at the same time. Thank you very much for the tutorials. Sergiu from the UK
I recently started learning arduino. Your explanations are the best I found on youtube. The way of talking and the dedication to make ideas clear really show that you are a teacher.
Thank you for taking the time and effort to put these together, they are very enjoyable.
The HW assignments definitely help alot...I follow along with you and then when I do the assignments, I don't struggle too much because you explain everything very clearly. I am completely new to programming and these lessons are really great. Thank you!
Your tutorials are addictive.
Yesterday I was doing some little project of my own and I hardcoded the waiting time instead of using a constant. I heard Paul's voice inside my head shouting "Nooooo! that is bad bad coding!". And then, when the program loaded, I shouted "Boom!". ;-D
But did you hold you breath as it compiled
Thank you Paul for giving of your time and expertise. I ordered the kit that you are using, before I found your tutorials online. When I have a chance in the evenings I have started using your tutorials. Initially I was using the kit and last night I found Arduino TinkerCad which I used to do the homework. I can be in the living room with my wife, keep the mess down and do everything on the computer. My main focus is understanding what is happening which you make sure to include as well as develop coding skills to do practical projects.
Sir, i am grateful for your class .
Its informative and educative .
I believe by the time am done with the whole tutorials I should be able to come up with something for my poultry farm operations .
Hello Paul, Greetings from Czech Republic, thank You for Your lessons and also for Your English. It´s PERFECT!
Just got my Arduino Super Kit today; actually had it handed to me by the mailman (in this case it was a man) right off the truck before he could even load it into the rented mailbox. Paul, I've gone through the first 6 videos, doing the circuits and homework. Having been a professional programmer for 5+ decades, I normally set myself a higher programming standard to meet (e.g. for the homework from video 4 I used a function to streamline the code). All this to point out that your videos can even be fun for salty old bit-hackers like me. It's like going back to my youth :) I may not be able to stand ice coffee (sorry), but I can have fun playing with some simple circuits. Watching these videos has actually given me the idea to design and build a NTP-based digital clock for the bedroom. I can print a case on my Ender 5 Pro.
Boom I am completing tutorial using Mega2560 and use pin13 for analogWrite and brightness value divided in 8 segment between 0 to255 and get wonderful result. Thanks Paul
Awesome tutorial! Finally something actually interesting to learn, school got me way too bored, wish I could have a teacher like you.
It's 3 am here in the UK, and I am still watching! Brilliant! 😀
Fantastic teacher. Taking us from what we know to what we need to know, step by step; really makes it easier to understand what is going on and diagnose problems ourselves. It's great that you've made intentional errors and even started programming how a beginner would with no variables and gone back to show how they make life easier and are an essential part of coding. Similarly pointing out that the circuit needs to be grounded before it is complete etc. The little touches like that are great. I can't skip over the theory lessons on electrons and binary, that I previously had minimal knowledge of. Without those I couldn't have worked out how to build the binary LED counter myself. Keep up the brilliant educational content sir. Many thanks.
Dear Paul, I really like your video, your way of teaching is very clear, it fits me as a beginner in Arduino. Recently I develop a Fuel Flow simulator. Long story short, it has to produce 2 pulses named Drum & Impeller. Let say the pulse width is 5 ms (5000 us), and the Pulse Repetition Time (PRT) is 40 ms, so the Drum pulse will repeat after 40 ms, the same way as Impeller pulse. The time delay between the Drum and Impeller pulses is proportional with the Fuel Flow. It's 40 PPH (Pounds Per Hour) for every one ms, for example 400 PPH --> the delay is 10 ms, 500 PPH the delay is 12.5 ms.
I managed to generate the pulses accurately (I checked with digital oscilloscope, it has cursors for marking times), as well as the time delay of Drum-Impeller pulses. I use delayMicroseconds() function for pulse width and Drum-Impeller delay. However, I could not get accurate timing for PRT every loop. I tried delay() function, I tried while loop with micros(). It seems the program add some time delay. I check for 800 PPH (20 ms delay), Drum: 5ms, delay: 20ms, Impeller: 5ms, total 25 ms than I add 15 ms to cycle the loop to satisfy 40 ms PRT requirement, all pulses and delay are accurate, but PRT is more than 40 ms, it's more than 100 ms. Are there limitations of Arduino? How to solve this? BTW, I use Arduino Nano Atmega 328P/5V for this application.
I would really appreciate it if you can help me.
Regards,
Mula W. Wangsaputa
mula165@gmail.com
If you don't mind to review the sketch I wrote:
/* Fuel Flow Transducer Simulator
* Mula - YB1BUL
* January 2023
*/
#include
#include
#include
#include
Rotary r = Rotary(3,2);
LiquidCrystal_I2C lcd(0x27, 16, 2);
const int drum=9; //output pin DRUM
const int imp=10; //output pin IMPELLER
int pw; //pulse width in microsecond
unsigned long prt; //Pulse Repetition Time or Period in us
unsigned long prtu; //Pulse Repetition Time or Period in us
int ff; //Fuel Flow in PPH
int ffmax; //Max Fuel Flow
byte sff; //Fuel Flow Step in PPH
int ffd;//delay due to FF in us
int ffm; //residue
boolean statepulse;
unsigned long time_now=0;
void setup()
{
lcd.begin();
lcd.backlight();
lcd.clear();
pinMode(drum,OUTPUT);
pinMode(imp,OUTPUT);
ff=0;
ffmax=1000;
sff=10;
pw=5000;
statepulse=true;
PCICR |= (1
Actually it's already solved. I got helps from others in Arduino Forum. Thank you.
here is the final code:
/* Fuel Flow Transducer Simulator
* Mula - YB1BUL
* January 2023
*/
#include
#include
#include
#include
Rotary r = Rotary(3,2);
LiquidCrystal_I2C lcd(0x27, 16, 2);
const int drum=9; //output pin DRUM
const int imp=10; //output pin IMPELLER
unsigned long pw; //pulse width in microsecond
unsigned long prt,prt150,prt100,prt50,prt40; //Pulse Repetition Time or Period in us
int ff,ff70,ff100,ff200; //Fuel Flow in PPH
int ffmax; //Max Fuel Flow
int sff; //Fuel Flow Step in PPH
int ffd;//delay due to FF in us
unsigned long time_now=0UL;
void setup()
{
lcd.begin();
lcd.backlight();
lcd.clear();
pinMode(drum,OUTPUT);
pinMode(imp,OUTPUT);
ff=0;
ff70=70;
ff100=100;
ff200=200;
ffmax=1000;
sff=10;
prt=150000;
prt150=150000;
prt100=100000;
prt50=50000;
prt40=40000;
pw=5000;
PCICR |= (1
I did this project on my own before watching this video. I'm very happy that you went through the whole project and explained your rationale. I know it takes a lot of time, but it really helps.
Alright, so the things I did wrong. First, I put the pinMode commands outside the setup. Of course I got a compile error and did some research to fix it. My second big mistake is that I didn't use any variables. It's hard for me to imagine what variables I need before I write the program, but hopefully I will get better at that. After that it wasn't too tough. I kept trying to come up with a shortcut for entering five lines for each number, but I couldn't. The last thing that stumped me forgetting that binary counts right-to-left while I read left-to-right, so all my entries were backwards. Fortunately I realized that reversing the pin jumpers would be easier than rewriting the code. Whew!
Thanks for all your hard work!
I really enjoyed this video and learned something new. I've been wondering how to dim an LED for a bit now. I did the homework and now have a gently pulsing LED that looks pretty neat! Cant wait to learn more!
Excellent!
These tutorials are amazing, it gives me more skill.
I'm Loving this series man, you're videos getting me through this pandemic!!
you sure are the Bob Ross of electronics, I've been hooked for a week so far, following through the lessons and many thanks for that!
Wow, thanks!
Your teaching ability and quality so high. You can make difficult matter so the easiest way. Here, very simply you explain the difference between analog Write and digital Write. Short video. But very important to understand Arduino Basic. Thanks for your beautiful video.
Wow, thank you!
@@paulmcwhorterThank you.
I am into analog synthesizers and is the reason I am here learning about Arduino, that and wanting to have a lot of fun making cool projects. This info about analog stuff is just what I am looking for. The synths use variable voltages. I want to build some of my own modules.
Thanks for all the good info.
Actually u r killing the difficulty ...
A big salute👍
I've learned more from these couple of videos than my months at coding school.
Pretty cool! I hooked my multimeter up to the circuit and was able to watch the voltage change as I changed the analogWrite value from full, to 3/4, to 1/2, to 1/4 and to zero in 5 second increments.
U are really a great teacher , i haven't heard such kind of high quality explanation, thanks a lot...
Another great lesson Sir Paul!
I'd like to think about it this way:
1. The exponent represents the number of places.
2. The evaluated exponential expression represents the number of decimal digits we can generate.
// Note: we always start with zero.
// Binary System can only utilize either 0, 1 or a combination of 0 and 1 (depending on the number of places available).
---> the weight of each place (starting from the right going to the left) is 2^0, 2^1, 2^2, 2^3,...etc.
// Decimal System can utilize either 0,1,2,3,4,5,6,7,8,9 or a combination of these (depending on the number of places available)
---> the weight of each place (starting from the right going to the left) is 10^0, 10^1, 10^2, 10^3,...etc.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
For Example: BINARY SYSTEM
2^1 = 2
---> The exponent 1 represents that we have one bit-place to write a binary digit on.
---> The evaluated expression is 2, which means we can generate two decimal digits i.e. 0,1.
2^2 = 4
---> The exponent 2 represents that we have two bit-places to write a binary digit on.
---> The evaluated expression is 4, which means we can generate four decimal digits i.e. 0,1,2,3.
2^3 = 8
---> The exponent 3 represents that we have three bit-places to write a binary digit on.
---> The evaluated expression is 8, which means we can generate eight decimal digits i.e. 0,1,2,3,4,5,6,7.
2^4 = 16
---> The exponent 4 represents that we have four bit-places to write a binary digit on.
---> The evaluated expression is 16, which means we can generate sixteen decimal digits i.e. 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
For Example: DECIMAL SYSTEM
10^1 = 10
---> The exponent 1 represents that we have one decimal place to write a decimal digit on.
---> The evaluated expression is 10, which means we can generate ten decimal digits i.e. 0,1,2,3,4,5,6,7,8,9.
10^2 = 100
---> The exponent 2 represents that we have two decimal places to write a decimal digit on.
---> The evaluated expression is 100, which means we can generate one-hundred decimal digits i.e. 0,1,2,3,...,99.
10^3 = 1000
---> The exponent 3 represents that we have three decimal places to write a decimal digit on.
---> The evaluated expression is 1000, which means we can generate one-thousand decimal digits i.e. 0,1,2,3,...,999.
10^4 = 10000
---> The exponent 4 represents that we have four decimal places to write a decimal digit on.
---> The evaluated expression is 10000, which means we can generate ten-thousand decimal digits i.e. 0,1,2,3,...,9999.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I really appreciate and enjoy the virtual classes you provide over RUclips. It is a great resource for those who want to learn, and you are a great example of what a good instructor should be. Thank you sincerely from Manila, Philippines!
While doing the assignment, I tried a little experiment: after coding the LED to go through 5 steps of increasing brightness, I added another 4 steps of decreasing brightness. The LED now cycles through increasing/decreasing brightness continuously. At a delay of 50, there's no noticeable flicker. Pretty cool, actually.
I really appreciate how you build the circuit slightly different from video to video showing that there's not just one way to do things.
Hey Paul, really like how intuitive this is feeling so far - I started my LED at the brightest level and reduced it until it was off:
int redPin = 9;
int bright = 255;
int middle = 127;
int dim = 63;
int off = 0;
int d = 200;
void setup() {
// put your setup code here, to run once:
pinMode(redPin, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
analogWrite(redPin, bright);
delay(d);
analogWrite(redPin, middle);
delay(d);
analogWrite(redPin, dim);
delay(d);
analogWrite(redPin, off);
delay(d);
}
finally got a teacher who teaches about arduino very easily...
I just got addicted to his videos
I can't even skip watching it
I have seen a lot of videos on RUclips but I think you are the best
You are the best thing that can happen to an engineering student.
Really enjoying this series. Here is my homework :)
int firstLED = 9;
int secondLED = 10;
int thirdLED = 11;
int brightOne = 0;
int brightTwo = 255;
int brightThree = 0;
void setup() {
pinMode(firstLED,OUTPUT);
pinMode(secondLED,OUTPUT);
pinMode(thirdLED,OUTPUT);
}
void loop() {
for (int i = 0; i < 25; i++) {
analogWrite(firstLED,brightOne);
analogWrite(secondLED,brightTwo);
analogWrite(thirdLED,brightThree);
brightOne = brightOne + 10;
brightTwo = brightTwo - 10;
brightThree = brightThree + 10;
delay(100);
}
for (int J = 0; J < 25; J++) {
analogWrite(firstLED,brightOne);
analogWrite(secondLED,brightTwo);
analogWrite(thirdLED,brightThree);
brightOne = brightOne - 10;
brightTwo = brightTwo + 10;
brightThree = brightThree - 10;
delay(100);
}
}
i have been trying to casually get into coding for a couple years now. last one was tasker( a phone automation app.turn on gps when connected to car etc.) and i just realized, what always makes me stop. it's Variables! when the instructor started yelling about entering a constant i was instantly up the adding a variable....also on the home work about the 4bit counter i did exactly how he did when he demonstrated that H/w.
this is the place i chose for my beginner learning. turns out the starter kit i bought is the one being used in these videos
you're
this guy Paul goes deep. i mean he goes in depth like DO WE NEED to know all that about LEDS in #3? probably not. but i cant stand when you be like why do i need to do this part, and they say just do it. or, thats how it is.
this particular video clearly doesn't need me hyping it up. but thanks paul for getting variables to start to stick. im excited to watch the rest and use this knowledge on Arduino and possible elsewhere
Getting geared up for some robotic endeavors and starting from scratch. This is AWESOME! Video quality is nice, Audio quality is nice, the camera views are nice. Overall this is what I would expect from an online University. Absolutely...Perfect for what I need. 30 minute to an hour is ideal. I did spend to much time trying to think of a counter and realized I did not know enough of the coding language to proceed and time was short. I did cheat and watch the next lesson and wound up typing the number by number code. Hopefully things get really involved and oriented more towards automation. Start small and grow with experience. I plan to follow all this through until I feel capable.
BEST ARDUINO TUTORIAL FIND IN THE INTERNET
Great video, you have a knack and making so easy to understand. Thank you :)
Glad it was helpful!
I'm semi-retired now and have more time to learn. I'm using your series to refresh my memory and get proficient with Arduino. So, far I'm breezing through. This is a huge help. Thank you for all your work and sharing your knowledge. Once I'm up to speed maybe I can find some way to share with others too? Scouts? Local school?
Excellent!
This will be one the first project I will attempt when I receive my starter kit. Very informative lesson for a beginner like me, thank you keep the good work.
Good luck!
Paul,
Yes analog is great and you explained it well!
I decided to create 4 variable off,dim,medium,bright, so I could turn up the brightness then gradually turn it back down. Very simple concept, but the main thing is I am finally realizing the "POWER of the CODE" lol, and I can do it without referring back to the Tutorial, BOOM!!!
SIDE NOTE: When trouble-shooting, the mind can play tricks on what you "think" you see, i.e. I was going to use the variable name "low" but I typed "dim", However in the "loop" I typed low, and it took a while to recognize the problem because I would see the word dim and my mind fills in the image as "low". So I had to tell my eyes..."Do Behave Baby"... lol
Anyway Another Great Video
Thanks,
Gary