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.
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 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 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!
any one know how to write tetris music?
Arnys9812 3 weeks ago
thanks for the "notes.h"
That was what i was looking for :)
Fizzzo42 3 months ago
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.
TheBetterPeter 1 year ago
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
@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!
GTechno13 1 year ago
@aquaticusrov you are correct sir
ltkenbo 7 months ago
This is not PWM.
GTechno13 1 year ago
Comment removed
michellehu12 1 year ago