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

is there a way to put a pwm signal into arduino, and give it out 4 times larger?
i know there is a way to set the output signal as same as the input signal. but i can't remember the code but it could be the solution.
Any suggestions?
Logged

Malaysia
Offline Offline
Sr. Member
****
Karma: 7
Posts: 393
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

when you say 4 time larger do you mean in term of frequency or do you mean in term of voltage?
if in term of voltage i think you could use the npn pnp transistor push pull circuit?
if in term of frequency i may be wrong but this is what in only know. urm you could change the arduino frequency from 8 but to 16 bit.... or you need to find any dedicated pwm ic to do the dirty work
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
is there a way to put a pwm signal into arduino, and give it out 4 times larger?
Out 4 times larger as in 20 volts? What does "4 times larger" mean?
Logged

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

sorry for that. i meant that i need to convert a 2ms pulse into a 8ms pulse. the frequency shouldn't be changed, just the duration of the pulse.
Logged

Malaysia
Offline Offline
Sr. Member
****
Karma: 7
Posts: 393
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

since your talking about pwm in the realm of ms... why don't you just use the blink without delay to get the timing you need?
Logged

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

i got a remote which i want to configure for antoher device.
This remote sends a 2ms pulse. but i need a 8 ms pulse.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
This remote sends a 2ms pulse.
This remote? Hold it a little closer to the camera will you?

Quote
but i need a 8 ms pulse.
For what?

If you want any real help, you'll need to volunteer some information.
Logged

Dubai, UAE
Offline Offline
Edison Member
*
Karma: 22
Posts: 1675
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

This library will read one or more RC Channels (1 to 2ms pulse width) and will output one or more RC Channels - however it does not check the pulsewidth that you want to output on the basis that you might have a good reason for wanting an 8ms output pulse - as I assume you do.

http://rcarduino.blogspot.com/2012/11/how-to-read-rc-channels-rcarduinofastlib.html

Duane B

rcarduino.blogspot.com
Logged


Pages: [1]   Go Up
Jump to: