Hello Paul. Just wanted to let you know, you can use the short cut Cmd+T (Mac) or Ctrl+T (Windows) in Arduino IDE to auto format the code indentation/structure. Great lessons!
I used his solution initially. Being kind of new to all this. After a cramp in the typing fingers I figured there had to be a better way. And there is. void setup() { // Set up pins as outputs pinMode(10, OUTPUT); pinMode(11, OUTPUT); pinMode(12, OUTPUT); pinMode(13, OUTPUT); } void loop() { // Count from 1 to 15 for (int count = 1; count
Since we started this course going back and forth from Arduino to Pico has anyone else had a reoccurring dream that you are being chased by a roving band of vicious semi colons?
Enjoy your videos! I just started doing your arduino tutorials and was wondering what the basic tools other than the elego starter kit i need. I just ordered a multimeter but would like to know what other essentials i need.
When I coded this homework project I had the uno to the left of breadboard. So I wired pin 2 to the LED that would be 0-1. Pin 3 0-2. You had yours sitting above the breadboard and wired opposite of mine. Is that just a preference or should I adjust now to save severe issues later. Also one thing I did to help with the high and low of each number was to note each with // and the number for that code Also I am legend double fist bump
I'm a Legend! double chest bump! I used only one resistor connected to a common GND (I know it is not correct, but I have at this time only one 1K ohm resistor)
Hey Paul. Life got busy but I’m back in the game now. Hmm, why not go out to 8 LED’s? Is that a byte? If I’m not mistaken 16 bits is a word and 32 is a double word. I seem to remember from my PLC programming days. There’s gotta be a way to put that into a for loop instead of all that copy and paste which causes errors.
Welcome Back. A bit is always a bit, but how many bits in a byte or how many bits in a word depends on the platform. In the early days, an 8 bit machine, meant 8 bits in a byte.
Having watched your previous tutorials on the uno r3 I recently got a R4 so I thought I would go back to the beginning again and see if I could work it out now with a bit more knowledge that you have given me. I used if statements to make it more compact, here’s my code… int num=0; int pin[6]={13,12,11,10,9,8}; int position[6]={32,16,8,4,2,1}; void setup() { Serial.begin(9600); pinMode(13, OUTPUT); pinMode(12, OUTPUT); pinMode(11, OUTPUT); pinMode(10, OUTPUT); pinMode(9, OUTPUT); pinMode(8, OUTPUT); } void loop() { for(int i = 0;i
And God bless you as well! Yes, these lessons will start for absolute beginners, but I plan to take this class much further than I did with the earlier arduino lessons. If you have arduino experience, be patient with this class as we will start with the basics, but I promise we will take the glass to great depth.
Amazon says the kit is out of stock and they don't know when or if it will be back. Is there another source. I hate to miss any of your wonderful tutorials.
I went a little more advanced (I wrote this on my phone since the video is on my TV, so i might have a typo or two): int x=0; //put before setup void loop() { byte num = x; for (byte i=0; i>4; i++) { byte state = bitRead(num,i); digitalWrite(10+i,state)//pins are 13,12,11,10 } x=++x; if (x>16){ x=0; } delay(1000); }
I expanded this further by making an 8-bit one that counts to 255, and optimized the code to about 50 lines! Here's the video: th-cam.com/video/LuLpboaUAps/w-d-xo.html
Here is my video for this lesson. I'm showing 2 solutions. One uses up to 14 LEDs and the other uses a 10 LED Bar. th-cam.com/video/JhY3QRR1ObM/w-d-xo.html
Here's my homework. th-cam.com/video/s_OWrUBq890/w-d-xo.html This isn't my first Paul McWhorter Ardiono course course, and I decided to use some of my past experience. You'll see from the code that having initialised the variables, I used a For loop to count in base 10 to 31. I then decoded the count, into binary, using one variable for each binary digit. Mindful of how fast the Arduino runs, I then turned off all of the LEDs, before turning back on, each LED that the Binary required. You really can't see the LEDs turning off. I feel than my code is shorter. What do you think?
Here is my solution to the lesson 5 homework. Note I used some more advanced programing, that Paul has not taught yet, in my solution. th-cam.com/video/MAP3lo5M5JA/w-d-xo.html
@brucemilyko8549 When I looked at your code, something didn't seem right. As I said in a comment (which has subsequently disappeared) on your video, I've debugged your program using Serial.print and unfortunately it goes out of bounds on the LED pin numbers array and it is actually trying to do a digitalWrite on an 11th pin number. When I ran it, the pin number was something like 24368 which was just the random rubbish after the end of the array. I thought you might like to know.
Well it looks like can comment now! This is my lesson 5 homework, made two counters, the one with 4 bits made on previous lesson and R4 led matrix, using rows to get 8 bits for the other counter th-cam.com/video/fex9cpQbtXQ/w-d-xo.html
Mr. Paul, I hope this message find you well and in good spirit, I am working on this personal project and need some guidance; It is possible to contact you by email? Highly appreciate your response !
Another great lesson and homework done. I just love the fact that you give us homework. Just a great way to learn and reinforce what we are learning. th-cam.com/video/VyEA81l8rww/w-d-xo.html
Excellent, but one minor point. Your LED are counting left to right, instead of right to left. least significant bit should be on the right. You could take it apart redo it and recode it, or you could just rotate the project 180 degrees. Thanks,
you dont even speak slow but for some reason I can watch you on 1.75 speed and still I can follow your lessons. You are the GOATeacher
Gotta-er done. Took it out to 6 LEDs. Really enjoy your lessons. Looking forward to the next lesson. Thank ya sir
Hello Paul. Just wanted to let you know, you can use the short cut Cmd+T (Mac) or Ctrl+T (Windows) in Arduino IDE to auto format the code indentation/structure. Great lessons!
Great content, Paul! I missed the homework assignment. Other business got in the way. I am looking forward to the future learning with this board!
I used his solution initially. Being kind of new to all this. After a cramp in the typing fingers I figured there had to be a better way. And there is.
void setup() {
// Set up pins as outputs
pinMode(10, OUTPUT);
pinMode(11, OUTPUT);
pinMode(12, OUTPUT);
pinMode(13, OUTPUT);
}
void loop() {
// Count from 1 to 15
for (int count = 1; count
Why do you use bare min. instead of new sketch?
Since we started this course going back and forth from Arduino to Pico has anyone else had a reoccurring dream that you are being chased by a roving band of vicious semi colons?
Yes sir, those semi colons are absolutely ruthless!! lol
@drdentin3215
and the capital T of true is beating me over the head!
Thanks!
Thanks, I really appreciate the support!
Enjoy your videos! I just started doing your arduino tutorials and was wondering what the basic tools other than the elego starter kit i need. I just ordered a multimeter but would like to know what other essentials i need.
When I coded this homework project I had the uno to the left of breadboard. So I wired pin 2 to the LED that would be 0-1. Pin 3 0-2.
You had yours sitting above the breadboard and wired opposite of mine.
Is that just a preference or should I adjust now to save severe issues later.
Also one thing I did to help with the high and low of each number was to note each with // and the number for that code
Also I am legend double fist bump
I'm a Legend! double chest bump! I used only one resistor connected to a common GND (I know it is not correct, but I have at this time only one 1K ohm resistor)
Made it to 31, lots of lawn chair breaks along the way, but I got there. Thanks for the great content. (I am non-facebook) ken
Hey Paul. Life got busy but I’m back in the game now. Hmm, why not go out to 8 LED’s? Is that a byte? If I’m not mistaken 16 bits is a word and 32 is a double word. I seem to remember from my PLC programming days. There’s gotta be a way to put that into a for loop instead of all that copy and paste which causes errors.
Welcome Back. A bit is always a bit, but how many bits in a byte or how many bits in a word depends on the platform. In the early days, an 8 bit machine, meant 8 bits in a byte.
Having watched your previous tutorials on the uno r3 I recently got a R4 so I thought I would go back to the beginning again and see if I could work it out now with a bit more knowledge that you have given me.
I used if statements to make it more compact, here’s my code…
int num=0;
int pin[6]={13,12,11,10,9,8};
int position[6]={32,16,8,4,2,1};
void setup()
{
Serial.begin(9600);
pinMode(13, OUTPUT);
pinMode(12, OUTPUT);
pinMode(11, OUTPUT);
pinMode(10, OUTPUT);
pinMode(9, OUTPUT);
pinMode(8, OUTPUT);
}
void loop()
{
for(int i = 0;i
Your lessons are such a grate start for beginners. God bless you.
And God bless you as well! Yes, these lessons will start for absolute beginners, but I plan to take this class much further than I did with the earlier arduino lessons. If you have arduino experience, be patient with this class as we will start with the basics, but I promise we will take the glass to great depth.
Used two nested for loops
Really enjoying. ans Sunfounder excellent kit. thanks for recommendation
Amazon says the kit is out of stock and they don't know when or if it will be back. Is there another source. I hate to miss any of your wonderful tutorials.
As usual this was another great lesson!
Suggest you introduce the concept of for loops a bit earlier to avoid all the copy/paste stuff, but otherwise another good lesson.
Yet how would one truly appreciate the for loop if they had not experienced the drudgery of doing it the brute force way?
Thank you for this content.
Hello Paul can you make series on PCB designing , it will be great ..
Thank you Paul!
I am Legend! Double Chest Bump….LOL
LEGEND!
I went a little more advanced (I wrote this on my phone since the video is on my TV, so i might have a typo or two):
int x=0; //put before setup
void loop() {
byte num = x;
for (byte i=0; i>4; i++) {
byte state = bitRead(num,i);
digitalWrite(10+i,state)//pins are 13,12,11,10
}
x=++x;
if (x>16){
x=0;
}
delay(1000);
}
where are your first lessons
I expanded this further by making an 8-bit one that counts to 255, and optimized the code to about 50 lines!
Here's the video: th-cam.com/video/LuLpboaUAps/w-d-xo.html
LEGEND!
I am Legend! Double Chest Bump 😍😍
LEGEND!
Okay next time I’m going to make for a long videos
Here is my solution for Arduino R4 wifi lesson 6 homework, binary counter up to 31 :- th-cam.com/video/gJbcRk4jLYU/w-d-xo.html
LEGEND!
you look healthy
I am uber legend!!!
Here is my video for this lesson. I'm showing 2 solutions. One uses up to 14 LEDs and the other uses a 10 LED Bar. th-cam.com/video/JhY3QRR1ObM/w-d-xo.html
LEGEND!
th-cam.com/video/LwD-Bkz3kLU/w-d-xo.html
Another way (jazzed up with a LED counter )
LEGEND!
Homework complete - with explanation - th-cam.com/video/6ohYiuj4wrY/w-d-xo.html
LEGEND!
I am legend! **
"we all fold up every once in a while" 😅
I am legend!
LEGEND!
Here's my homework. th-cam.com/video/s_OWrUBq890/w-d-xo.html This isn't my first Paul McWhorter Ardiono course course, and I decided to use some of my past experience. You'll see from the code that having initialised the variables, I used a For loop to count in base 10 to 31. I then decoded the count, into binary, using one variable for each binary digit. Mindful of how fast the Arduino runs, I then turned off all of the LEDs, before turning back on, each LED that the Binary required. You really can't see the LEDs turning off. I feel than my code is shorter. What do you think?
LEGEND!
Homework #6 : th-cam.com/video/-uMVnZKV6uM/w-d-xo.htmlsi=hhKOcF4Amf4Zq_v8
LEGEND!
th-cam.com/users/shortsVguGJntoqAo binary counter counts to 31 decimal
Nice work. Hey, please post your homeworks as normal youtube videos, not shorts. Shorts can not be paused and harder to see. Thanks!
I am…..a beginner. ;-)
Sorry about the green LED.. run out of red….
th-cam.com/users/shortsR9FvU5a67kQ?si=YDKQ9B-ev3Kc8rlY
LEGEND!
I am legend
LEGEND!
Here is my solution to the lesson 5 homework. Note I used some more advanced programing, that Paul has not taught yet, in my solution.
th-cam.com/video/MAP3lo5M5JA/w-d-xo.html
LEGEND!
My solution also covers this week's homework too ( and then some)
@brucemilyko8549 When I looked at your code, something didn't seem right. As I said in a comment (which has subsequently disappeared) on your video, I've debugged your program using Serial.print and unfortunately it goes out of bounds on the LED pin numbers array and it is actually trying to do a digitalWrite on an 11th pin number. When I ran it, the pin number was something like 24368 which was just the random rubbish after the end of the array. I thought you might like to know.
I am legend, but cannot prove it...
Well it looks like can comment now! This is my lesson 5 homework, made two counters, the one with 4 bits made on previous lesson and R4 led matrix, using rows to get 8 bits for the other counter th-cam.com/video/fex9cpQbtXQ/w-d-xo.html
LEGEND!
I I'm legend
LEGEND!
I am legend🦵💪
LEGEND!
Mr. Paul, I hope this message find you well and in good spirit, I am working on this personal project and need some guidance; It is possible to contact you by email? Highly appreciate your response !
Another great lesson and homework done. I just love the fact that you give us homework. Just a great way to learn and reinforce what we are learning.
th-cam.com/video/VyEA81l8rww/w-d-xo.html
Excellent, but one minor point. Your LED are counting left to right, instead of right to left. least significant bit should be on the right. You could take it apart redo it and recode it, or you could just rotate the project 180 degrees. Thanks,
This is the second try at getting my homework to "stick:" th-cam.com/video/xaeJZBbaksY/w-d-xo.html