Raspberry Pi LESSON 13: Set Color of RGB LED with Push Buttons

  Рет қаралды 9,036

Paul McWhorter

Paul McWhorter

Күн бұрын

Пікірлер: 64
@davidschnider1297
@davidschnider1297 Жыл бұрын
Thanks Paul.. .I applied your starting Duty Cycle to my solution.. I wasn't starting at Zero brightness.. glad that there was no more homework... I did play with mine and using the same hardware setup.. ignored the push buttons .. and had the program generate a random number between 1 and 20 for each of the colors and then output that combo to the OLED.. applying the newly calculated Logarithmic Constant for 20 steps between zero and 100%. and repeating endlessly at 0.5 second intervals... FUN..... impressed my wife
@AbdelrahmanAl-Manassra
@AbdelrahmanAl-Manassra 7 ай бұрын
you are the True Legend!!!! i did solve the assignment correctly, but thank you so much for what you are doing, I have been looking for a while for a course like this and finally here we are. thank you so much and please do not stop sharing this knowledge, we are really enjoying following up with you!! Abd.
@peterkarlsson7801
@peterkarlsson7801 2 жыл бұрын
I can use any value from 0 to 100 (0 and 100 included) as duty cycle for PWM, and it works as expected. I think it also worked for you in lesson 9. Note that Trigger mode Normal on an oscilloscope will NOT trigger a change on the screen for fixed DC voltages. Duty cycle 100 will output a DC voltage of 3.3V. On my scope, I changed Trigger mode to Auto, and I could see the expected output for any duty cycle between 0 and 100.
@TheScissorunner
@TheScissorunner Жыл бұрын
Who''s your Huckleberry!!! Thanks to you Mr. McWhorter!
@larryplatzek9017
@larryplatzek9017 2 жыл бұрын
I enjoyed this lesson, looking forward to next lesson! Sorry to miss tuesday and thursday live sesions , Tuesday is election day, but will watch when I can next week!
@WilliamLundy-e5t
@WilliamLundy-e5t 7 ай бұрын
Ok I am just learning the Raspberry PI python coding so trying to understand the try, and while true statements, I had a real struggle to get this to finally work. Note to my self there is a lot of deference to the "if DCr=>99 than if DCr=>.99 Took watching the assignment about four times to find my mistake. thanks for the good work
@theamazingnachocamacho6500
@theamazingnachocamacho6500 Жыл бұрын
I have learned so much from this series, 9 months behind, but thank you for taking the time, as a welder learning coding and completing these exercise, then trying to trouble shoot, Why isn't it working! What's this error? But when you figure it out, the dopamine rush! Eureka! Thank you.
@xavierbraive4470
@xavierbraive4470 2 жыл бұрын
great lesson Paul, thank you ! i will adapt that to my common anode RGB LED.
@yashdangat7018
@yashdangat7018 2 жыл бұрын
You are the best teacher i have got ❤
@whoknows1893
@whoknows1893 2 жыл бұрын
Hey paul. I just wanted to share my story of the last year. I have watched this channel for about nine months on an acount with my real name. I didnt want to peapole to know I was commenting so I made this acount. Anyways. I took your arduino series and had lots of fun. Then I watched the sucsesfull enginer video thing. It really made the diffirence hearing those words. I decided to take a little harder course with a much better teacher and work harder. Now I got an A as my grade, before I had E wich is accepted here but you know, not great. I looked at a thing that mapped out all my tests and the only one on C was the first test I did there. Everything else was a and I only missed 1 a question. Thank you for those motivating words!
@pralaymajumdar1206
@pralaymajumdar1206 2 жыл бұрын
You r legend sir.. Outstanding lesson.
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Wow, thanks!
@frankowalker4662
@frankowalker4662 2 жыл бұрын
Cheers, Paul.
@wardeneternal1140
@wardeneternal1140 3 ай бұрын
thanks to you, Mr McWhorter, I am LEGEND.
@DaniSpeh
@DaniSpeh 2 жыл бұрын
excellent lesson, as always
@miraclealozie2528
@miraclealozie2528 2 жыл бұрын
Looking forward for this
@rvsoffgrid7884
@rvsoffgrid7884 Жыл бұрын
Great lesson! We are similar age and my eyes have difficulty seeing the white writing on black background on the LXTerminal. When I go to preferences I can change the background color but I can’t accept it because the preferences window extends below my screen. Any ideas?
@floridian080
@floridian080 2 жыл бұрын
Great lesson, thanks. Also enjoyed the quick view of pied kingfisher diving in the Nile at the end of the lesson. A simple question please: why are 3 resistors needed for RGBLED? Couldn't we just have 1 resistor attached to the RGB ground pin?
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
you can not use 1 resistor. If you did, changing the value of one channel would change the value of the other channels. If you do not believe me, connect three seperate LED, connect grounds together, and then run through a resistor to circuit ground. You will see changing brightness of one will affect brightness of the others.
@connectme2karthik
@connectme2karthik 9 ай бұрын
​@@paulmcwhorterwhy is it so? How a single resistor can impact by bringing a change in other resistors when you try to change in one?
@mecatronicsforeveryone9565
@mecatronicsforeveryone9565 2 жыл бұрын
thank you. I have learned a lot from your channel.
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Glad to hear it!
@captinkrazy6968
@captinkrazy6968 8 ай бұрын
im getting the same results with your program that i did with mine. the red button works but the green button is activating the green and blue channels but the ligts dont work. only for red. I think i fried my PWMs or something.
@bobingridshaw5361
@bobingridshaw5361 2 жыл бұрын
You could bend the LED backwards to shine on the punchboard and the colours might show up better on camera.
@garethhunt6220
@garethhunt6220 Жыл бұрын
i am legend! double chest bump! used a value of 1.5 as integer!
@ShinesMonkey1
@ShinesMonkey1 Жыл бұрын
I am legend! Which pins are PWM on the pi 4? I used the pins you used but my Pinout doesn’t show PWM on pins 35 and 37. EDIT: Just figured out that since we are using a software PWM set-up, all the GPIO pins will work. I will leave this comment up, in case somebody else was wondering the same thing. Thanks for the great lesson Paul!
@jessekloberdanz246
@jessekloberdanz246 2 жыл бұрын
Thank you for another great video Paul! I am still working through many of your series of lessons, but I wanted to put in a request if you have not done it yet. For either Arduino or RPi, it would be cool to add a lesson on using a 12 V relay, something like a SRD-12VDC-SL-C. Took me awhile to figure it out the first time on my own and I think you would have a lot of interest if it was taught by you. I know it requires a power supply of some sort, so maybe for a different series.. But for me it was the next stepping stone using GPIO's so that I could use it for a practical use (i.e running a liquid pump). Just a thought! We appreciate you.
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
I dont do lessons on the relays because I avoid any topic where someone could hurt themselves. Using relays can involve voltages and currents that can actually kill you. Really to use relays you need to first really understand electrical safety. So, I stick to things that there is no way someone could get hurt.
@pokechampion1493
@pokechampion1493 Жыл бұрын
you can't copy in nano editor but you can cut text (^K) and paste it with (^U)
@martinlewis645
@martinlewis645 Жыл бұрын
Thanks again. Legend
@paulmcwhorter
@paulmcwhorter Жыл бұрын
LEGEND!
@bruceward6471
@bruceward6471 2 жыл бұрын
Thanks!
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Thanks, Really appreciate that!
@IbnSarBit
@IbnSarBit 2 жыл бұрын
Can u explain about 555 timer please 🥺🥺🥺
@MultiTechEducation4U
@MultiTechEducation4U 2 жыл бұрын
Nice sir
@LucasBiunessa
@LucasBiunessa 2 жыл бұрын
HI paul, my name is Lucas and i want to know if you are gonna make more videos about arduino ? Thank you !
@teymurasgarli9506
@teymurasgarli9506 Жыл бұрын
I actually wait till the very end to hear Paul mentioning silly cat videos...
@freddyveza
@freddyveza Жыл бұрын
I'm trying to reach premiere on this lesson, won't be making any videos for the sake of speed, but I am legend
@liamoliverdarroch6482
@liamoliverdarroch6482 11 ай бұрын
I am legend! Although I forgot part of the command to set up a PWM thingy so I had to go back to an older lesson. Does this count? Either way I'm proud of what I achieved :p
@paulmcwhorter
@paulmcwhorter 11 ай бұрын
LEGEND!
@MultiTechEducation4U
@MultiTechEducation4U 2 жыл бұрын
👍👍
@calebprenger3928
@calebprenger3928 2 жыл бұрын
I think you could make reading a dictionary sound interesting
@waynel4344
@waynel4344 2 жыл бұрын
i am legend :)
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
LEGEND!
@peterkarlsson7801
@peterkarlsson7801 2 жыл бұрын
There are at least 2 ways I can copy and paste in Nano.
@peterbush3972
@peterbush3972 Жыл бұрын
I am legend.
@paulmcwhorter
@paulmcwhorter Жыл бұрын
LEGEND!
@patrickfox-roberts7528
@patrickfox-roberts7528 Жыл бұрын
oo tut tut ...no comments in the code ...........
@paulmcwhorter
@paulmcwhorter Жыл бұрын
These videos are long, and if I typed comments in the code, they would be twice as long. I explain each step in the video, there is no need for me to bore you by haveing you watch me type what I am already saying. I am very deliberate in what I do.
@brucemilyko8549
@brucemilyko8549 Жыл бұрын
I am legend
@suelingsusu1339
@suelingsusu1339 2 жыл бұрын
👌👌👏👏💪💪💪🖖🖖🖖🖖
@DrDave327
@DrDave327 2 жыл бұрын
Great lesson, Paul. Here is a link to my homework: kzbin.info/www/bejne/jZfMeaSln7F5mZY. I did not get the RGB button covers in my kit. I wonder if anyone else experienced that.
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Nice Work!
@ScottSummerill
@ScottSummerill 2 жыл бұрын
Not sure why you're even doing this series since there are ZERO model 4's available anywhere.
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Because there are lots of pi's out there, and everything we have done so far could be done on any pi.
@keithlohmeyer
@keithlohmeyer 2 жыл бұрын
Adafruit still has pi 400's in stock. You should be able to do everything except the pi camera with it.
@aregayohannes9973
@aregayohannes9973 2 жыл бұрын
Know that you are helping and serving a lot of people throughout the world! you are doing it all out of good and kind heart! someone from Africa, Ethiopia, is so grateful of what you doing! who doesn't love paul after all? Thank You Paul! God bless you! is there a way that we can contact you? contact address please?
@tanvirahmed8586
@tanvirahmed8586 Жыл бұрын
I am legend
@paulmcwhorter
@paulmcwhorter Жыл бұрын
LEGEND!
Raspberry Pi LESSON 12: Pushbutton Control of RGB LED
53:23
Paul McWhorter
Рет қаралды 10 М.
Wednesday VS Enid: Who is The Best Mommy? #shorts
0:14
Troom Oki Toki
Рет қаралды 50 МЛН
Как Ходили родители в ШКОЛУ!
0:49
Family Box
Рет қаралды 2,3 МЛН
요즘유행 찍는법
0:34
오마이비키 OMV
Рет қаралды 12 МЛН
Raspberry Pi Tutorial (Model B+) - Using a Breadboard and LED’s
14:05
Raspberry Pi 5: EVERYTHING you need to know
20:32
Jeff Geerling
Рет қаралды 1,2 МЛН
WAY faster than a Raspberry Pi-but is it enough?
17:26
Jeff Geerling
Рет қаралды 679 М.
Raspberry Pi LESSON 17: Mixing Any Color on an RGB LED
32:23
Paul McWhorter
Рет қаралды 6 М.
Raspberry Pi Servo Motor Control
17:36
ExplainingComputers
Рет қаралды 391 М.
Every Developer Needs a Raspberry Pi
27:27
Sam Meech-Ward
Рет қаралды 761 М.
Wednesday VS Enid: Who is The Best Mommy? #shorts
0:14
Troom Oki Toki
Рет қаралды 50 МЛН