Switch problem.
Hi all!
I'm having a problem. You see I have this project to do, which involves creating a digital keyboard. It wen ok so far, but and my teacher wants me to do a switch to each key, which would play for a cretin period of time. I.e. if he holds the switch down for 1 sec. the note is played for 3 seconds, if holds it down for 2 seconds than note is played for instance 4 seconds. Switch has to have at least 3 different timing setting.
Anyone got any idea how to grasp this?
I was thinking of using a 555 timer to produce a wave, logic 0 and logic 1, which passes through 2 flip flops, dividing the freq by 2. I think it also should pass through mux to select either 1st, 2nd or 3rd setting. But I don't know how to do it really.
Will this idea work? Or is there an easier way?
Please no pics as my lecture forrbided those.
Thanks guys, and please help me out!
I'm having a problem. You see I have this project to do, which involves creating a digital keyboard. It wen ok so far, but and my teacher wants me to do a switch to each key, which would play for a cretin period of time. I.e. if he holds the switch down for 1 sec. the note is played for 3 seconds, if holds it down for 2 seconds than note is played for instance 4 seconds. Switch has to have at least 3 different timing setting.
Anyone got any idea how to grasp this?
I was thinking of using a 555 timer to produce a wave, logic 0 and logic 1, which passes through 2 flip flops, dividing the freq by 2. I think it also should pass through mux to select either 1st, 2nd or 3rd setting. But I don't know how to do it really.
Will this idea work? Or is there an easier way?
Please no pics as my lecture forrbided those.
Thanks guys, and please help me out!
0