Shop OBEX P1 Docs P2 Docs Learn Events
Make noise while moving — Parallax Forums

Make noise while moving

VillaroseVillarose Posts: 5
edited 2009-09-15 11:53 in General Discussion
Is there any way to have a boe-bot make noise while moving? Can you make constant noise while it's running, as opposed to just beep-move-beep-move? And if you can, can you make it a pattern of frequencies. So like

FREQOUT 4, 100, 2000
FREQOUT 4, 100, 3000
FREQOUT 4, 100, 4000
FREQOUT 4, 100, 2000
FREQOUT 4, 100, 3000
FREQOUT 4, 100, 4000

And have it repeat that while moving?

Comments

  • W9GFOW9GFO Posts: 4,010
    edited 2009-09-11 19:36
    Villarose said...
    Is there any way to have a boe-bot make noise while moving?

    Yes, but you need either a ServoPal or a SoundPal.

    To run smoothly, servos need a stream of pulses at 50 times a second. Playing a sequence of sounds will delay those pulses. The ServoPal will send the stream of pulses while the Basic Stamp is doing other things - like playing sounds or checking sensors. The SoundPal works the same way, the BS2 can move on to other things while it plays the sounds.

    Rich H

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    The Servo Boss, a 12 channel servo tester kit from Gadget Gangster.
  • ercoerco Posts: 20,260
    edited 2009-09-12 17:44
    A Scribbler robot has built-in motor drivers, so it operates more like a Boe-Bot with a ServoPal added. A single Pulsout command per motor sets a continuous drive speed until a new Pulsout is sent. This frees up the BS2 for other uses, like making sounds or reading sensors. The Scribbler comes with several preprogrammed routines which demonstrate this ability.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·"If you build it, they will come."
  • kwinnkwinn Posts: 8,697
    edited 2009-09-12 19:50
    Use a 556 (dual 555 timer). Servo pulses trigger the first timer which enables the second timer that produces a square wave output that drives a speaker.
  • Carl HayesCarl Hayes Posts: 841
    edited 2009-09-15 11:53
    Depending on what kind of surface it's moving on, you could use rough wheels instead of smooth ones --

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    · -- Carl, nn5i@arrl.net
Sign In or Register to comment.