- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I recently work on the psoc 3 and I would like to know how to convert .wav to .h
Is there some program that does that?
does someone have a music file that is aleady converted?
please your advise
thanks
Solved! Go to Solution.
- Labels:
-
PSoC 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here is a project connected to PSOC 4, the principles are the same.
Its a simple serial interface.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Google tells me bin2h exists: http://www.deadnode.org/sw/bin2h/
But the question: how do you want play it? Most likely the WAV file is larger than the flash memory in the PSoC3, so it won't fit there anyway...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So probably want to use a SD card, and stream the data from there. Maybe the emfile component can help you there: http://www.cypress.com/?rID=58694
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A .h file in the embedded domain is generally consdiered to be a
file with text definitions in it for use by a compiler to generate code
for the UP to run.
A .wav file is an uncompressed digitized music or sound file.
So I do not understand what you are actually trying to do ? The
two files are totally unrelated.....
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We store wave file in external SPI flash. Unless your audio is short time, don't think you can put in the flash,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks a lot!
I looket in the emFile example and it looks good for mre but
i still having issues regarding how to connect physically the SD to the CY8CKIT-001
where can i find an illustration?
BR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here is a project connected to PSOC 4, the principles are the same.
Its a simple serial interface.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks on your answer
I work on this today and bought a sd connector (of te-company):
link: http://www.te.com/catalog/
and 2-gb sd card (of sandisk)
I work this afternoon on that and connect the sd card to wires (images attached)
I didn't figure our where are the three bottom pins (com, sd-wp, sd_cd)
What about the resistor is something internal or I need to put it.
What I understood from the em_file project is that I have connect just 4 pins.
Please help me out, even with a pictures
---------------------
What you do suggest in order to stream audio from the usb or from the sd card, I don't need more than 20 mb, but the speed is important.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The SD_CD and SD_WP should be pulled up to Vdd, 5V, to enable
writes to SDCARD and invoke card detect. Normally in your code
the socket has a switch for card detect that tells your UP a card
is inserted. There can also be on the socket a switch user can
use to prevent writing to SDCARD. But for purposes of getting project
running also just pull it up to Vdd.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dana, Thanks for the fast reply
I Dont see any switch on the socket
the only thing I see is the switch on the card for lock
i see one 2 connections on the front of the socket(I Assume it should be The SD_CD and SD_WP but not sure
and another small pin on the top
I attached photos to demonstarte
thanks
P.S I understant that I should put the resistors in order to pull up?or is it internal resistors?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use external resistors for the time being.
Also, is your SDCARD 3.3 V or 5 V ? You need to configure
PSOC for the same voltage as the SDCARD, or set up Vddio
on PSOC to match the SDCARD Vdd.
The switches in some sockets are a feature, but not needed, and they
are for UP to detect if write prohibited or no card in socket. In your case
you do not care about either.
http://alumni.cs.ucr.edu/~amitra/sdcard/Additional/sdcard_appnote_foust.pdf
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you on your fast reply
From what we understand this is will be better to work with USB and streaming the files?
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you are trying to playback stored music then you can either stream
it live from some tablet/pc/phone or from an SDCARD. So its not clear to
me what your design goals are, what are you tring to do....
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Dana,
My goal is to stream a recorded file to the psoc then to filter it with the psoc and to get back the filtered file to then to hear the results with a speaker..
And i would like to know your suggest or even to see an example that I can use in order to stream the audio and the to filter it and to hear ( i already tried usb_audio)
Thanks a lot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
to connect the sd card to the cy8ckit I would rather buy one of the modules sold for arround $1 on ebay like:
at leat untill you have your project working and you can build your own board.