Pages: [1]   Go Down
Author Topic: pwm ?  (Read 619 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 27
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi guys
am using atmega 328 chip adruino that has 7 pwm output ports
but what I exactly want to know is that these outputs would generate pwm signals automatically no matter what the inputs are?
or I have to do some sort of things to obtain pwm output signals am really confused about this
WHAT EXACTLY PWM i have read alot about it online but the idea is not really clear to me

thanks guys
Logged

Espoo, Finland
Offline Offline
God Member
*****
Karma: 7
Posts: 586
"Oops, try again..."
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How about if you format your post again. I can't understand the question, or if there's more than one.

Use periods too, so we know where sentence stops, and new begins.

Cheers,
Kari
Logged


The only law for me; Ohms Law: U=R*I       P=U*I
Note to self: "Damn! Why don't you just fix it!!!"

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17301
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi guys
am using atmega 328 chip adruino that has 7 pwm output ports
but what I exactly want to know is that these outputs would generate pwm signals automatically no matter what the inputs are?

No there is no automatic pwm output. you use the arduino analogWrite command to generate a PWM signal on an arduino output pin.

or I have to do some sort of things to obtain pwm output signals am really confused about this
WHAT EXACTLY PWM i have read alot about it online but the idea is not really clear to me

Here is the Arduino reference info on the analogWrite statement and it includes some simple examples:
 http://arduino.cc/en/Reference/AnalogWrite

Lefty


thanks guys
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 27
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks Lefty smiley
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It also depends on if you are going to use your Arduino to drive Servo's.  Many people get confused on the issue, you can use the Servo Library and drive any servo with a Digital pin.

I'm not for sure what your purpose is for the PWM, but if it is Servo's, see:
http://www.arduino.cc/playground/ComponentLib/servo

If you are looking for continuous rotation ideas (robots, etc):
http://www.bajdi.com/continuous-rotation-servos-and-arduino/

AutoCoop



Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 27
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Autocoop am using the adruino for automatic brightness controller
Logged

Pages: [1]   Go Up
Jump to: