Menu

Soundout - on multiple pins?

Help
Greg W
2018-03-31
2018-04-01
  • Greg W

    Greg W - 2018-03-31

    Can soundout be used to port more than one tone to more than one pin simultaneously? If not, is there another way to have two different tones coming from two different pins at the same time?

    Thanks,
    Greg

     
  • kent_twt4

    kent_twt4 - 2018-03-31

    This sounds interesting.

    I don' t think this could be done with the standard soundout. This would involve Timer interrupts when expressing the length of the notes, with a separate Timer for each tone.

    EDIT: Perhaps this would involve using seperate or independent PWM's to replace the blocking function of Pulseout or soundout ON/OFF.

     

    Last edit: kent_twt4 2018-03-31
  • Greg W

    Greg W - 2018-04-01

    Thank you for the replies. I had seen that article and that's what started me thinking about multiple tone output. I'll go back and read the article more closely and see if it points me in the right direction. What he's done is very impressive to say the least although I believe it goes beyond what my abilities with software.

    Greg

     
  • stan cartwright

    stan cartwright - 2018-04-01

    If you turn a pin on/off at 4 KHz, another pin every other so 2 KHz and another every other from that so 1 KHz. Play around but remember don't connect 8 ohm speaker direct to pin as draws to much current. Use 200 R resistor in series.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.