LED bar graph audio level with peak hold fall down effect.

Status
Not open for further replies.

Jestin_cubetech

Advanced Member level 1
Joined
Jun 24, 2012
Messages
499
Helped
76
Reputation
152
Reaction score
73
Trophy points
1,328
Visit site
Activity points
3,697


how to make a peak hold fall down effect using c language.




peak hold fall down effect

- - - Updated - - -

peak hold fall down effect sample video
 

Attachments

  • led audio level peak hold video demo.rar
    2.1 MB · Views: 129

that is the question.
how to make a peak hold fall down effect using c language.

hardware: 10 level LED graph,atmega32
a simple peak level indicator in c language is easy,just read ADC and plot the maximum value.
then, how to make a peak hold fall down effect .

- - - Updated - - -

You have to OR the output with another variable which holds the peak value as LSB to MSB values..

what about a slow fall down effect ?
 

If you already have the code for other operations then post it I think i can modify

- - - Updated - - -

----------------------- LOGIC -----------------------

Run a background timer of (say) .25 sec, that will give interrupt for every 0.25 sec..

after that there will be the variable which will decrement(shift) for every interrupt and also load the value of ordinary peak detector if it is more than the new variable..

in while do as i already said...
 

atmega-32 single bar graph LED Proteus File
 

Attachments

  • AUDIO_LEVEL.rar
    21.9 KB · Views: 74


i follow the similar logic without timer.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…