Shop OBEX P1 Docs P2 Docs Learn Events
Frequencies — Parallax Forums

Frequencies

NewAgeServerNewAgeServer Posts: 18
edited 2008-06-22 21:21 in BASIC Stamp
I am designing a tone generator for a siren that a friend is building. He has speakers and he needs a tone generator.

I want it to sound like the start-up noise heard in the beginning of this video
I tried some stuff with for...next but it made the whoop too fast and it seemed to skip.

I want one that goes slow and is smooth. Can anyone help me accomplish this? Thanks!

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I'm not new at basic stamp, but i am new at the LCD AppMod

Comments

  • NewAgeServerNewAgeServer Posts: 18
    edited 2008-06-22 20:08
    Could someone please reply?

    (I apologize about bumping the topic but I need to know this)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I'm not new at basic stamp, but i am new at the LCD AppMod
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2008-06-22 20:16
    OK, I'll Reply.· I read this when it was first posted --·and I kept right on walking.

    The Stamp's FREQOUT is not suitable as a complex sound generator.

    Now you'll have lots of Replies.


    Post Edit -- A Stamp could be used to control this: http://www.speechchips.com/shop/item.aspx?itemid=14

    (Ken, at speechchips.com is a good guy.)

    Post Edited (PJ Allen) : 6/22/2008 8:26:00 PM GMT
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2008-06-22 21:21
    There's more than one way to skin a cat with the Stamp. Try experimenting with this code:

    ' {$STAMP BS2}
    ' {$PBASIC 2.5}
    
    FOR W0 = 1000 TO 100
        SEROUT 0, W0 >> 1, [noparse][[/noparse]0]
    NEXT
    
    
    


    -Phil
Sign In or Register to comment.