Pages: [1]   Go Down
Author Topic: Using External Clock Generators as Timers  (Read 548 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hello guys. i am in damn need of ur help.
Let me explain u the application first.

In my project, i need to sense three analog voltages signals and one speed signal from rotary encoder(of the motor). After performing some mathematical operations on those signals, i need to generate 2 PWM signals of same frequency but with different duty cycle.

How many timers are needed to do the job?

Can we use any extra oscillator( like 555 timer) to increase the number of timers??????????????
Logged

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

It is a closed loop control guys
Logged

Offline Offline
Edison Member
*
Karma: 116
Posts: 2205
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
How many timers are needed to do the job?

From none to infinite, depending on the capabilities of the designer / programmer.

Quote
Can we use any extra oscillator( like 555 timer) to increase the number of timers??????????????

Yes.
Logged

Poole, Dorset, UK
Offline Offline
Edison Member
*
Karma: 52
Posts: 2311
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
i need to sense three analog voltages signals and one speed signal from rotary encoder(of the motor).

None for this.

Quote
i need to generate 2 PWM signals of same frequency but with different duty cycle.


Two for this, if you use analogWrite()

Mark
Logged

UK
Offline Offline
Shannon Member
****
Karma: 223
Posts: 12630
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How many timers are needed to do the job?

It depends on the nature of the PWM output, which you haven't told us anything about. What frequency and range of duty cycles do you need to support?
Logged

I only provide help via the forum - please do not contact me for private consultancy.

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

I need 2 PWM output at 10khz frequency. these two PWMs are independent outputs.

please guide me. how to add 555 timer as extra timer for this.
Logged

UK
Offline Offline
Shannon Member
****
Karma: 223
Posts: 12630
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I believe this can be achieved using the internal timers, but you'll need to do some work to set the PWM frequency. Nick Gammon has written some excellent articles on using Arduino timers which I think will explain what you need to do.
Logged

I only provide help via the forum - please do not contact me for private consultancy.

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

thanx bro
Logged

Pages: [1]   Go Up
Jump to: