Pages: [1]   Go Down
Author Topic: speed of PWM ?  (Read 1133 times)
0 Members and 1 Guest are viewing this topic.
UK
Offline Offline
Sr. Member
****
Karma: 4
Posts: 331
Arduino - very interesting !
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I read that the The frequency of the PWM signal is approximately 490 Hz

can this be made faster ?

is there a shield that operates at a faster frequency ?
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 639
Posts: 34725
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
can this be made faster
Yes
http://www.arduino.cc/playground/Code/PwmFrequency

Quote
is there a shield that operates at a faster frequency ?
To do what?
Logged

UK
Offline Offline
Sr. Member
****
Karma: 4
Posts: 331
Arduino - very interesting !
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

cheers for the link

it is to control a fuel injector,

its a shame you loose the time functions

can two boards be connected togther to one does the timing and one does the pwm ?
« Last Edit: June 14, 2011, 02:30:29 pm by Gadget999 » Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 639
Posts: 34725
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
can two boards be connected togther to one does the timing and one does the pwm ?
Yes in any number of ways. It depends on how fast they need to communicate with each other.
You can use:-
I2C
SPI
Serial
Logged

UK
Offline Offline
Sr. Member
****
Karma: 4
Posts: 331
Arduino - very interesting !
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ty

is there a shield / frame that allows you to plug them together ?

is there a limit on how many can be connected ?
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 639
Posts: 34725
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

No and no
Logged

UK
Offline Offline
Sr. Member
****
Karma: 4
Posts: 331
Arduino - very interesting !
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

do you daisychain them together with a ribbon cable to get them to work together ?
Logged

0
Offline Offline
Faraday Member
**
Karma: 24
Posts: 3499
20 LEDs are enough
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You can generate PWM without loosing the time functions. You should take care to use only PWM that does not rely on timer0. Then the timer and PWM will not interfere at all.
Logged

Check out my experiments http://blog.blinkenlight.net

UK
Offline Offline
Sr. Member
****
Karma: 4
Posts: 331
Arduino - very interesting !
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ty
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 639
Posts: 34725
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
do you daisychain them together with a ribbon cable to get them to work together ?
I2C - yes
Anything else - no
Logged

Portland, OR
Offline Offline
Full Member
***
Karma: 0
Posts: 101
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

With an UNO just pins 5 and 6 use the same timer0 for pwm.  As has been said you can change the timer settings for timer1 and timer2 without losing the arduino timing functions.
Logged

Pages: [1]   Go Up
Jump to: