Sound Options with BBII

I have a project in mind that would involve my BRAT dancing to music from its BBII speaker. First some background:

A. When I tried this with my Robonova-1, it was impossible because RN-1 ceases all servo commands until it completes processing sound commands. This causes halting, jerky motion and temporary release of servo positions.

B. In his Aug 10, 2009 reply to mano1979’s Talking bot “Hello” topic, kurte posted extensive information on programming classical music for the BBII which I will certainly explore.

C. The BBII Manual says this about pin 9: quote]

Question 1. Before I waste extensive programming time try to match movment to sound, does the BBII have the same problem of releasing servos while processing sound as the RN-1?

Question 2. As an alternative to programming, can I feed an analog signal to the speaker through its transistor amplifier? I’m thinking of using my unamplified miniature disk recorder, removing the speaker jumper from BBII, and sending the recorder signal to the upper speaker jumper pin. The recorder has its own battery but is light enough and small enough for the BRAT.

Any comments, dire warnings, and especially better ideas would be most welcome.

Thanks to all, Ted

In Forum Rules, Snailkeeper decries duplicate or repeat posts and suggests “bumping” something that remains unanswered. Not sure how to “Bump”; does this count? :laughing:

I still need to know:

Will a BBII release servo positions while processing digital sound commands a la Robonova-1?
Would adding an SSC-32 for servo control to the BBII solve the problem?

Can I safely inject an analog sound signal to the BBII speaker/amplifier? [This would be prerecorded sound, not digital Sound commands that would require processing.] How is the best way to do this?

Please help. I can afford being thought stupid easier than I can afford replacing burned-out parts. :smiley:

Thanks, Ted

A “bump” is just a reply post that “bumps” your thread back up to the top of the list. No worries, you’re doing it right. Hope someone has an answer for you!

Yes and no… The BotBoard II isn’t the deciding factor here, it’s the processor plugged into it. The Atom Pro 28 that we use is not capable of making sounds and doing other things with normal commands. However of you use the hservo command (the BRAT projects use this) the sound command will be able to work while the servo are moving because the hservo command is a hardware command that runs in the background.

Although this would be possible, it wouldn’t work that well. The speaker is very small and the “amp” is just a switch, not a linear amp, so it would be extremely distorted.

Sorry I missed this post.

Just use a SpeakJet chip, send ASCII (TTL) commands to it.

Easy way is to use a sound board from:

sites.google.com/a/droidbuilder.com/www/home/SpeakJetShield

Mounting holes will not match, but all that’s necessary is to send it TTL. It will drive a speaker via it’s internal LM386 amp. I’d go with a real speaker (2" from RadioShack, etc).

The R/C servos will hold their position (or continue to move to the next commanded position). Don’t know what Robonova does.

You can drive the speaker if it is disconnected, and given the proper level audio.

Alan KM6VV

Another option for running sounds in the background is to use the HPWM pins to generate your sound frequencies.