Sign in

username:

password:



Not a member?

Search basicx



Search tips

Subscribe to basicx



basicx by Keywords

Accelerometer | ADC | ADXL | Adxl20 | AVR | BasicStamp | BX-35 | BX28 | BX35 | COM3 | Compiler | Downloader | EEPROM | Electromagnet | GetADC | GP2D1 | GPS | I2C | IDE | Keypad | LCD | LCD+ | MIDI | Motors | Multitasking | Netmedia | Networking | PCB | PID | PlaySound | PWM | Relays | RTC | Servo | ShiftOut | SitePlayer | SPI | Stack | Timer | USB

Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | BasicX | BasicX] PlaySound command

Discussion forum for the BasicX family of microcontroller chips.

BasicX] PlaySound command - Ron A. Nucci - Apr 26 9:17:00 2000

Basicx people

I would like anyone’s thoughts on using the BX24 sound record and play capabilities. Specifically how do you get it to record a sound to its EEPROM then play it back out a pin (I assume using the PlaySound command).

Chris Harriman from NetMedia said "This is what our ADCTOSERIAL and SERIALTODAC functions are all about. " The closest command I could find listed in the "System Library" manual is ADCtoCom1 and Com1toDAC I assume these are the commands he is referring to ? These commands appear to send data in and out of the serial port, perhaps this would be used for recording and playing sounds from your PC’s harddrive ? The PlaySound command itself looks very straight forward to use and I assume I just take the assigned output pin and run it to an audio amp like a LM386 to a speaker?

But how do you get the data into the EEPROM in the first place in the correct format? I would think you would connect a microphone and op-amp to an input pin then use some code like GetADC to sample the incoming sound and write it to the EEPROM ?

Thank you Ron A. Nucci
[Non-text portions of this message have been removed]





(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )


Re: BasicX] PlaySound command - Frank Manning - Apr 26 14:17:00 2000

From: Marty Matthews < > I believe you would use the command ADCtoCom1 to capture the audio
> using a mic and op amp as you surmised. I have not investigated
> this command but I would hope you could control the rate it
> captures and set it to about 8000 samples per second for minimal
> audio quality. This would go straight out the serial port to the
> pc. Set up the pc to capture this as a file. Then I believe we
> have the ability to append this file to the end of the program we
> download to the BX24. Now we have it in eprom. There is a way to
> access this data as an array or something. You will have to
> investigate that. [...]

Check out the block data classes in the Operating System Reference. For this
application you could use a ByteVectorData class, which stores a 1-D byte
array in EEPROM.

The PC data file would first need to be translated to an ASCII text format
for this to work.

-- Frank Manning
-- NetMedia, Inc.




(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: BasicX] PlaySound command - Marty Matthews - Apr 26 14:27:00 2000

Ron,

I believe you would use the command ADCtoCom1 to capture the audio using a
mic and op amp as you surmised. I have not investigated this command but I
would hope you could control the rate it captures and set it to about 8000
samples per second for minimal audio quality. This would go straight out the
serial port to the pc. Set up the pc to capture this as a file. Then I
believe we have the ability to append this file to the end of the program we
download to the BX24. Now we have it in eprom. There is a way to access this
data as an array or something. You will have to investigate that. Then you
would use the DAC command (I don't have the manual here so I don't know the
actual command) to output the data in this array to a pin as an analog
voltage. Amplify it and send it to a speaker. Again at the rate of about
8000 bytes per second. Now that I think about it, at 8000 samples per
second, you wouldn't get but 2 or 3 seconds so you would have to sample at a
slower rate. It would be scratchy but audible.

Good luck and let us know what you do.

Marty ----Original Message Follows----
From: "Ron A. Nucci" <>
Reply-To:
To: <>
Subject: [BasicX] BasicX] PlaySound command
Date: Wed, 26 Apr 2000 07:17:21 -0700

Basicx people

I would like anyone?s thoughts on using the BX24 sound record and play
capabilities. Specifically how do you get it to record a sound to its EEPROM
then play it back out a pin (I assume using the PlaySound command).

