What is PWM?

  Рет қаралды 298,828

HackTheWorld

HackTheWorld

6 жыл бұрын

In this tutorial I will explain what PWM is and how to control it with the arduino. In one of the future videos I will show how and where to apply pulse with modulation such as controlling motors.
Thanks for watching!
Music used:
Drankin Song by Kevin MacLeod is licensed under a Creative Commons Attribution license (creativecommons.org/licenses/...)
Source: incompetech.com/music/royalty-...
Artist: incompetech.com/
Software used for the mounting schematics:
Fritzing

Пікірлер: 112
@likithr.n9692
@likithr.n9692 6 жыл бұрын
This was truly an amazing explanation, the presentation was so convincing.....
@thanhhoanginh1381
@thanhhoanginh1381 6 жыл бұрын
Thank you! Saw a lot vids about PWM but you are the one who help me truly understand :D
@freethepotato
@freethepotato 6 жыл бұрын
Thank you! Glad you like it!
@user-vj5wd6wq1v
@user-vj5wd6wq1v 4 жыл бұрын
@@freethepotato Hi can I ask a question
@chalitha22
@chalitha22 2 жыл бұрын
Excellent explanation! Keep creating more of them please 🙂
@eduardomeller6926
@eduardomeller6926 Жыл бұрын
This is the best explanation about PWM I have seen so far. Well done!! Just one little detail that I am sure you know, but came out wrong in the video. At 3:36 you say that the pwm value at 100% is 225, but it is actually 255. I will definitely show your video to my students. Thank you for making it!
@NitishDevadiga_Rattle-Snake619
@NitishDevadiga_Rattle-Snake619 6 жыл бұрын
Thanks for the practical explanation! Really helpful
@plouf1969
@plouf1969 5 жыл бұрын
One cool way to view the duty cycle is to wave the breadboard fast enough, in the dark, and notice how the LED will not draw a continuous line like it would at 100% duty cycle. You'll probably want to lower the frequency at 100Hz though.
@STFocus
@STFocus 3 жыл бұрын
Very basic and understandable presentation ! Thanks
@yaaro713
@yaaro713 7 ай бұрын
Such a wonderful explanation!! Thanks 😊👍
@MarkosPoo
@MarkosPoo 6 жыл бұрын
Just incredible video. Thanks for sharing.
@Mijanur96
@Mijanur96 6 жыл бұрын
What a video ! Thanks , Thanks a lot for this video.
@clems6989
@clems6989 2 жыл бұрын
I done the sketch in Arduino. Then added the serial monitor to watch the (pwmValue) numbers. Slowed the delay to 50ms and I can watch the numbers climb from"0" to "255" and reset...Very Cool
@rahulchowdarypinnaka
@rahulchowdarypinnaka 4 жыл бұрын
Very nice explanation 👏
@MaheshPawaskar
@MaheshPawaskar 3 жыл бұрын
What software did you use to make the animations? Especially, LED brightness, Change in duty cycle of waveform..
@JaykeSapalaran-iq3qs
@JaykeSapalaran-iq3qs Жыл бұрын
Great video information ❤🇵🇭 thank you for sharing your knowledge ♥️
@raquelsapalaran2907
@raquelsapalaran2907 Жыл бұрын
great video tutorial. very easy to understand.❤
@phoenixelectronics2631
@phoenixelectronics2631 6 жыл бұрын
Bro you are too good just keep making more videos on arduino other projects like obstacles detecting robot etc. You are superb👌
@freethepotato
@freethepotato 6 жыл бұрын
Hey man, thank you for the support! You're right, that kind of projects are in my waiting list. Right now I'm so busy with the university I can't make new videos. In a few months, new ones will be coming!
@Bhupatip
@Bhupatip 4 жыл бұрын
pls note it 8-bit varies from 0 to 255
@jimmyjames6239
@jimmyjames6239 6 жыл бұрын
Great job!
@Bianchi77
@Bianchi77 Жыл бұрын
Nice video, thanks :)
@bullygram
@bullygram Жыл бұрын
Learned a lot !
@resitusta8556
@resitusta8556 2 жыл бұрын
Heyecan verici.
@user-do4ch7nt9y
@user-do4ch7nt9y Ай бұрын
Lovely.. Thank you
@solapowsj25
@solapowsj25 Жыл бұрын
Thank you🌹.
@robotronixuz
@robotronixuz Жыл бұрын
Thank you very much!
@radityaarhya
@radityaarhya 6 жыл бұрын
Great Information!
@freethepotato
@freethepotato 6 жыл бұрын
Thank you!
@adhamraad8619
@adhamraad8619 Жыл бұрын
Thank you 🙏
@willievanoudtshoorn3768
@willievanoudtshoorn3768 5 жыл бұрын
I entered your code bet keep getting the warning "function declared implicit int" on line analogWrite? I'm using MPLab. Please help
@samirghedjati4024
@samirghedjati4024 Жыл бұрын
Thank you soooo mcuh!
@Shark1103
@Shark1103 6 жыл бұрын
why does the light resets once it reaches maximum brightness? is the does the byte value resets itself or what? nvm, you said it in the video. thanks a lot.
@mohammedaminaissou2285
@mohammedaminaissou2285 6 жыл бұрын
Awesome ! thnx
@MaheshPawaskar
@MaheshPawaskar 5 жыл бұрын
Which software u have used? Nice animation.
@anannyaguha9487
@anannyaguha9487 6 жыл бұрын
Loved it
@tecnisdaimondm.g9321
@tecnisdaimondm.g9321 Жыл бұрын
Excelente 👌
@nickienok9643
@nickienok9643 6 жыл бұрын
Great!
@davldbradley6073
@davldbradley6073 2 жыл бұрын
Nicely done, you don't see bread boards used in videos anymore..
@TaiLieuBachKhoa
@TaiLieuBachKhoa 11 ай бұрын
Great
@djoudigpl8625
@djoudigpl8625 6 жыл бұрын
in analogwrite=127 this is the half of brightness and the pwm in 50% duty cycle. why the led not blinking ?? i need answer please
@hariharanvaradarajan5270
@hariharanvaradarajan5270 6 жыл бұрын
1) Check if youve connected the LED to the PWM Pins of the Uno. The PWM pins are 3, 5, 6, 9, 10, and 11. 2) Check if the LED is working or not. You might be trying the process with a fused LED.
@Bhupatip
@Bhupatip 4 жыл бұрын
with 127 that intensity is very low, u can check on dark place...
@supperslash1376
@supperslash1376 10 ай бұрын
I am wanting to know what software you used to make the animations, please?
@samoleili
@samoleili 5 жыл бұрын
Hello thanks for your video.. we are using Pic microchip controller and we need the code for PWM to use with our PIC microchip because. The code which you explaining is just for Aurduino Can you help us? We are using PIC24FJ256GA7
@msoleh1935
@msoleh1935 3 жыл бұрын
Kamu sangat membantu saya. Trimakasih
@tahaosman791
@tahaosman791 5 жыл бұрын
Thanks for the video. FYI: the background music volume is little bit high, i can barely hear you :)
@freethepotato
@freethepotato 5 жыл бұрын
Thanks for watching! Next time no music :p
@SchwanaCARDHUT
@SchwanaCARDHUT Жыл бұрын
bravo 👏 👏
@mythorganizer4222
@mythorganizer4222 5 жыл бұрын
Are you going to make more?
@joaoguilherme5511
@joaoguilherme5511 6 жыл бұрын
What software did you use to make the animations (equations, waveform, handwriting, etc)?
@supperslash1376
@supperslash1376 10 ай бұрын
Did you ever find out?
@joaoguilherme5511
@joaoguilherme5511 10 ай бұрын
@@supperslash1376 Unfortunately not. To be honest I had completely forgotten this comment existed 😂
@supperslash1376
@supperslash1376 10 ай бұрын
Well TY at least you replied. :D @@joaoguilherme5511
@supperslash1376
@supperslash1376 6 ай бұрын
​@@joaoguilherme5511 I'm trying to find software to do this kind of thing with. That is NOT regular animation software. [DRAW EACH IMAGE ONE AT A TIME]. 😢
@hayel2015
@hayel2015 6 жыл бұрын
Hello man thanks for this video
@greenman2262
@greenman2262 5 жыл бұрын
(The good) A good explanation of how PWM works, (the bad) the music is distraction.,
@bestyav5529
@bestyav5529 Жыл бұрын
Yeah that's good but it would have been better if you had differentiated the effect of duty cycle on the output voltage and the effect of frequency on the output voltage
@noazri
@noazri Жыл бұрын
tq. subscribed
@AhmadAsmndr
@AhmadAsmndr 4 жыл бұрын
thank you the most simple Explain in the youtube.
@perinoveriza1658
@perinoveriza1658 3 жыл бұрын
Terimakasih
@realtrickybilly
@realtrickybilly 6 жыл бұрын
Thank you. I have tried it and it works. May I film my experiment and upload it to KZbin - of course linking to your video in my description and giving there all credit to you? Make more videos please.
@freethepotato
@freethepotato 6 жыл бұрын
Sure! Thanks for watching.
@hariharanvaradarajan5270
@hariharanvaradarajan5270 6 жыл бұрын
is the PWM value 0 to 225 or 0 to 255 ? coz 8 bits variable can change from 0000-0000 = 0 to 1111 1111 = 255. Pls help
@freethepotato
@freethepotato 6 жыл бұрын
Hey. You are totally right, if I said that PWM ranges from 0 to 225 i was WRONG.
@hariharanvaradarajan5270
@hariharanvaradarajan5270 6 жыл бұрын
No Problem :) Nice Video though..very informative...I am sharing it to my juniors :)
@srikanthm9754
@srikanthm9754 5 жыл бұрын
tq
@suciianggraiinii
@suciianggraiinii 5 жыл бұрын
How about pwm in servo ?
@badrusalam3707
@badrusalam3707 4 жыл бұрын
What happen to red wire (vcc)? You don't plug it aren't you?
@ulysses_grant
@ulysses_grant 6 жыл бұрын
Thanks man. You're brazuca, right? Haha. Great video!
@freethepotato
@freethepotato 6 жыл бұрын
Thanks! From Portugal but you were close.
@Ismimical
@Ismimical Жыл бұрын
I suffer from seizures, do I want pwm or no? I'm confused. What can I do to be able to use my phone and other screens?
@user-vj5wd6wq1v
@user-vj5wd6wq1v 4 жыл бұрын
What does synchronous PWM mean
@electropedia8773
@electropedia8773 4 жыл бұрын
#SamKani Nice video
@sudhansumtripathy
@sudhansumtripathy 5 жыл бұрын
Hi sir, I have a 24 volt motor with 3 inputs, how many PWM signals is needed, I am not very clear about the PWM and how to control the angle.
@uprajsingh
@uprajsingh 5 жыл бұрын
What type of motor is this? 3 pin, one is ground - one is voltage and the third is your PWM. The motor will have specifications of operating frequency.
@sudhansumtripathy
@sudhansumtripathy 5 жыл бұрын
@@uprajsingh 50 MH, so how many PWM do I ned , if I have 4 BLDC and one MC
@mareysaad6597
@mareysaad6597 Жыл бұрын
PWM is used for dimming LEDs and controlling motors
@MegaSuscribe
@MegaSuscribe 5 жыл бұрын
For the love of god, turn down background music
@PiyushSharma-bo6pp
@PiyushSharma-bo6pp 2 жыл бұрын
Jokes on you he doesn't believe in god
@ramzanm45
@ramzanm45 2 жыл бұрын
@@PiyushSharma-bo6pp replace god with electronics
@iamyuvraj128
@iamyuvraj128 2 жыл бұрын
😂
@goto999chandu
@goto999chandu 4 жыл бұрын
How voltage is varied using PWM
@kianfarooghi4572
@kianfarooghi4572 3 жыл бұрын
duty cycle
@Barryd57
@Barryd57 11 ай бұрын
How r we supposed to listen to the speaker with background music playing?
@user-kh6rp6yx1j
@user-kh6rp6yx1j 9 күн бұрын
Hello man.
@oussamaaitahmad9541
@oussamaaitahmad9541 4 ай бұрын
please tell me how do you make this animation
@freethepotato
@freethepotato 4 ай бұрын
It was all done in Adobe After Effects. I use a lot of expressions so I can link animations.
@oussamaaitahmad9541
@oussamaaitahmad9541 4 ай бұрын
@@freethepotatoAAH OK I WANT TO MAKE THE ANIMATION THAT YOU DO IN 2:07 IN POWER POINT FOR MY PRESENTATION BUT OK THANKK YOU
@AJSquirrel53
@AJSquirrel53 3 жыл бұрын
*255
@luistoribio6031
@luistoribio6031 6 жыл бұрын
Esos programas de internet son para entretener,no para inventarlos.
@luistoribio6031
@luistoribio6031 6 жыл бұрын
esos programas de internet solo son para entrenar,no para inventarlos.
@rogernuica7225
@rogernuica7225 3 жыл бұрын
wELL Explained
@s_kh4414
@s_kh4414 4 жыл бұрын
Hi. Why 225? Why not 255?
@heyyo162
@heyyo162 3 жыл бұрын
It was a verbal mistake, of course it is 255.
@ccdd5511
@ccdd5511 2 жыл бұрын
why this aufull music?
@jeremyli2871
@jeremyli2871 6 жыл бұрын
Turn off the background music!
@Justicewarrior795
@Justicewarrior795 3 жыл бұрын
Noone : Please don't talk and let us enjoy the background music.
@hsumeerasanjaya5895
@hsumeerasanjaya5895 5 ай бұрын
Background music hinders
@angelamorton3967
@angelamorton3967 2 жыл бұрын
hey babe
@prbservice8815
@prbservice8815 5 жыл бұрын
Pulse with modulation? I havent se it eyt.
@keeler1160
@keeler1160 3 жыл бұрын
The music was too loud.
@CluckYou21
@CluckYou21 3 жыл бұрын
Background music is WAY too loud.
@hectorheath9742
@hectorheath9742 3 жыл бұрын
Kinda came off the rails at 3:00 minutes in.
@talhaalamgir2110
@talhaalamgir2110 6 жыл бұрын
I dont hear you clearly, because the background music is louder than your voice..
@user-vj5wd6wq1v
@user-vj5wd6wq1v 4 жыл бұрын
Hi can I ask a question
@talhaalamgir2110
@talhaalamgir2110 4 жыл бұрын
@@user-vj5wd6wq1v Yes you can
@ponymoore6140
@ponymoore6140 3 жыл бұрын
Arduino is so boring. Give me a constructed circuit using grass roots electronics everytime
@naturalhealth6033
@naturalhealth6033 Жыл бұрын
Sir, I think there is a mistake. The background music is not loud enough, but people can still hear what you are saying. Can you please increase the background music to loud enough so no one should be able to hear what is being said? I think this is a music video not an educational video. So, your voice is annoying.
@charlesklein7232
@charlesklein7232 4 жыл бұрын
CANT HEaR YOU OVER THE BACKGROUND MUSIC! I DONT DO DRUGS! are you en educator or and entertainer? do you know the difference! i dont care what type of music you use and nobody else does either! why do you use it?
How PWM works | Controlling a DC motor with a homemade circuit
10:01
Understanding Pulse Width Modulation
13:45
Rohde Schwarz
Рет қаралды 11 М.
My little bro is funny😁  @artur-boy
00:18
Andrey Grechka
Рет қаралды 13 МЛН
The day of the sea 🌊 🤣❤️ #demariki
00:22
Demariki
Рет қаралды 102 МЛН
Me: Don't cross there's cars coming
00:16
LOL
Рет қаралды 8 МЛН
MOSFETs and How to Use Them |  AddOhms #11
7:46
AddOhms
Рет қаралды 3,7 МЛН
PROTOCOLS: UART - I2C - SPI - Serial communications #001
11:58
Electronoobs
Рет қаралды 1,4 МЛН
Duty cycle, frequency and pulse width--an explanation
8:53
Justin Miller
Рет қаралды 458 М.
PWM (Pulse Width Modulation) as Fast As Possible
5:17
Techquickie
Рет қаралды 357 М.
Pulse Width Modulation (PWM) - Electronics Basics 23
7:28
Simply Electronics
Рет қаралды 646 М.
Motor interfaces and PWM frequencies
8:44
Texas Instruments
Рет қаралды 11 М.
PWM VS Potentiometer! When to use which technique?
4:56
GreatScott!
Рет қаралды 460 М.
What is PWM?
10:01
Electrical Engineering Tuts
Рет қаралды 120 М.
После ввода кода - протирайте панель
0:18
Up Your Brains
Рет қаралды 1 МЛН
Собери ПК и Получи 10,000₽
1:00
build monsters
Рет қаралды 2,2 МЛН
В России ускорили интернет в 1000 раз
0:18
Короче, новости
Рет қаралды 1,6 МЛН