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

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

Paul McWhorter

Paul McWhorter

Күн бұрын

Пікірлер: 66
@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.
@davidschnider1297
@davidschnider1297 2 жыл бұрын
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
@bruceward6471
@bruceward6471 2 жыл бұрын
Thanks!
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Thanks, Really appreciate that!
@AbdelrahmanAl-Manassra
@AbdelrahmanAl-Manassra 10 ай бұрын
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.
@yashdangat7018
@yashdangat7018 2 жыл бұрын
You are the best teacher i have got ❤
@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!
@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.
@WilliamLundy-e5t
@WilliamLundy-e5t 11 ай бұрын
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
@DaniSpeh
@DaniSpeh 2 жыл бұрын
excellent lesson, as always
@pralaymajumdar1206
@pralaymajumdar1206 2 жыл бұрын
You r legend sir.. Outstanding lesson.
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
Wow, thanks!
@miraclealozie2528
@miraclealozie2528 2 жыл бұрын
Looking forward for this
@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!
@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 Жыл бұрын
​@@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!
@frankowalker4662
@frankowalker4662 2 жыл бұрын
Cheers, Paul.
@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?
@TheScissorunner
@TheScissorunner Жыл бұрын
Who''s your Huckleberry!!! Thanks to you Mr. McWhorter!
@bobingridshaw5361
@bobingridshaw5361 2 жыл бұрын
You could bend the LED backwards to shine on the punchboard and the colours might show up better on camera.
@wardeneternal1140
@wardeneternal1140 6 ай бұрын
thanks to you, Mr McWhorter, I am LEGEND.
@captinkrazy6968
@captinkrazy6968 11 ай бұрын
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.
@martinlewis645
@martinlewis645 Жыл бұрын
Thanks again. Legend
@paulmcwhorter
@paulmcwhorter Жыл бұрын
LEGEND!
@garethhunt6220
@garethhunt6220 Жыл бұрын
i am legend! double chest bump! used a value of 1.5 as integer!
@pokechampion1493
@pokechampion1493 2 жыл бұрын
you can't copy in nano editor but you can cut text (^K) and paste it with (^U)
@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!
@IbnSarBit
@IbnSarBit 2 жыл бұрын
Can u explain about 555 timer please 🥺🥺🥺
@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.
@MultiTechEducation4U
@MultiTechEducation4U 2 жыл бұрын
Nice sir
@johnhechtlinger9465
@johnhechtlinger9465 Ай бұрын
my program works fine but I get this annoying type error and traceback and exception mumbo jumbo whenever I run it. Again, these errors are ignored and the program runs fine. I've done everything to suppress the messages whenever I control c out of the program but to no avail. I want to see a nice clean terminal when my program terminates
@johnhechtlinger9465
@johnhechtlinger9465 Ай бұрын
ok...i figured out what the problem was. I had rpi.gpio and lgpio both installed and there was a conflict. I removed lgpio and everything is ok now. what a nightmare...
@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...
@MultiTechEducation4U
@MultiTechEducation4U 2 жыл бұрын
👍👍
@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 Жыл бұрын
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 Жыл бұрын
LEGEND!
@calebprenger3928
@calebprenger3928 2 жыл бұрын
I think you could make reading a dictionary sound interesting
@peterkarlsson7801
@peterkarlsson7801 2 жыл бұрын
There are at least 2 ways I can copy and paste in Nano.
@patrickfox-roberts7528
@patrickfox-roberts7528 2 жыл бұрын
oo tut tut ...no comments in the code ...........
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
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.
@suelingsusu1339
@suelingsusu1339 2 жыл бұрын
👌👌👏👏💪💪💪🖖🖖🖖🖖
@waynel4344
@waynel4344 2 жыл бұрын
i am legend :)
@paulmcwhorter
@paulmcwhorter 2 жыл бұрын
LEGEND!
@peterbush3972
@peterbush3972 Жыл бұрын
I am legend.
@paulmcwhorter
@paulmcwhorter Жыл бұрын
LEGEND!
@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!
@brucemilyko8549
@brucemilyko8549 2 жыл бұрын
I am legend
@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
Рет қаралды 11 М.
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
Raspberry Pi LESSON 17: Mixing Any Color on an RGB LED
32:23
Paul McWhorter
Рет қаралды 7 М.
Every Developer Needs a Raspberry Pi
27:27
Sam Meech-Ward
Рет қаралды 1,2 МЛН
This Rare Futuristic eBike is a Total Nightmare
18:24
Berm Peak
Рет қаралды 5 МЛН
Raspberry Pi LESSON 10: Making a Dimmable LED with Two Push Buttons
48:09
DON'T Use Raspberry Pis for Servers! (Use THIS)
16:23
Hardware Haven
Рет қаралды 1,2 МЛН
Windows & macOS can't do this, but Linux can!
15:55
The Linux Experiment
Рет қаралды 1 МЛН
Raspberry Pi LESSON 11: Understanding and Using a RGB LED
25:53
Paul McWhorter
Рет қаралды 12 М.
I built an Omni-Directional Ball-Wheeled Bike
27:55
James Bruton
Рет қаралды 3,8 МЛН