potentiometer + peizzo plate + LED 6 Hour variable/Adjustable Timer Coding help.

i wanna make 6 hour Timer.

i have wired 10K potentiometer 1 for "A0 input" for adjust "15 minute time as a fine tune."
and also 10K potentiometer 2 for "A1 input" for adjust "1Hour time as a Hard tune."
and also i have wired digital pin2 to pin5 as a 15 minute display output, digital pin6 to pin10 as a 1 Hour display output.
so i have wired piezo plate Pin 13 for If timer is working? then i wanna heard sound.

so im tring to make 6 Hour timer like this.
A0 input maximum time is a 1 Hour,
A1 input maximum time is a 5 Hour, the total is 1+5= 6 Hours.
Ex:-
lets think 01 :-
A0 adjest as a 15 minute and A1 is adjest 1 Hour then we can take a total time 1.15 Hour time.(peizo plate is working untile 1.15 Hours)
lets think 02 :- A0 adjest as a 45 minute and A1 is adjest 2 Hour then we can take a total time 2.45 Hour time.(peizo plate is working untile 2.45 Hours)

but i don't know how to initialize potentiometers and how its read and how to code timer..
so who can send me a sample code for this school testing project?
its will be very help full for myproject..

here is the my starting code.

void setup() {
      // initialize digital pin2 to pin5 as a 15 minute display output.
     // initialize digital pin6 to pin10 as a 1 Hour display output.
  pinMode(2, OUTPUT); // 1st 15 minute
  pinMode(3, OUTPUT); // 2nd 15 munite (total pin2+pin3=30 minute display)
  pinMode(4, OUTPUT); // 3rd 15 munite (total pin2+pin3+pn4=45 display minute )
  pinMode(5, OUTPUT); //2nd 15 munite (total pin2+pin3+pin4=pin5=60 display minute)
  pinMode(6, OUTPUT);
  pinMode(7, OUTPUT);
  pinMode(8, OUTPUT);
  pinMode(9, OUTPUT);
  pinMode(10, OUTPUT);
  pinMode(13, OUTPUT); //piezo plate (sound out)
}


// what can be write here? and also A0 and A1 how to define? and analog reading ? i dont know every thing. but i have done all LED pin High and LOW  :) 


void loop() {

}

tharidupradeep:
i wanna make 6 hour Timer.

but i don't know how to initialize potentiometers and how its read and how to code timer..
so who can send me a sample code for this school testing project?
its will be very help full for myproject..

Helping you cheat on a test isn't the purpose for this message board.

ahaaa this is not :slight_smile: a test... just science exhibition in our school Class.. :frowning: plzz help me...