Tin Tune
SciNemo
Posts: 91
Hello again
I have a new project that I am working on. It is a music/media player based on the propeller that fits inside of an altoid's tin. It has an old sparkfun serial controlled nokia lcd (to be upgraded to a spi driven color lcd later), an sd card port, an audio jack, and the guts of a wii nunchuck (for accelerometer input and buttons). It all just barely fits in the tin (i had to modify the hinges a bit though :S), including the 9v battery it runs on.
My problem is this, for some reason the audio does not work at all. I have the left and right channels of an audio port connected to pins 19 and 20 (P14 and P15), with the ground pin just connected to the ground of the board. I thought that should work, but it isn't. Is there something i am missing here? I am not a hardware person, and have a basic understanding of electronics.
I am leaving on vacation the day after tomorrow, and i would love to have the hardware working before i leave so i can experiment with software for it.
I've attached three pictures of it for a general understanding of the layout, it is rather cramped! Also, forgive me for the blurriness, don't have a good camera at my disposal at the moment.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Not the fish.
sites.google.com/site/bitwinproject/
I have a new project that I am working on. It is a music/media player based on the propeller that fits inside of an altoid's tin. It has an old sparkfun serial controlled nokia lcd (to be upgraded to a spi driven color lcd later), an sd card port, an audio jack, and the guts of a wii nunchuck (for accelerometer input and buttons). It all just barely fits in the tin (i had to modify the hinges a bit though :S), including the 9v battery it runs on.
My problem is this, for some reason the audio does not work at all. I have the left and right channels of an audio port connected to pins 19 and 20 (P14 and P15), with the ground pin just connected to the ground of the board. I thought that should work, but it isn't. Is there something i am missing here? I am not a hardware person, and have a basic understanding of electronics.
I am leaving on vacation the day after tomorrow, and i would love to have the hardware working before i leave so i can experiment with software for it.
I've attached three pictures of it for a general understanding of the layout, it is rather cramped! Also, forgive me for the blurriness, don't have a good camera at my disposal at the moment.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Not the fish.
sites.google.com/site/bitwinproject/
Comments
Are you using the demo board drivers and electronics hookup?
If so make sure you followed their electrical diagram exactly. The sound outputs need to be put through a lowpass filter.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
I am not using the demo board circuit diagram because I don't want the added head phone amp. The way it is set up now the pin just connects to the speaker and then through to ground. I have used that kind of direct connection to the speaker before on atmega micros and it worked fine, what is the difference between them and the prop?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Not the fish.
sites.google.com/site/bitwinproject/
Post Edited (SciNemo) : 7/10/2009 11:46:33 AM GMT
Use this guide(go to the audio section) ucontroller.com/Propeller%20Protoboard%20Designs%20for%20the%20Beginner.pdf
You'll still need audio amplification with either a opamp, transistor etc. or use amplified multi-media speakers.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Aka: CosmicBob
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Not the fish.
sites.google.com/site/bitwinproject/
I can't remember which part number, but it should handle the
amplification issue.
There was a thread on it recently... Perhaps someone will
remember and post the link.
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Visit the: The Propeller Pages @ Warranty Void.
If for some reason the pin get stuck high, software bug say, then you have a short circuit to ground through the speaker coil. Quite likely blowing the pins output driver.
Even when working correctly the pin will have a DC output level of half the supply voltage. Quite likely blowing the pins output driver.
There should at least be a capacitor between the pin and the speaker.
Now we are in the AC only realm. Still driving a max to max PWN signal out of the pin into an 8 ohm speaker is quite likely to pop the pin as well.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.
I use a really small computer speaker or smaller. I use a 1k resistor before i hook up the + side of the speaker. If your speakers small enough, you will hear the sound fine.
No idea if this will trash the prop. (but the 1k res, seems to protect it)
Of coarse you can't use just a speaker, its res is too low. try hooking a 8 ohm resistor to your output pin and ground, then pwm that output, and eventually with a low enough pwm, that pin will fry. speakers have 8 ohms of resistance, thats why you can't hook up a speaker directly.
You need to be in the safe range of the props output current. try 1k,or 560ohm with a really small pc speaker.
Connect speaker - to gnd, and + thru your 1k to your pin.
I did this, its not that loud, unless you can find a very very small wattage speaker. (some kids toys, cell phone speakers, computer internal speaker..etc...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Not the fish.
sites.google.com/site/bitwinproject/