Pages: [1]   Go Down
Author Topic: Help with Arduino Audio Output  (Read 754 times)
0 Members and 1 Guest are viewing this topic.
Detroit, MI
Offline Offline
Newbie
*
Karma: 1
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey guys.

I'm working on a project and have run into a bit of a hurdle. I'm building a musical instrument (using Arduino) which translates video messages into audio. I constructed a circuit in which Arduino reads the serial values from three photocells and adjusts the pitch of the sound based on those values. It's relatively simple now, as I am only generating the default tones through a small, 8 ohm speaker.

I'm wondering what the process would be to assign a note or sampled tone to each analog input and manipulate that pitch through the speaker. Is it as simple as adding a tone library or is it more complex? Should I pursue this course of action or use a serial to MIDI converter and play the audio through my computer? These are the questions I'd like to get some feedback on.

Thanks.
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 19
Posts: 3114
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
through a small, 8 ohm speaker.
Not connected directly to the Arduino, hopefully.

You can use the tone library, but the output is pretty poor. If you want any sort of decent quality output, I'd go down the midi route.
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 509
Posts: 31483
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Getting waveforms other than square waves is possible but you will need an external D/A converter and possible some SRAM to read the waveforms out of as well as some external EEPROM to store them it.
This came together in this project of mine:-

However it is not an easy thing to make.
Maybe you would be better with a wave shield.
Logged

0
Offline Offline
Edison Member
*
Karma: 7
Posts: 1221
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

awesome project!..

love the case/enclosure too!  hahaha.
Logged


Pages: [1]   Go Up
Jump to: