CrazyEngineers
  • Switch problem.

    Angello

    Member

    Updated: Oct 26, 2024
    Views: 908
    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!
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • shahrul

    MemberJan 7, 2010

    Did you want to produce music tone depending on what key you press? Is that you mean, I know to develop that using PIC. Just read push button and create wave tone to the speaker.
    Are you sure? This action cannot be undone.
    Cancel
  • Angello

    MemberJan 8, 2010

    Shahrul, I would love to use PIC, and learn how to use it. You have any tutorials in English?😀 Unfortunately my lecture doesn't want us to use PIC's this time, cause he will cover them during this term and he doesn't want us to pick up some bad habits. Personally I think this is some bull crap but sure he's the boss.

    Anyways my question was how to construct a timing device in such a way that when you press push button switch it will play note for a certain time. But the catch is that he wants us to do 3 different settings, ie. press button for 1 second and note is played 3 seconds, if button is pressed in for 2 seconds note is beeing played 5 seconds, if pressed in for 3 seconds than you hear note for 10 seconds.

    Any ideas?
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register