PWM music
Loading...
18,431
Loading...
Uploader Comments (aquaticusrov)
see all
All Comments (10)
-
any one know how to write tetris music?
-
thanks for the "notes.h"
That was what i was looking for :)
-
@aquaticusrov you are correct sir
-
Hah, thats nice! I was wondering are arduino boards easy to build. Cos the kits are so expencive that maby it would be cheaper to build one reather then buy.
-
@aquaticusrov Alright. I was just being a bit anal the day I commented. Sorry if I came off as an a-hole. I just wanted to clear things up so someone new to electronics doesn't put a buzzer on their Arduino (or any uC) and their PWM code isn't making notes. :) Yay electronics!
-
This is not PWM.
Loading...
Pulse width modulation uses a constant frequency with varying "widths" of the pulse from 0-100% of one cycle at that frequency. Buzzers are usually driven at 50% duty cycle with varying frequency. So you could call it frequency modulation if you'd like but it's not PWM. I just wanted to clear that up. I even hooked up a buzzer to a uC and PWMed it to make sure.
GTechno13 1 year ago 5
@GTechno13 Sure, what you wrote is absolutely true and indeed frequency modulation is more accurate term. But it in this case pulse width can be used to control volume of the sound - so PWM term is adequate as well ;-)
aquaticusrov 1 year ago