Hello ,
i am working on simple project ,in project few components are there like
Atmega32,
led ,
buzzer,4 push button (2 for set time up,down with +15 or-15 min time slot) (2 for set intensity up down in range 0-5)
by these 4 push button i am generating 2 values in different variable.
After setting this both time and intensity value i had save these in 2 different integer x,y( x for time)(y for intensity)
so the problem is i want to glow Led depends on value of x & y
and at last stage before time goes out for 5 sec want to on buzzer ,
and how we no that last 5 second are remaining so we want to on buzzer ??
what kind of logic need to apply for this condition??
i am working on simple project ,in project few components are there like
Atmega32,
led ,
buzzer,4 push button (2 for set time up,down with +15 or-15 min time slot) (2 for set intensity up down in range 0-5)
by these 4 push button i am generating 2 values in different variable.
After setting this both time and intensity value i had save these in 2 different integer x,y( x for time)(y for intensity)
so the problem is i want to glow Led depends on value of x & y
and at last stage before time goes out for 5 sec want to on buzzer ,
and how we no that last 5 second are remaining so we want to on buzzer ??
what kind of logic need to apply for this condition??