Pages: [1]   Go Down
Author Topic: pwm frequency(s) for arduino 018  (Read 526 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What is the default pwm frequency(s) for arduino 018 and on what pins?
I have some older H-bridge boards that can only do up to 1khz and don't want to fry them...

Gavin ;D
Logged

Mobile, AL
Offline Offline
Sr. Member
****
Karma: 0
Posts: 314
CAUTION!-Slow Learner
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Can you change the freq on PWM?  

I just looked at the PWM last night with 0018 and it was around 500 hz.  My O'scope showed .490khz, but don't expect to be exact.

Question for others - does all versions of IDE not have the same freq for PWM?  Change it be changed?

Ken H>
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 290
Posts: 25786
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I find it useful to have a quick search of the forum or playground:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1234764073
http://www.arduino.cc/playground/Code/PwmFrequency
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Mobile, AL
Offline Offline
Sr. Member
****
Karma: 0
Posts: 314
CAUTION!-Slow Learner
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you for the links AWOL - I have learned something today.

I see the PWM pins on the Arduino are of two freqs - around 500hz and 1000 hz, depending on pin number.  The freq can be changed, but that also changes the functions that depend on timer used i.e. millis, delay, etc.

Thank you for sharing info.

Ken H.
Logged

Pages: [1]   Go Up
Jump to: