Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Status
Not open for further replies.

Jestin_cubetech

Advanced Member level 1
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.



7806840300_1377760440.jpg

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: 128

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

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...

i follow the similar logic without timer.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top