Home 2018 Forums Crumble Support Sound please help!!!

This topic contains 1 reply, has 2 voices, and was last updated by  Dr_Alex 5 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8906

    Dylan
    Participant

    So basically I’m looking to program two buzzers one to play music during the activity the other as like a you win jingle. can it be done please help have zero experience when it comes to this.

    #8990

    Dr_Alex
    Participant

    Try setting one of the outputs high, then low then high again in a cycle with a wait of msec in between. Feed the output into an audio amp, eg one of those cheap powered speakers. That will give you a tone, to change the frequency, vary the wait time. The wait time can be a variable, so you could set it to change depending on the input conditions. You could even set the wait time as dependent on an analogue input.

    However, the minimum wait time is a little bit less than 1 msec, which can be achieved using some maths and a variable, as the shortest wait block is only 1 msec. This limits your max frequency to just over 1kHz.

    Another option would be to use the Crumble to trigger an mp3 player or something…

    Hope that helps.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.