Pages: [1]   Go Down
Author Topic: question about arduino+compass sensor+playing audio?  (Read 395 times)
0 Members and 1 Guest are viewing this topic.
Sulaymaniyah-Kurdistan-Iraq
Offline Offline
Jr. Member
**
Karma: 0
Posts: 90
stay foolish - stay hungry
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hi
i want to use a compass sensor instead of writing the degrees in serial monitor i want to get the result by sound, is there anything that can do that job connected with arduino and play custom sound
like we have 8 direction for each direction play a sound??
thanks for replaying
Logged

Queens, New York
Offline Offline
Faraday Member
**
Karma: 108
Posts: 3785
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So you want to replace visual numbers with tones?

That can be done, you will need to use either Case statements or IF statements to play a certain tone, but yes it can be done.
Now if you have a MP3 shield, you may be able to play a particular melody for each direction, im not sure though, I never used a MP3 shield before.

Maybe some else can confirm that for me.
Logged

Created Libraries:
TFT_Extension, OneWireKeypad, SerialServo, (UPD)WiiClassicController, VWID

Sulaymaniyah-Kurdistan-Iraq
Offline Offline
Jr. Member
**
Karma: 0
Posts: 90
stay foolish - stay hungry
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

no answer?
Logged

Queens, New York
Offline Offline
Faraday Member
**
Karma: 108
Posts: 3785
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://www.billporter.info/2012/01/28/sparkfun-mp3-shield-arduino-library/
Logged

Created Libraries:
TFT_Extension, OneWireKeypad, SerialServo, (UPD)WiiClassicController, VWID

Pages: [1]   Go Up
Jump to: