Pico W Episode 4: Pico Binary Counter

  Рет қаралды 1,605

Lori Pfahler

Lori Pfahler

Күн бұрын

Пікірлер: 29
@leeg.1402
@leeg.1402 Жыл бұрын
Nice video! You explain things so well that it makes it easy for everyone to understand. Thanks for posting.😊
@lorisrobots
@lorisrobots Жыл бұрын
Thanks for watching!
@albrody8861
@albrody8861 Жыл бұрын
Very clean and well thought out. Thank you for the new ideas.
@lorisrobots
@lorisrobots Жыл бұрын
Thanks for watching!
@michaelijff400
@michaelijff400 Жыл бұрын
Great examples, makes understanding binary super easy thanks for the video!
@lorisrobots
@lorisrobots Жыл бұрын
Thanks for watching!
@aryeguetta8592
@aryeguetta8592 Жыл бұрын
Thanks for sharing, very well made. including more then one way of thinking to the world of the makers :)
@lorisrobots
@lorisrobots Жыл бұрын
Thanks for watching!
@TimNudd0525
@TimNudd0525 Жыл бұрын
Very well done, I also love the wide variety of approaches everyone comes up with to achieve the homework solution!
@lorisrobots
@lorisrobots Жыл бұрын
Thanks for watching! It is awesome how many approaches folks have used to get this one done. I have learned some new stuff.
@44mod
@44mod Жыл бұрын
Another thumbs up. Great video. Thank you!!
@lorisrobots
@lorisrobots Жыл бұрын
Thanks for watching!
@keithlohmeyer
@keithlohmeyer Жыл бұрын
Great job. One more way to create a binary string that we can manipulate! I had not seen this one before. Thanks for another well produced video.
@lorisrobots
@lorisrobots Жыл бұрын
It is fun to see all the different approaches that folks come up with.
@hanalei412002
@hanalei412002 Жыл бұрын
nice and clean, thank you for this, I'll show this to my son (10yr) he is really enjoying it.
@lorisrobots
@lorisrobots Жыл бұрын
Glad it is helpful. Thanks for watching!
@hanalei412002
@hanalei412002 Жыл бұрын
@@lorisrobots Hi, My son ran the Advance Version but it didn't allow us to run it, it kept sending us this error: Traceback (most recent call last): File "", line 29, in NameError: name 'keyboardInterrupt' isn't defined
@hanalei412002
@hanalei412002 Жыл бұрын
We copied everything the same as you line for line, so line 29 is: sleep(delayTime)
@hanalei412002
@hanalei412002 Жыл бұрын
@@lorisrobots any assistance here would be much help, but if you can't don't worry it was a blast and we gave it a go. thank you
@keithlohmeyer
@keithlohmeyer Жыл бұрын
@@hanalei412002 The 'K' Has to be capitalized too.
@ronkline8726
@ronkline8726 Жыл бұрын
I forgot to add the comment " Looks like I'm going to need a bigger breadboard ! "
@ronkline8726
@ronkline8726 Жыл бұрын
Thank you, Lori. I was able to follow your logic explanation and code to add additional LEDs (and have it work :-) ) I did all of the "beginner code" for the five LEDs; zero to 31 and 31 to zero. A LOT of copy and paste :-( .
@lorisrobots
@lorisrobots Жыл бұрын
Awesome! It does not matter how fancy you do it - just that you get it to work and have fun. Thanks for watching!
@jyvben1520
@jyvben1520 Жыл бұрын
xval=13;; "{0:04b}".format(xval) gives 1101;; xval=23 gives '10111' so the {0:04b} is just a suggestion as is {:b} , xval=13;; bin(xval) gives 0b1101;; x=bin(xval)[2:6] gives 1101;; xval=23;; x=bin(xval)[2:6] gives 1011, fixed length from '0b10111' to reverse string : x_reversedstring = ''.join(reversed(x)) (tested on MicroPython v1.19.1) want last 4 then bin(xval)[-4:]
@lorisrobots
@lorisrobots Жыл бұрын
Thanks for sharing. I am only counting from 0 to 15 so getting to 23 doesn't happen in my program. Also the way the code works, it pulls the zeros and ones from the indexes zero through three regardless of the length of myBin. If you wished to display a decimal "23", you would need five LEDs to display that number. I believe the concept of my program would work just fine going to binary numbers that need five places. The code would need to change to {0:05b}.format(myNum) to go that high and then you would need to add one more LED to get the additional binary digit. Best wishes.
@robakers6127
@robakers6127 Жыл бұрын
nice job.... I really like your video and format.. The one thing I am struggling with the working storage size of the varables. wth python, and micro python how do you know the storage size? like is a 2 byte integer, 4 byte integer, or 8 byte integer, same thing with float.... Anyway if you have time and the answer is easy sure would like to understand this. Take Care, and I really did like your solution.
@lorisrobots
@lorisrobots Жыл бұрын
That is a detailed question that I don't really know how to best answer. I am still learning too. I think you can control the size of the variables as you set them up. I haven't really needed to address that so far - I just use the defaults. Hope you can find your answer. Thanks for watching!
Pico W Episode 2:  How Fast Can You Blink the LED and Still See It?
4:51
Pico W Episode 6: Capture the Light Game - Part 1
16:40
Lori Pfahler
Рет қаралды 607
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Raspberry Pi Pico W LESSON 4: Create a Binary Counter Using the Pico W
22:58
Pico W Episode 7: Capture the Light Game - Part 2
11:08
Lori Pfahler
Рет қаралды 406
The Dome Paradox: A Loophole in Newton's Laws
22:59
Up and Atom
Рет қаралды 347 М.
World's worst video card? The exciting conclusion
24:23
Ben Eater
Рет қаралды 3 МЛН
Pico W Episode 11: Pico W on WiFi: RGB LEDs and CheerLights
20:53
Linux commands are USELESS... therefore essential!
12:15
Adrien Linuxtricks
Рет қаралды 7 М.
Pico W Episode 1: Setting Up the Raspberry Pi Pico W
12:48
Lori Pfahler
Рет қаралды 16 М.
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН