Counting input pulses and show it on lcd

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

i need a code for Atmega32.
the program will take pulses. calculate the pulse rate. multiply with a constant. and show it in lcd.
thanks in advance

This topic has a solution.

Dipu Mahbub

Last Edited: Mon. Jul 17, 2017 - 12:58 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Tell us about the characteristiccs pulse input. Clean transitions, or are we talking about "bouncy" switch signals? What frequency range?

 

What kind of LCD? Character-based (i.e. 44780 or compatible) or graphics display?

"He used to carry his guitar in a gunny sack, or sit beneath the tree by the railroad track. Oh the engineers would see him sitting in the shade, Strumming with the rhythm that the drivers made. People passing by, they would stop and say, "Oh, my, what that little country boy could play!" [Chuck Berry]

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

JohanEkdahl wrote:
Tell us about the characteristiccs pulse input. Clean transitions, or are we talking about "bouncy" switch signals? What frequency range?

A recent pertinent discussion:  http://www.avrfreaks.net/forum/f...

 

Whether to use timer-as-counter or input capture (or "manual" creation of thos facilities) IMO/IME depends largely on the characteristics of the input signal.

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yup, Lee.

 

Let's wait and see if the OP actually is prepared to put in the bulk of the effort himself, or if this is a "give me finished solution" thing..

"He used to carry his guitar in a gunny sack, or sit beneath the tree by the railroad track. Oh the engineers would see him sitting in the shade, Strumming with the rhythm that the drivers made. People passing by, they would stop and say, "Oh, my, what that little country boy could play!" [Chuck Berry]

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

JohanEkdahl wrote:
Let's wait and see if the OP actually is prepared to put in the bulk of the effort himself, or if this is a "give me finished solution" thing..

OP here tacked the request onto a heart-rate monitoring thread, so we can infer some of the information.

 

Still, if planning to attack the oft-solved heart-rate-monitor app there is still a lot of thinking.  "Multiply with a constant"?  Not really that easy.  First, what does the input look like?  Has that part been "solved"?  Next, do you want to update the display every beat?  Or some kind of rolling average over the last n seconds?  High and low rate tracking/display?  Alarms?

 

With clean input the rate is so slow that any method could be used.

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The OP can continue here http://www.avrfreaks.net/forum/i... , he is spamming all forums with his begging for code. This thread is locked.

 

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

Topic locked