Paul, dear sir, I love your cold coffee and your style. I follow your lessons and enjoy them very much from a distant little town in Italy. My greetings!
WOW! as of the time of this comment I count 13 homework videos. Great job everyone. Paul, it looks like you have a good class going. Thanks for all you do.
I love how u teach. I learned fusion 360 watching your videos an now I've found myself watching your videos to learn coding. Your videos are by far the best out of all the videos I've watched to try an learn somthing your videos have always been the easiest for me to follow
Paul, what an amazing lesson on binary numbers. Very important skill to learn when working with micro controllers and programming in in the field of engineering. Great work 🎉
Me too! Even though we did a similar lesson on Arduino, new ideas come to mind. I’m thinking a potentiometer to control the color, then I can lay a color pallet down next to the potentiometer with an arrow. It would take some work to calibrate the two, but would be fun. Also I’d like to control the brightness with two buttons. Even if you think you’ve seen all these lessons, rewatch them!
35 years ago I was given a task to program a minicomputer. They had a report that needed a standard deviation calculation. That machine could read and write mag tape and had a hex keypad to input data. There was an array of RED LEDs labeled from right to left 1, 2, 4, 8, 16, ... etc. That was it. I could punch in a machine language program if I liked and save it to mag tape, but it was too easy to get errors. Needless to say, I wrote a disassembler for that processor on a IBM 370, reverse engineered the existing program, wrote a square root function (that mini computer didn't do square roots), wrote an assembler, and finished the job. Interestingly, square root functions are a guessing game. I flipped bits on sequentially from most significant on down. I multiplied the guess times itself and if my guess was too high flipped the bit back off and went to the next. It took at most 16 guesses. AKA binary search pattern. This RED LED was a real flashback for me.
you are too cooll. I wanted to do this way, but not sure how in this envrionment. I sort of forced it with an array. but this is the right way to do it in my opinion (which matters very little to the world). Thanks for sharing. Mind if I copy the code? You are ledgend!,...
I have tried GP pins 15,14,13,12 (for 8,4,2,1 values), but the wrong LEDs light up. I thought I needed to add a "reset" period between the flashing binary numbers, but that didn't fix the issue.
Lesson 3 - Binary Counter Homework - Thank you Paul th-cam.com/users/shortsjiiDShqNnFg Using Python 3 with the Thonny editor . Hardware includes the use of a 220 ohm resistor array for LED current limiting .
Minor Point, as you are filming it you start counting at the left most bit instead of the right most bit. You should count from the right LED. You could recode, or just rotate your board 180 degrees.
I did the assignment but I have a question regarding micropython. FYI I'm decent at coding in python and brand spanking new to micro. My approach to writing the code for the assignment was to create a function for each number 1 thru 15. The function for each corresponding number put each LED in the correct setting. I then added all functions to a list. My plan was to use a for loop to iterate thru the list and sleep for one second during each iteration. The result was all LEDs turned on. To troubleshoot the problem I started by simple calling a function by its index in the list (e.g. numbers[4] calls the function five() which sets the LEDs to display binary five). This seems to be the root of the problem in that it didn't work. The function didn't get called correctly. What's going on?
Great videos! Will you be releasing a video for using the Pico W for Bluetooth connectivity? Another great video would be how to use Visual Studio Code for Pico W programming.
I should have learn't python before hand, I didn't know how for loop worked so I made a bunch of functions one-fifteen and just made it on or off corresponding to the number. My method was inefficient but it made it look clean.
Ok, Paul: New vid: counting from right to left as you suggested. Also, to our friend BBF: who states that my resistors are on the wrong side of the LEDs in the circuit. I have demonstrated that the resistors do function as needed in this case. Is there an electronics dogma that states that this is incorrect, even though it is working? Also, just to mention I initially tried to use the new toggle() tool that Paul introduced, but I could not get that to work with this, and I tried to only use methods that have been introduce in this series of tutorials. I failed since I had to use a variable to store the data, which has not been introduced yet, without just regurgitating 16 lists of bit states, like many others did in their solutions. Anyway, here is the new vid: th-cam.com/video/UsDC6LeA-Xk/w-d-xo.html
I AM LEGEND, at least as far as sending SOS with a blinking LED. I have sent at 5 WPM, 10 WPM, and 20 WPM. It was fun figuring out the time unit for the 3 different speeds. I just never got my solution up on TH-cam. Next up I'm going to ask the user for a string to send and the speed at which they want it sent. I just have to figure out the TH-cam piece.
Assignment from lesson 2: A fun and interesting assignment to be sure. Did you know? In 1939 Tim McElroy set the world speed record for copying morse code at a blistering 75.2 wpm. My homework assignment: th-cam.com/video/cCSYFUeO-CU/w-d-xo.html
Pico W Lesson 3: Homework - Synced with Nightcall by Kavinsky - th-cam.com/video/mUujspsFdiA/w-d-xo.html As a Computer Science student I don't get much opportunity to play with hardware so this series has been fantastic for me!!
sir, i have a question. as a maybe simple exercise, i wanna turn on an LED when my phone camera(or any camera connected to laptop) detects a motion, else turn off the LED. is this possible using opencv, micropython and a araspberry pi pcio w? (my goal is connecting micropython and opencv in thonny or any other programming environments)
Lesson 3 using list comprehensions and bit-wise right shift operator: th-cam.com/video/-Kx--UhLOKA/w-d-xo.html&ab_channel=Quaternion An inspirational lesson, as always...
Once again I made multiple videos for Lesson 2. The first is online, my quick and dirty guide to breadboards and making my own jumpers: th-cam.com/video/vOkfB9EQQp8/w-d-xo.html
Yes. I wondered about these items. Which way to locate the bread board, the leads on the resistors and wires lengths. This is the first time of explanation.
Thanks Paul for the Pico W lessons. Here's my homework for this session. I challenged myself to learn more of the programming syntax in this exercise. th-cam.com/video/ik_GE4eDkGs/w-d-xo.html
I tightened up the code further. Only 10 lines - check it out. Learning more every day. from machine import Pin from time import sleep pinNum=[Pin(19,Pin.OUT),Pin(18,Pin.OUT),Pin(17,Pin.OUT),Pin(16,Pin.OUT)] #create an array of pins. Pin19 is least sig. digit while Pin16 is most sig. digit while True: for x in range(16): #run x from 0 to 15 y = x #set y = x for p in range(3,-1,-1): #run p from 3 down to 0 (3,2,1,0) pinNum[p].value(y//(2**p)) #array position p's value = integer of y divided by 2 to the p power (eg. integer of 15/(2^3) = 1) y = y%(2**p) #new value of y will be the remainder of y/(2^p) (eg. new y = 15 - 8 = 7) sleep(1)
While new to using a Raspberry Pi Pico I am not new to programming. I have come up with a much more simpler solution to making a binary counter. This is not a beginners solution but uses a lot less code. A great series of videos looking forward to trying some more. th-cam.com/users/shortsmiYv_pqZMEc
Yes my solution is primitive, but I always only use techniques which I have already taught in the class. So, I only used the commands taught in lessons 1-3.
Homework for Lesson 3 th-cam.com/video/W9GlsWQI6V0/w-d-xo.html Paul, I have a feeling that this course will force us to learn a lot more than you're actually teaching. Keep up the good work.
Finished the homework for this lesson: th-cam.com/video/6Z3xAu_P9ko/w-d-xo.html I am not the best video editor but this is forcing me to try and get better.
Paul! Just found your channel on Monday night. Your ability to take something complicated and break it down into digestible bite size pieces is amazing. I'm very excited to have found your channel. Can't wait for the next episode.. here's my homework for lessons 3 th-cam.com/video/IGMVrbMtgic/w-d-xo.html
Hi Anthony, Great job! If you want comments on your vids you have to click Not made for kids after upload. I know it make you feel like you are posting something bad but that's YT for you. Welcome to the homework club!
@keithlohmeyer122 Hey Keith! Thanks for the explanation about yt kids. I appreciate it. Also, I'm excited to be a part of the club. I can't wait to learn more from Paul and everyone else.
I've been programming for a while but this is my introduction to electronics and microcontrollers. Loving these lessons! Thank you Paul! Here's my completed homework: th-cam.com/video/zLSDchdr6ag/w-d-xo.html
Guess, I'm late to the party... from machine import Pin from time import sleep led1 = Pin(0, Pin.OUT) led2 = Pin(1, Pin.OUT) led3 = Pin(2, Pin.OUT) led4 = Pin(3, Pin.OUT) led1.value(0) led2.value(0) led3.value(0) led4.value(0) x=0 for x in range(6): # toggle leds to get ready led1.toggle() # flash 3 times then GO led2.toggle() led3.toggle() led4.toggle() sleep(.5) for count in range(16): x = count # print(x) # print(bin(x)) z=4 sleep(.5) for y in range(4): if (x & 1): # print("on") eval ("led" + str(z) +".value(1)") else: # print("off") eval ("led" + str(z) +".value(0)") z=z-1 x=x>>1 sleep(1) led1.toggle()# turn leds off led2.toggle() led3.toggle() led4.toggle()
Another great lesson Paul, and here's my homework for this one: th-cam.com/video/YGGdWEC8huQ/w-d-xo.html Having completed the requested challenge I decided to extend it slightly ;) Now looking forward to next week's lesson :)
Better late than dead! Or, in this case, sounding half dead. My voice cleared up enough to record my Lesson 2 homework, sending Morse code via LED. th-cam.com/video/gw4qO6Xy3fs/w-d-xo.html
from machine import Pin from time import sleep LED1 = Pin(10,Pin.OUT) LED2 = Pin(11,Pin.OUT) LED3 = Pin(12,Pin.OUT) LED4 = Pin(13,Pin.OUT) def mod2(num,LED): if num % 2 == 1: LED.value(1) num -= 1 num /= 2 return num def mod16(num): num = mod2(num,LED4) num = mod2(num,LED3) num = mod2(num,LED2) num = mod2(num,LED1) LED1.value(0) LED2.value(0) LED3.value(0) LED4.value(0) for x in range(16): LED1.value(0) LED2.value(0) LED3.value(0) LED4.value(0) mod16(x) sleep(.5)
Homework finished! had to get a little help but i got it working. (uploaded on a different account as to not waste space) th-cam.com/users/shortsO4M3frzdQKg
th-cam.com/video/jBSAAmvF-y8/w-d-xo.htmlsi=cfG_Ln-_ecNylSV0 Did it the "hard" way with a lot of copy and paste. Figured if Paul hasn't used a loop to this point then I won't either!
I did a little homework help th-cam.com/video/ukw2KgI-meU/w-d-xo.html Thanks James for letting me hijack your video! Thanks Paul for another great lesson.
Nice work. It is easier for me to see your homework if you will upload as normal youtube video, and not a short. With a short, I can not pause, back up, or see the code clearly. Thanks!
th-cam.com/video/mEkMbKu16Cs/w-d-xo.htmlsi=XS4LvdsNQuLVylou I used chat gpt to correct my spelling, I'm not very good with python, prefer javascript 🤷♂️😃
Just amazing. I really love mathematics, science, engineering, computers, circuits, robotics, etc. This class is like a dream world for me!
Paul, dear sir, I love your cold coffee and your style. I follow your lessons and enjoy them very much from a distant little town in Italy. My greetings!
Excellent!
WOW! as of the time of this comment I count 13 homework videos. Great job everyone. Paul, it looks like you have a good class going. Thanks for all you do.
I love how u teach. I learned fusion 360 watching your videos an now I've found myself watching your videos to learn coding. Your videos are by far the best out of all the videos I've watched to try an learn somthing your videos have always been the easiest for me to follow
Paul, what an amazing lesson on binary numbers. Very important skill to learn when working with micro controllers and programming in in the field of engineering. Great work 🎉
Paul, I've watched one or two of your earlier lessons on binary numbers in previous series but still found this one taught me a lot! Thank you.
Excellent!
Me too! Even though we did a similar lesson on Arduino, new ideas come to mind. I’m thinking a potentiometer to control the color, then I can lay a color pallet down next to the potentiometer with an arrow. It would take some work to calibrate the two, but would be fun. Also I’d like to control the brightness with two buttons. Even if you think you’ve seen all these lessons, rewatch them!
Is it just me or am I the only one enjoying watching your videos in X2 speed? Great work, keep it up!
I have to watch all this channel's videos x2 speed, otherwise they are too slow.
I love how you say "GIDDY UP"
Hay Paul ,I am from India. I love your tutorials. 😊
Brilliant explanation of binary 👌
Done Homework it works Found 2 led on top part breadboard and 2 led on bottom.
Excellent instruction, teaching, delivery!
35 years ago I was given a task to program a minicomputer. They had a report that needed a standard deviation calculation. That machine could read and write mag tape and had a hex keypad to input data. There was an array of RED LEDs labeled from right to left 1, 2, 4, 8, 16, ... etc. That was it. I could punch in a machine language program if I liked and save it to mag tape, but it was too easy to get errors. Needless to say, I wrote a disassembler for that processor on a IBM 370, reverse engineered the existing program, wrote a square root function (that mini computer didn't do square roots), wrote an assembler, and finished the job.
Interestingly, square root functions are a guessing game. I flipped bits on sequentially from most significant on down. I multiplied the guess times itself and if my guess was too high flipped the bit back off and went to the next. It took at most 16 guesses. AKA binary search pattern.
This RED LED was a real flashback for me.
Memory Lane!
By using binary you can count up to 31 by using five fingers.
If you go extra mile and use both hands, it's 2^10-1, which is 1023
Thank you for this, Paul. Truly easy to understand!
Glad it was helpful!
Hi Paul!!
Congratulations for one more excelent lessons!
Here´s my homework! :c)
Of course it´s possible to do this using for, case and so on but I have used the resources that you teached until now.
from machine import Pin
from time import sleep
led1 = Pin(0, Pin.OUT)
led2 = Pin(1, Pin.OUT)
led3 = Pin(2, Pin.OUT)
led4 = Pin(3, Pin.OUT)
while True:
#0
sleep(2)
led1.value(0)
led2.value(0)
led3.value(0)
led4.value(0)
sleep(2)
#1
sleep(2)
led1.value(1)
led2.value(0)
led3.value(0)
led4.value(0)
sleep(2)
#2
led1.value(0)
led2.value(1)
led3.value(0)
led4.value(0)
sleep(2)
#3
led1.value(1)
led2.value(1)
led3.value(0)
led4.value(0)
sleep(2)
#
led1.value(0)
led2.value(0)
led3.value(1)
led4.value(0)
sleep(2)
#5
led1.value(1)
led2.value(0)
led3.value(1)
led4.value(0)
sleep(2)
#6
led1.value(0)
led2.value(1)
led3.value(1)
led4.value(0)
sleep(2)
#7
led1.value(1)
led2.value(1)
led3.value(1)
led4.value(0)
sleep(2)
#8
led1.value(0)
led2.value(0)
led3.value(0)
led4.value(1)
sleep(2)
#9
led1.value(1)
led2.value(0)
led3.value(0)
led4.value(1)
sleep(2)
#10
led1.value(1)
led2.value(0)
led3.value(1)
led4.value(0)
sleep(2)
#11
led1.value(1)
led2.value(0)
led3.value(1)
led4.value(1)
sleep(2)
#12
led1.value(0)
led2.value(0)
led3.value(1)
led4.value(1)
sleep(2)
#13
led1.value(1)
led2.value(0)
led3.value(1)
led4.value(1)
sleep(2)
#14
led1.value(0)
led2.value(1)
led3.value(1)
led4.value(1)
sleep(2)
#15
led1.value(1)
led2.value(1)
led3.value(1)
led4.value(1)
sleep(2)
An excellent presentation 👏
Thanks Paul! Another excellent lesson. This Pico W rocks!!! My code:
#Binary Counter by Ed Palacios
from machine import Pin
from time import sleep
#Declare pinout
LED_0=Pin(15,Pin.OUT) #Pin 20
LED_1=Pin(14,Pin.OUT) #Pin 19
LED_2=Pin(13,Pin.OUT) #Pin 17
LED_3=Pin(12,Pin.OUT) #Pin 16
#bit Value
bit_0 = 0
bit_1 = 0
bit_2 = 0
bit_3 = 0
#Clear LEDs
LED_0.value(bit_0)
LED_1.value(bit_1)
LED_2.value(bit_2)
LED_3.value(bit_3)
while True:
try:
for i in range(16):
for j in range(4):
bit=(i >> j) & 1
if j==0:
bit_0=bit
if j==1:
bit_1=bit
if j==2:
bit_2=bit
if j==3:
bit_3=bit
sleep(.5)
print('Step#:',i)
print('Ox%',bit_3,bit_2,bit_1,bit_0)
LED_0.value(bit_0)
LED_1.value(bit_1)
LED_2.value(bit_2)
LED_3.value(bit_3)
sleep(2)
except KeyboardInterrupt:
LED_0.value(0)
LED_1.value(0)
LED_2.value(0)
LED_3.value(0)
break
you are too cooll. I wanted to do this way, but not sure how in this envrionment. I sort of forced it with an array. but this is the right way to do it in my opinion (which matters very little to the world). Thanks for sharing. Mind if I copy the code? You are ledgend!,...
@@robakers6127 No I'd be very glad if you find it useful! I commited to Paul that I would share. Greetings from Portugal!
Is it possible to use just one resistor? as a paralel circuit!? if so should be 4X220ohms? thanks
I have tried GP pins 15,14,13,12 (for 8,4,2,1 values), but the wrong LEDs light up. I thought I needed to add a "reset" period between the flashing binary numbers, but that didn't fix the issue.
Make sure you understand the pinout on the pico, and the difference between physical pins and GPIO pins.
Lesson 3 - Binary Counter Homework - Thank you Paul
th-cam.com/users/shortsjiiDShqNnFg
Using Python 3 with the Thonny editor . Hardware includes the use of a 220 ohm resistor array for LED current limiting .
Minor Point, as you are filming it you start counting at the left most bit instead of the right most bit. You should count from the right LED. You could recode, or just rotate your board 180 degrees.
@@paulmcwhorter Thanks Paul..not sure what I was or was not thinking🙃... New upload should now be correct ..
Nice job. Thanks for posting.
I did the assignment but I have a question regarding micropython. FYI I'm decent at coding in python and brand spanking new to micro.
My approach to writing the code for the assignment was to create a function for each number 1 thru 15. The function for each corresponding number put each LED in the correct setting. I then added all functions to a list. My plan was to use a for loop to iterate thru the list and sleep for one second during each iteration. The result was all LEDs turned on. To troubleshoot the problem I started by simple calling a function by its index in the list (e.g. numbers[4] calls the function five() which sets the LEDs to display binary five). This seems to be the root of the problem in that it didn't work. The function didn't get called correctly. What's going on?
Thank you!
Great videos! Will you be releasing a video for using the Pico W for Bluetooth connectivity?
Another great video would be how to use Visual Studio Code for Pico W programming.
I should have learn't python before hand, I didn't know how for loop worked so I made a bunch of functions one-fifteen and just made it on or off corresponding to the number. My method was inefficient but it made it look clean.
Never fear, I teach the python as we go along in this class.
In position to watch lesson #3 on the Pico W.
I see the replay when I get up tomorrow morning. This will run @ 1:00am.
your background video looks like my village ❤❤
Ok, Paul: New vid: counting from right to left as you suggested. Also, to our friend BBF: who states that my resistors are on the wrong side of the LEDs in the circuit. I have demonstrated that the resistors do function as needed in this case. Is there an electronics dogma that states that this is incorrect, even though it is working?
Also, just to mention I initially tried to use the new toggle() tool that Paul introduced, but I could not get that to work with this, and I tried to only use methods that have been introduce in this series of tutorials. I failed since I had to use a variable to store the data, which has not been introduced yet, without just regurgitating 16 lists of bit states, like many others did in their solutions. Anyway, here is the new vid: th-cam.com/video/UsDC6LeA-Xk/w-d-xo.html
The resistor just needs to be in series with the LED. It can be between long leg and voltage supply, or between short leg and ground.
@@paulmcwhorter Thanks for the reply!!!!!
Very interesting.
Lesson 3 homework assignment geared for beginners: th-cam.com/video/J3p6YwTZrmM/w-d-xo.html Great lesson as always Paul!
I AM LEGEND, at least as far as sending SOS with a blinking LED. I have sent at 5 WPM, 10 WPM, and 20 WPM. It was fun figuring out the time unit for the 3 different speeds. I just never got my solution up on TH-cam. Next up I'm going to ask the user for a string to send and the speed at which they want it sent. I just have to figure out the TH-cam piece.
LEGEND!
Thank you
Assignment from lesson 2:
A fun and interesting assignment to be sure. Did you know? In 1939 Tim McElroy set the world speed record for copying morse code at a blistering 75.2 wpm. My homework assignment: th-cam.com/video/cCSYFUeO-CU/w-d-xo.html
LEGEND!
Ah, This is a good one for future reverence. You have any message and the code stamps it out. Where can I steal the code instead of rewriting it?
highest I ever got was license minimum 12 WPM !
or 4 resistor of 220ohms?
Sadly I have a conflict Tuesday and will have to catch the replay. My Lesson 2 Morse code homework is coming!
Sorry to hear, hopefully you enjoy the replay.
Hi folks new to PI , can anyone i tell me why my Prog does not run after i unplug my Pico? I know dumb question. Prob to stupid to answer
Are you going to do java lessons i would love if you do java lessons
Probably not
Pico W Lesson 3: Homework - Synced with Nightcall by Kavinsky - th-cam.com/video/mUujspsFdiA/w-d-xo.html
As a Computer Science student I don't get much opportunity to play with hardware so this series has been fantastic for me!!
LEGEND!
sir, i have a question. as a maybe simple exercise, i wanna turn on an LED when my phone camera(or any camera connected to laptop) detects a motion, else turn off the LED. is this possible using opencv, micropython and a araspberry pi pcio w? (my goal is connecting micropython and opencv in thonny or any other programming environments)
Sorry Paul! I forgot my results for Binary Counter:
Step#: 0
Ox% 0 0 0 0
Step#: 1
Ox% 0 0 0 1
Step#: 2
Ox% 0 0 1 0
Step#: 3
Ox% 0 0 1 1
Step#: 4
Ox% 0 1 0 0
Step#: 5
Ox% 0 1 0 1
Step#: 6
Ox% 0 1 1 0
Step#: 7
Ox% 0 1 1 1
Step#: 8
Ox% 1 0 0 0
Step#: 9
Ox% 1 0 0 1
Step#: 10
Ox% 1 0 1 0
Step#: 11
Ox% 1 0 1 1
Step#: 12
Ox% 1 1 0 0
Step#: 13
Ox% 1 1 0 1
Step#: 14
Ox% 1 1 1 0
Step#: 15
Ox% 1 1 1 1
Lesson 3 using list comprehensions and bit-wise right shift operator: th-cam.com/video/-Kx--UhLOKA/w-d-xo.html&ab_channel=Quaternion An inspirational lesson, as always...
LEGEND!
SOLUTION POSTED HERE: th-cam.com/video/GCTIyuMZHaE/w-d-xo.html
Great lesson. Nice homework assignment.
homework failed😓. I got two LEDs to shine, but when I added a third, the whole thing failed.
Once again I made multiple videos for Lesson 2. The first is online, my quick and dirty guide to breadboards and making my own jumpers: th-cam.com/video/vOkfB9EQQp8/w-d-xo.html
Nice Explanation
Yes. I wondered about these items. Which way to locate the bread board, the leads on the resistors and wires lengths. This is the first time of explanation.
Homework solution to lesson 3: th-cam.com/video/bzWMz_FJwOE/w-d-xo.html
Excellent!
Homework assignment for Lesson #3: 8-bit LED Binary Counter.
th-cam.com/video/2eKm6feJhZQ/w-d-xo.html
LEGEND!
Thanks Paul for the Pico W lessons. Here's my homework for this session. I challenged myself to learn more of the programming syntax in this exercise. th-cam.com/video/ik_GE4eDkGs/w-d-xo.html
LEGEND!
Nice simple short length of code. The array is still confusing to me.
I tightened up the code further. Only 10 lines - check it out. Learning more every day.
from machine import Pin
from time import sleep
pinNum=[Pin(19,Pin.OUT),Pin(18,Pin.OUT),Pin(17,Pin.OUT),Pin(16,Pin.OUT)] #create an array of pins. Pin19 is least sig. digit while Pin16 is most sig. digit
while True:
for x in range(16): #run x from 0 to 15
y = x #set y = x
for p in range(3,-1,-1): #run p from 3 down to 0 (3,2,1,0)
pinNum[p].value(y//(2**p)) #array position p's value = integer of y divided by 2 to the p power (eg. integer of 15/(2^3) = 1)
y = y%(2**p) #new value of y will be the remainder of y/(2^p) (eg. new y = 15 - 8 = 7)
sleep(1)
Lesson 3 HW: th-cam.com/users/shorts16H3xnAWn4A
Never mind, its a counter, not just turn the leds on off 😂
While new to using a Raspberry Pi Pico I am not new to programming. I have come up with a much more simpler solution to making a binary counter. This is not a beginners solution but uses a lot less code. A great series of videos looking forward to trying some more. th-cam.com/users/shortsmiYv_pqZMEc
Yes my solution is primitive, but I always only use techniques which I have already taught in the class. So, I only used the commands taught in lessons 1-3.
Homework for Lesson 3 th-cam.com/video/W9GlsWQI6V0/w-d-xo.html
Paul, I have a feeling that this course will force us to learn a lot more than you're actually teaching. Keep up the good work.
Finished the homework for this lesson: th-cam.com/video/6Z3xAu_P9ko/w-d-xo.html I am not the best video editor but this is forcing me to try and get better.
LEGEND!
Here is my homework with both a beginner-level and an advanced-level solution: th-cam.com/video/jGUIRa2HUOQ/w-d-xo.html Thanks Paul!
Nicely done
Paul! Just found your channel on Monday night. Your ability to take something complicated and break it down into digestible bite size pieces is amazing. I'm very excited to have found your channel. Can't wait for the next episode.. here's my homework for lessons 3
th-cam.com/video/IGMVrbMtgic/w-d-xo.html
LEGEND!
@@anthonyanzalone8491 You've got comments turned off on your video
Hi Anthony, Great job! If you want comments on your vids you have to click Not made for kids after upload. I know it make you feel like you are posting something bad but that's YT for you. Welcome to the homework club!
@@charlotteswift Thank you for the heads up! Made the switch a few minutes ago.
@keithlohmeyer122 Hey Keith! Thanks for the explanation about yt kids. I appreciate it. Also, I'm excited to be a part of the club. I can't wait to learn more from Paul and everyone else.
My Lesson 3 Homework: th-cam.com/video/Ro4MseRRxpM/w-d-xo.html
Homework exercise. Once more - using C on Arduino IDE2 rather than Micropython. th-cam.com/users/shortsV3T5KuaikRk
I've been programming for a while but this is my introduction to electronics and microcontrollers.
Loving these lessons! Thank you Paul!
Here's my completed homework:
th-cam.com/video/zLSDchdr6ag/w-d-xo.html
Guess, I'm late to the party...
from machine import Pin
from time import sleep
led1 = Pin(0, Pin.OUT)
led2 = Pin(1, Pin.OUT)
led3 = Pin(2, Pin.OUT)
led4 = Pin(3, Pin.OUT)
led1.value(0)
led2.value(0)
led3.value(0)
led4.value(0)
x=0
for x in range(6): # toggle leds to get ready
led1.toggle() # flash 3 times then GO
led2.toggle()
led3.toggle()
led4.toggle()
sleep(.5)
for count in range(16):
x = count
# print(x)
# print(bin(x))
z=4
sleep(.5)
for y in range(4):
if (x & 1):
# print("on")
eval ("led" + str(z) +".value(1)")
else:
# print("off")
eval ("led" + str(z) +".value(0)")
z=z-1
x=x>>1
sleep(1)
led1.toggle()# turn leds off
led2.toggle()
led3.toggle()
led4.toggle()
Here is my (worst ever) video for lesson 2: th-cam.com/video/N5Kwe1irolw/w-d-xo.html
Oh my. This is a way to enter a message, then have that message coded out.
Another great lesson Paul, and here's my homework for this one: th-cam.com/video/YGGdWEC8huQ/w-d-xo.html Having completed the requested challenge I decided to extend it slightly ;) Now looking forward to next week's lesson :)
Love it!
Homework for this lesson:
th-cam.com/video/O8xvtJByshU/w-d-xo.html
Homework 0b11: th-cam.com/video/ticu5W4MGxw/w-d-xo.html
Thank you for these lessons, they are very helpful 😀
Oh, so simple. I knew it could be done. Thanks for sharing.
Here is my homework, not sure if I am doing this correctly. I recorded my code along with the lite show. th-cam.com/video/VvuufH5yXhU/w-d-xo.html
Nice, but you are doing it reversed, left to right. You need to start counting with the rightmost LED, not leftmost.
@@ericsmith7988 You would get a lot more out of these lessons if you enabled comments on your videos. Just a suggestion
@@paulmcwhorter I had the board reversed when I filmed it, sorry for posting it in reverse.
My homework for Lesson #3
th-cam.com/users/shortsIZAtW3AZs4A?feature=share
Better late than dead! Or, in this case, sounding half dead. My voice cleared up enough to record my Lesson 2 homework, sending Morse code via LED. th-cam.com/video/gw4qO6Xy3fs/w-d-xo.html
Here is my homework link. th-cam.com/video/noTl7_LC_9Q/w-d-xo.html
Nicely done!
i am lenged
LEGEND!
from machine import Pin
from time import sleep
LED1 = Pin(10,Pin.OUT)
LED2 = Pin(11,Pin.OUT)
LED3 = Pin(12,Pin.OUT)
LED4 = Pin(13,Pin.OUT)
def mod2(num,LED):
if num % 2 == 1:
LED.value(1)
num -= 1
num /= 2
return num
def mod16(num):
num = mod2(num,LED4)
num = mod2(num,LED3)
num = mod2(num,LED2)
num = mod2(num,LED1)
LED1.value(0)
LED2.value(0)
LED3.value(0)
LED4.value(0)
for x in range(16):
LED1.value(0)
LED2.value(0)
LED3.value(0)
LED4.value(0)
mod16(x)
sleep(.5)
This is my Version of Binary Counter Code. Fun Stuff (Z=1 - O=2 - T=4 - F=8)
On my Channel you'll find Videos of Breadboard Computers using IC Logic chips and a 65C02 Processor, and a Error detection Circuit using "D" flip-flops to calculate the CRC code of a message.
th-cam.com/users/shorts2CYH013FwSY
from machine import Pin
from time import sleep
ZLED=Pin(12,Pin.OUT)
OLED=Pin(13,Pin.OUT)
TLED=Pin(14,Pin.OUT)
FLED=Pin(15,Pin.OUT)
while True:
ZLED.off()
OLED.off()
TLED.off()
FLED.off()
sleep(1)
ZLED.on()
OLED.off()
TLED.off()
FLED.off()
sleep(1)
ZLED.off()
OLED.on()
TLED.off()
FLED.off()
sleep(1)
ZLED.on()
OLED.on()
TLED.off()
FLED.off()
sleep(1)
ZLED.off()
OLED.off()
TLED.on()
FLED.off()
sleep(1)
ZLED.on()
OLED.off()
TLED.on()
FLED.off()
sleep(1)
ZLED.off()
OLED.on()
TLED.on()
FLED.off()
sleep(1)
ZLED.on()
OLED.on()
TLED.on()
FLED.off()
sleep(1)
ZLED.off()
OLED.off()
TLED.off()
FLED.on()
sleep(1)
ZLED.on()
OLED.off()
TLED.off()
FLED.on()
sleep(1)
ZLED.off()
OLED.on()
TLED.off()
FLED.on()
sleep(1)
ZLED.on()
OLED.on()
TLED.off()
FLED.on()
sleep(1)
ZLED.off()
OLED.off()
TLED.on()
FLED.on()
sleep(1)
ZLED.on()
OLED.off()
TLED.on()
FLED.on()
sleep(1)
ZLED.off()
OLED.on()
TLED.on()
FLED.on()
sleep(1)
ZLED.on()
OLED.on()
TLED.on()
FLED.on()
sleep(1)
Homework finished! had to get a little help but i got it working. (uploaded on a different account as to not waste space) th-cam.com/users/shortsO4M3frzdQKg
Here's my homework: th-cam.com/video/UkK1iS6nUk4/w-d-xo.html 🙂👍
LEGEND!
Thank you for the lesson! My homework assignment is here: th-cam.com/video/NTSju8-JPIo/w-d-xo.html
th-cam.com/video/jBSAAmvF-y8/w-d-xo.htmlsi=cfG_Ln-_ecNylSV0
Did it the "hard" way with a lot of copy and paste. Figured if Paul hasn't used a loop to this point then I won't either!
LEGEND!
Mu were ancient and justified.
I did a little homework help th-cam.com/video/ukw2KgI-meU/w-d-xo.html
Thanks James for letting me hijack your video!
Thanks Paul for another great lesson.
Yes, this one uses binary values. Good one.
homework: th-cam.com/users/shorts0BajIgw0eLE?feature=share ( i added a button for incrementing the counter )
Nice work. It is easier for me to see your homework if you will upload as normal youtube video, and not a short. With a short, I can not pause, back up, or see the code clearly. Thanks!
Hi
Hello Wrld! I think you missed an o 01101111 after the W 01100100
Another great exercise, Paul! Here is my solution to the homework:
th-cam.com/video/5HP9AS1LX94/w-d-xo.html
Here is my solution for today's homework th-cam.com/video/6bcwvptJYSM/w-d-xo.html
LEGEND!
Nice!
Excellent 👍
th-cam.com/video/JQoiLpPplB0/w-d-xo.htmlfeature=shared hope this is elegant enough lol so proud of my self, thank you Paul.
LEGEND!
Homework for Lesson 3 th-cam.com/video/25SLD0MfvcE/w-d-xo.htmlsi=F-VQJqE-00XaI8jr Your lessons rock!!!!
LEGEND!
Here's my homework solution: th-cam.com/video/5lFaO-M4SOA/w-d-xo.html ! A little late!
LEGEND!
My homework assignment th-cam.com/video/uM2vcU3x8dQ/w-d-xo.html
LEGEND!
Just uploaded Homework. th-cam.com/video/DWmhfz194OU/w-d-xo.html
LEGEND!
th-cam.com/video/mEkMbKu16Cs/w-d-xo.htmlsi=XS4LvdsNQuLVylou
I used chat gpt to correct my spelling, I'm not very good with python, prefer javascript 🤷♂️😃
LEGEND!