Chris Harriman from NetMedia said "This is what our ADCTOSERIAL and
SERIALTODAC functions are all about. " The closest command I could find
listed in the "System Library" manual is ADCtoCom1 and Com1toDAC I assume
these are the commands he is referring to ? These commands appear to send
data in and out of the serial port, perhaps this would be used for recording
and playing sounds from your PC?s harddrive ? The PlaySound command itself looks very straight forward to use and I assume
I just take the assigned output pin and run it to an audio amp like a LM386
to a speaker?

But how do you get the data into the EEPROM in the first place in the
correct format? I would think you would connect a microphone and op-amp to
an input pin then use some code like GetADC to sample the incoming sound and
write it to the EEPROM ?

Thank you Ron A. Nucci
[Non-text portions of this message have been removed] ------------------------------------------------------------------------
IT Professionals: Match your unique skills with the best IT projects at
http://click.egroups.com/1/3381/4/_/565855/_/956758955/
------------------------------------------------------------------------
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.


(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

RE: BasicX] PlaySound command - Hector Segura Klepatzky - Apr 27 1:55:00 2000

Ron:
Do you want to use BX-24 to record and play sounds or the system controlled
by the BX-24 be capable of "sounds". In www.quadravox.com you can find a
chip (PIC16C505) they call QV305 that controls a ISD4003-04 (or other ISD).
With one serial pin (COM3), sending ONE byte from the BX-24 you play a sound
recorded in ISD4003-04 (my case). With a free downloaded (from Quadrawox
site) W95-98 program you can record what you want with your PC sound card
and then download "that" to the QV305-ISDXXXX pair, also ANY .wav file you
"customize" or "mix" or "what you like" can be downloaded. You have from 1
to 256 "slices" from the total of the recording time in the ISD chip. They
have a QV305M4 evaluation board. I did my firsts experiments first week of
March 2000.
Any way VERY good luck with your idea
Hector Segura

----- Original Message -----
From: Ron A. Nucci
To:
Sent: Wednesday, April 26, 2000 9:17 AM
Subject: [BasicX] BasicX] PlaySound command Basicx people

I would like anyone's thoughts on using the BX24 sound record and play
capabilities. .........




(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: BasicX] PlaySound command - Ron A. Nucci - Apr 27 9:46:00 2000

Hector

Several of my robot's already use the ISD ChipCorder sound storage chips for
speech capability. They are VERY easy to hook up to any microcontroller for
storage and playback of any sound including speech. They have storage sizes
from 10 seconds to 16 minutes, all on a 28 pin DIP. See www.isd.com if you
are interested. I don't know what quadrovox does but you really don't need a
pic or anything else to connect and control an ISD ChipCorder IC.

The reason I'm pursuing the PlaySound thing is to include this capability on
a robot (at basically no cost) I am building and will soon be selling
through my web site. -----Original Message-----
From: Hector Segura Klepatzky <>
To: <>
Date: Wednesday, April 26, 2000 11:59 PM
Subject: RE: [BasicX] BasicX] PlaySound command >Ron:
>Do you want to use BX-24 to record and play sounds or the system controlled
>by the BX-24 be capable of "sounds". In www.quadravox.com you can find a
>chip (PIC16C505) they call QV305 that controls a ISD4003-04 (or other
ISD).
>With one serial pin (COM3), sending ONE byte from the BX-24 you play a
sound
>recorded in ISD4003-04 (my case). With a free downloaded (from Quadrawox
>site) W95-98 program you can record what you want with your PC sound card
>and then download "that" to the QV305-ISDXXXX pair, also ANY .wav file you
>"customize" or "mix" or "what you like" can be downloaded. You have from 1
>to 256 "slices" from the total of the recording time in the ISD chip. They
>have a QV305M4 evaluation board. I did my firsts experiments first week of
>March 2000.
>Any way VERY good luck with your idea
>Hector Segura
>
>----- Original Message -----
>From: Ron A. Nucci
>To:
>Sent: Wednesday, April 26, 2000 9:17 AM
>Subject: [BasicX] BasicX] PlaySound command >Basicx people
>
>I would like anyone's thoughts on using the BX24 sound record and play
>capabilities. ......... >
>------------------------------------------------------------------------
>You set the price on thousands of products. Computers, electronics,
>art, home appliances and more. Visit uBid today!
>http://click.egroups.com/1/3026/4/_/565855/_/956818778/
>------------------------------------------------------------------------




(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )