Pages: [1]   Go Down
Author Topic: Guide Me how i can write and read audio simple on arduino EEPROM  (Read 998 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 19
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Guide me on how i can write and read audio,  in arduino EEPROM. Maybe Just a second,  for just an example how to start.?  smiley

Anyone?


 
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17263
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well as an arduino board lacks any real analog output I don't think it would be possible to output a audio signal without external hardware support. Reading and writing any digital data to EEPROM is a pretty simple process but recording and outputting audio directly from a arduino is pretty much a no go.

Lefty
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 525
Posts: 26554
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The EEPROM is also pretty small - not going to hold a lot of audio - just a fraction of a second.
There's been some nice synthesizer projects mentioned.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Newbie
*
Karma: 0
Posts: 19
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, How about it is just a few second? 
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 525
Posts: 26554
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

EEPROM is 1K?
8 bit audio, sampled at 16K samples/second for 8 KHz max bandwidth, can store 1/16 of a second.
8 bit audio is not very good, 8 KHz upper limit also not very good.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Newbie
*
Karma: 0
Posts: 19
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for all Reponses, and i really understand it. but i want to now how actually code it? Maybe something like:
    val = analogRead(0);
     eemprom.write(address, val);?

   maybe  PWM is equal to eemprom.read(address)?



Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 525
Posts: 26554
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

analogRead() needs 100uS to complete a 10-bit conversion. Divide by 4 to get to 8 bits.
EEPROM write needs 3.3ms to complete the write.

EEPROM read is quicker.
Standard analogwrite() is 490 Hz.

PWM output can me manipulated - this article is often referred to:
http://www.arcfn.com/2009/07/secrets-of-arduino-pwm.html
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Pages: [1]   Go Up
Jump to: