PSOC cannot drive a 3.2 ohm speaker directly, your output, if
you get any, would be severly distorted at minimum. If you place
a series R of a few hundred ohms between speaker and PGA out
you might be able to hear something. I would also recommend you
clamp pin to its rails with somethinmg that looks like this -
There is a possibility you damaged the PSOC GPIO pin, PGA,
due to L effects from speaker by a direct connection to it. Disconnect
speaker and look at PGA output to see if audio looks "OK".
Better yet get a power amp to drive speaker, here are a zillion possi-
The venerable LM386 – http://www.ti.com/product/lm386
Thanks a lit Dana!!
I wil try it :)
The goal of my project is to stream a recorded file to the psoc then to filter it with the psoc and to get back the filtered file to the computer then to analyse it.
Do you know a way to pass a audio file using usb isochronous transfer and ( I tried example usbfs) and I cant figure out how much packets can i pass between the pc and psoc5 total?
I saw that i can pass txt files (64bytes)and it works well but not in the Isochronous transfer( which i think i need) it passes only part of the information of the file(half or less) what can I do in order to pass 10-20MB .wav file?
I will try what you suggestet , Thanks a lot!
I tried to connect the V_ref to gnd, 3.3( external) and Vss internal, but with no success...
By the way What do you suggest about passing the audio file from the PC to psoc and back?
Not sure if these would help -
http://www.cypress.com/?rID=70131 AN82072 - PSoC® 3 and PSoC 5LP USB General Data Transfer with Standard HID Drivers
http://www.cypress.com/?rID=39553 AN56377 - PSoC® 3 and PSoC 5LP - Introduction to Implementing USB Data Transfers
http://www.cypress.com/?rID=39404 AN57473 - USB HID Basics with PSoC® 3 and PSoC 5LP
http://www.cypress.com/?rID=39327 AN57294 - USB 101: An Introduction to Universal Serial Bus 2.0
http://www.cypress.com/?rID=40103 AN58726 - PSoC® 3 / PSoC 5LP USB HID Intermediate (with Keyboard and Composite Device)
Speaker drive like this -
Try this project. It has a lot of excess - part can be removed.
To test you can probably use the generators, creation for the sound cards.
A lot of them on the Internet. I use my, he is on this page.
But note that in most cases the signal my be be distorted integrated filter PC.
Pay attention to the draft Project # 102 - USB Audio using the PSoC 5L
USBFS_AUDIO01.zip 514.6 K
You can test your speaker by using wavedac component, just sub it for your
Just noticed: in your project is not PGA_1_Start();
thanks a lot:)
I am not sure I did it well
I connectred the components as you said and did Start() to the components( Opamp_1_Start();
but it tells me 7 Errors -- M0012 mismatching type
attaches schematic of the project
whatwould you suggest me?
TopDesign2.cysch.zip 20.6 K
To post a complete project use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
The API names for the components start with the component names, so in your case it is PGA_1_Start() and not
1 of 1 people found this helpful
The Wavedac of course gets replaced by your VDAC8 after you have
tested your speaker lashup.
The differential drive to speaker yields 4 X the drive power of single ended