Raspberry Pi Pico W LESSON 3: Understanding and Using Binary Numbers

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ธ.ค. 2024

ความคิดเห็น • 188

  • @dannycollins5698
    @dannycollins5698 ปีที่แล้ว +6

    Just amazing. I really love mathematics, science, engineering, computers, circuits, robotics, etc. This class is like a dream world for me!

  • @nejatpolat
    @nejatpolat ปีที่แล้ว +3

    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!

  • @keithlohmeyer
    @keithlohmeyer ปีที่แล้ว +9

    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.

  • @nester6460
    @nester6460 ปีที่แล้ว

    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

  • @ianhayden2839
    @ianhayden2839 ปีที่แล้ว +4

    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 🎉

  • @floridian080
    @floridian080 ปีที่แล้ว +1

    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.

    • @paulmcwhorter
      @paulmcwhorter  ปีที่แล้ว

      Excellent!

    • @chrisb7250
      @chrisb7250 6 หลายเดือนก่อน

      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!

  • @thakoutras
    @thakoutras ปีที่แล้ว

    Is it just me or am I the only one enjoying watching your videos in X2 speed? Great work, keep it up!

    • @harveyellis6758
      @harveyellis6758 ปีที่แล้ว

      I have to watch all this channel's videos x2 speed, otherwise they are too slow.

  • @twoface1192
    @twoface1192 4 หลายเดือนก่อน +1

    I love how you say "GIDDY UP"

  • @ArduinoWithArjun
    @ArduinoWithArjun 5 หลายเดือนก่อน

    Hay Paul ,I am from India. I love your tutorials. 😊

  • @jwaddin
    @jwaddin 3 หลายเดือนก่อน

    Brilliant explanation of binary 👌

  • @peterbush3972
    @peterbush3972 ปีที่แล้ว

    Done Homework it works Found 2 led on top part breadboard and 2 led on bottom.

  • @randysnow6171
    @randysnow6171 ปีที่แล้ว

    Excellent instruction, teaching, delivery!

  • @JimmeShelter
    @JimmeShelter ปีที่แล้ว

    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.

  • @МихайлоСвєчкін
    @МихайлоСвєчкін ปีที่แล้ว +1

    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

  • @VAPatriot757
    @VAPatriot757 ปีที่แล้ว

    Thank you for this, Paul. Truly easy to understand!

  • @marciuse70
    @marciuse70 8 หลายเดือนก่อน

    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)

  • @zbigniewloboda3393
    @zbigniewloboda3393 ปีที่แล้ว

    An excellent presentation 👏

  • @edSabio572
    @edSabio572 ปีที่แล้ว +2

    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

    • @robakers6127
      @robakers6127 ปีที่แล้ว +1

      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!,...

    • @edSabio572
      @edSabio572 ปีที่แล้ว +1

      @@robakers6127 No I'd be very glad if you find it useful! I commited to Paul that I would share. Greetings from Portugal!

  • @wnagy2010
    @wnagy2010 ปีที่แล้ว

    Is it possible to use just one resistor? as a paralel circuit!? if so should be 4X220ohms? thanks

  • @MegaSnowlizard
    @MegaSnowlizard 4 หลายเดือนก่อน

    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.

    • @paulmcwhorter
      @paulmcwhorter  4 หลายเดือนก่อน +1

      Make sure you understand the pinout on the pico, and the difference between physical pins and GPIO pins.

  • @justmc62
    @justmc62 ปีที่แล้ว +1

    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 .

    • @paulmcwhorter
      @paulmcwhorter  ปีที่แล้ว +1

      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.

    • @justmc62
      @justmc62 ปีที่แล้ว

      @@paulmcwhorter Thanks Paul..not sure what I was or was not thinking🙃... New upload should now be correct ..

    • @keithlohmeyer
      @keithlohmeyer ปีที่แล้ว +1

      Nice job. Thanks for posting.

  • @lansdonalcorn6998
    @lansdonalcorn6998 ปีที่แล้ว

    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?

  • @viktorhillar5145
    @viktorhillar5145 4 หลายเดือนก่อน

    Thank you!

  • @venezuelainvestigators141
    @venezuelainvestigators141 ปีที่แล้ว

    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.

  • @brainlesslovelessme6594
    @brainlesslovelessme6594 10 วันที่ผ่านมา

    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.

    • @paulmcwhorter
      @paulmcwhorter  10 วันที่ผ่านมา

      Never fear, I teach the python as we go along in this class.

  • @TinFoot
    @TinFoot ปีที่แล้ว

    In position to watch lesson #3 on the Pico W.

  • @darrylhewitt4251
    @darrylhewitt4251 ปีที่แล้ว

    I see the replay when I get up tomorrow morning. This will run @ 1:00am.

  • @buxx5334
    @buxx5334 ปีที่แล้ว

    your background video looks like my village ❤❤

  • @DrDave327
    @DrDave327 ปีที่แล้ว

    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

    • @paulmcwhorter
      @paulmcwhorter  ปีที่แล้ว

      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.

    • @DrDave327
      @DrDave327 ปีที่แล้ว

      @@paulmcwhorter Thanks for the reply!!!!!

  • @pralaymajumdar1206
    @pralaymajumdar1206 10 หลายเดือนก่อน

    Very interesting.

  • @TimNudd0525
    @TimNudd0525 ปีที่แล้ว +10

    Lesson 3 homework assignment geared for beginners: th-cam.com/video/J3p6YwTZrmM/w-d-xo.html Great lesson as always Paul!

  • @codecage9333
    @codecage9333 ปีที่แล้ว

    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.

  • @danny12345
    @danny12345 ปีที่แล้ว

    Thank you

  • @colepdx187
    @colepdx187 ปีที่แล้ว +1

    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

    • @paulmcwhorter
      @paulmcwhorter  ปีที่แล้ว

      LEGEND!

    • @ke7uia
      @ke7uia ปีที่แล้ว

      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?

    • @patrickfox-roberts7528
      @patrickfox-roberts7528 ปีที่แล้ว

      highest I ever got was license minimum 12 WPM !

  • @wnagy2010
    @wnagy2010 ปีที่แล้ว

    or 4 resistor of 220ohms?

  • @Wythaneye
    @Wythaneye ปีที่แล้ว

    Sadly I have a conflict Tuesday and will have to catch the replay. My Lesson 2 Morse code homework is coming!

    • @paulmcwhorter
      @paulmcwhorter  ปีที่แล้ว

      Sorry to hear, hopefully you enjoy the replay.

  • @joeboulet9383
    @joeboulet9383 11 หลายเดือนก่อน

    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

  • @alldaypancakes7058
    @alldaypancakes7058 ปีที่แล้ว

    Are you going to do java lessons i would love if you do java lessons

  • @KarstonHunt
    @KarstonHunt ปีที่แล้ว

    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!!

  • @ProgramingCollege_Ali9731
    @ProgramingCollege_Ali9731 9 หลายเดือนก่อน

    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)

  • @edSabio572
    @edSabio572 ปีที่แล้ว

    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

  • @quaternion-pi
    @quaternion-pi ปีที่แล้ว +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...

  • @LetsCalculateSomething
    @LetsCalculateSomething ปีที่แล้ว

    SOLUTION POSTED HERE: th-cam.com/video/GCTIyuMZHaE/w-d-xo.html
    Great lesson. Nice homework assignment.

  • @stevendemonnin2025
    @stevendemonnin2025 3 หลายเดือนก่อน

    homework failed😓. I got two LEDs to shine, but when I added a third, the whole thing failed.

  • @Wythaneye
    @Wythaneye ปีที่แล้ว

    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

    • @paulmcwhorter
      @paulmcwhorter  ปีที่แล้ว

      Nice Explanation

    • @ke7uia
      @ke7uia ปีที่แล้ว

      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.

  • @charlotteswift
    @charlotteswift ปีที่แล้ว +1

    Homework solution to lesson 3: th-cam.com/video/bzWMz_FJwOE/w-d-xo.html

  • @colepdx187
    @colepdx187 ปีที่แล้ว +1

    Homework assignment for Lesson #3: 8-bit LED Binary Counter.
    th-cam.com/video/2eKm6feJhZQ/w-d-xo.html

  • @xprmntlav8r
    @xprmntlav8r ปีที่แล้ว +1

    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

    • @paulmcwhorter
      @paulmcwhorter  ปีที่แล้ว

      LEGEND!

    • @ke7uia
      @ke7uia ปีที่แล้ว

      Nice simple short length of code. The array is still confusing to me.

    • @xprmntlav8r
      @xprmntlav8r ปีที่แล้ว

      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)

  • @stevetalley9775
    @stevetalley9775 ปีที่แล้ว

    Lesson 3 HW: th-cam.com/users/shorts16H3xnAWn4A

  • @wnagy2010
    @wnagy2010 ปีที่แล้ว

    Never mind, its a counter, not just turn the leds on off 😂

  • @Ian1957a
    @Ian1957a 4 หลายเดือนก่อน

    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

    • @paulmcwhorter
      @paulmcwhorter  4 หลายเดือนก่อน +1

      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.

  • @jimworden9021
    @jimworden9021 11 หลายเดือนก่อน

    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.

  • @TheTechRancher
    @TheTechRancher ปีที่แล้ว

    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.

  • @lorisrobots
    @lorisrobots ปีที่แล้ว +1

    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!

  • @anthonyanzalone8491
    @anthonyanzalone8491 ปีที่แล้ว +3

    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

    • @paulmcwhorter
      @paulmcwhorter  ปีที่แล้ว +1

      LEGEND!

    • @charlotteswift
      @charlotteswift ปีที่แล้ว

      @@anthonyanzalone8491 You've got comments turned off on your video

    • @keithlohmeyer
      @keithlohmeyer ปีที่แล้ว

      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!

    • @anthonyanzalone8491
      @anthonyanzalone8491 ปีที่แล้ว

      @@charlotteswift Thank you for the heads up! Made the switch a few minutes ago.

    • @anthonyanzalone8491
      @anthonyanzalone8491 ปีที่แล้ว

      @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.

  • @WilliamBurlingame
    @WilliamBurlingame ปีที่แล้ว

    My Lesson 3 Homework: th-cam.com/video/Ro4MseRRxpM/w-d-xo.html

  • @davidh1187
    @davidh1187 9 หลายเดือนก่อน

    Homework exercise. Once more - using C on Arduino IDE2 rather than Micropython. th-cam.com/users/shortsV3T5KuaikRk

  • @zacremboldt9160
    @zacremboldt9160 28 วันที่ผ่านมา

    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

  • @todd3c
    @todd3c 11 หลายเดือนก่อน

    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()

  • @charlotteswift
    @charlotteswift ปีที่แล้ว

    Here is my (worst ever) video for lesson 2: th-cam.com/video/N5Kwe1irolw/w-d-xo.html

    • @ke7uia
      @ke7uia ปีที่แล้ว

      Oh my. This is a way to enter a message, then have that message coded out.

  • @kev67uk
    @kev67uk ปีที่แล้ว +1

    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 :)

  • @MrBandiszabo
    @MrBandiszabo ปีที่แล้ว

    Homework for this lesson:
    th-cam.com/video/O8xvtJByshU/w-d-xo.html

  • @ALRXM
    @ALRXM ปีที่แล้ว +1

    Homework 0b11: th-cam.com/video/ticu5W4MGxw/w-d-xo.html
    Thank you for these lessons, they are very helpful 😀

    • @ke7uia
      @ke7uia ปีที่แล้ว

      Oh, so simple. I knew it could be done. Thanks for sharing.

  • @ericsmith7988
    @ericsmith7988 ปีที่แล้ว +1

    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

    • @paulmcwhorter
      @paulmcwhorter  ปีที่แล้ว

      Nice, but you are doing it reversed, left to right. You need to start counting with the rightmost LED, not leftmost.

    • @charlotteswift
      @charlotteswift ปีที่แล้ว

      @@ericsmith7988 You would get a lot more out of these lessons if you enabled comments on your videos. Just a suggestion

    • @ericsmith7988
      @ericsmith7988 ปีที่แล้ว

      @@paulmcwhorter I had the board reversed when I filmed it, sorry for posting it in reverse.

  • @davidlenon9790
    @davidlenon9790 ปีที่แล้ว

    My homework for Lesson #3
    th-cam.com/users/shortsIZAtW3AZs4A?feature=share

  • @Wythaneye
    @Wythaneye ปีที่แล้ว

    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

  • @jameslewellen150
    @jameslewellen150 ปีที่แล้ว +1

    Here is my homework link. th-cam.com/video/noTl7_LC_9Q/w-d-xo.html

  • @chases9870
    @chases9870 ปีที่แล้ว

    i am lenged

  • @jeffreykrenitsky6190
    @jeffreykrenitsky6190 ปีที่แล้ว

    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)

  • @320mb
    @320mb 2 หลายเดือนก่อน

    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)

  • @Gregory.Lukashin
    @Gregory.Lukashin หลายเดือนก่อน

    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

  • @bigbogeyface
    @bigbogeyface ปีที่แล้ว +1

    Here's my homework: th-cam.com/video/UkK1iS6nUk4/w-d-xo.html 🙂👍

  • @karliskide2460
    @karliskide2460 ปีที่แล้ว

    Thank you for the lesson! My homework assignment is here: th-cam.com/video/NTSju8-JPIo/w-d-xo.html

  • @HobbyElectronics-w7l
    @HobbyElectronics-w7l 3 หลายเดือนก่อน

    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!

  • @bw4265
    @bw4265 ปีที่แล้ว

    Mu were ancient and justified.

  • @keithlohmeyer
    @keithlohmeyer ปีที่แล้ว

    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.

    • @ke7uia
      @ke7uia ปีที่แล้ว

      Yes, this one uses binary values. Good one.

  • @tatybara
    @tatybara 10 หลายเดือนก่อน

    homework: th-cam.com/users/shorts0BajIgw0eLE?feature=share ( i added a button for incrementing the counter )

    • @paulmcwhorter
      @paulmcwhorter  10 หลายเดือนก่อน

      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!

  • @darrylhewitt4251
    @darrylhewitt4251 ปีที่แล้ว

    Hi

    • @darrylhewitt4251
      @darrylhewitt4251 ปีที่แล้ว

      Hello Wrld! I think you missed an o 01101111 after the W 01100100

  • @DrDave327
    @DrDave327 ปีที่แล้ว

    Another great exercise, Paul! Here is my solution to the homework:
    th-cam.com/video/5HP9AS1LX94/w-d-xo.html

  • @nicolasbassano3697
    @nicolasbassano3697 ปีที่แล้ว +1

    Here is my solution for today's homework th-cam.com/video/6bcwvptJYSM/w-d-xo.html

  • @adammcquade7026
    @adammcquade7026 ปีที่แล้ว

    th-cam.com/video/JQoiLpPplB0/w-d-xo.htmlfeature=shared hope this is elegant enough lol so proud of my self, thank you Paul.

  • @Ravensheart2000
    @Ravensheart2000 2 หลายเดือนก่อน

    Homework for Lesson 3 th-cam.com/video/25SLD0MfvcE/w-d-xo.htmlsi=F-VQJqE-00XaI8jr Your lessons rock!!!!

  • @danielsaenz5570
    @danielsaenz5570 ปีที่แล้ว

    Here's my homework solution: th-cam.com/video/5lFaO-M4SOA/w-d-xo.html ! A little late!

  • @NerdFrequency
    @NerdFrequency ปีที่แล้ว

    My homework assignment th-cam.com/video/uM2vcU3x8dQ/w-d-xo.html

  • @djicedragon855
    @djicedragon855 8 หลายเดือนก่อน

    Just uploaded Homework. th-cam.com/video/DWmhfz194OU/w-d-xo.html

  • @TheSTallINNA
    @TheSTallINNA 6 หลายเดือนก่อน

    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 🤷‍♂️😃