PDA

View Full Version : is there cd player code in picbasic



mech
- 1st December 2006, 21:37
is there any code in picbasic pro for converting a cdrom to a cd player like MuCop.

skimask
- 1st December 2006, 22:39
is there any code in picbasic pro for converting a cdrom to a cd player like MuCop.


There sure is!
Every single code and command in PicBasicPro, the 'sub-commands', all of the parameters, and every single variable accessible with PicBasicPro can be used to turn a cdrom into a CD player.

The big trick is to figure out which combination to put them together in and to use them.





wow...

mech
- 3rd December 2006, 22:23
but, how? i want to execute it.

skimask
- 4th December 2006, 03:46
but, how? i want to execute it.


I give up...

malc-c
- 5th December 2006, 09:21
but, how? i want to execute it.

Well then you'll have to do what the rest of us did and learn how to program and how to build electronic circuits... or pay a developer to do it for you which will cost you a grand !!

sayzer
- 5th December 2006, 09:34
If the purpose is to play music, then you can just buy an MP3 player with 256MB memory, from US$15 to US$30, and put a lot of music inside, and then control the player buttons via a PIC.

That would be so simple.

Just find an appropriate MP3 player that will make it easy for you to control its buttons.

Ohh, I just realized that you can also control the buttons of a CD-Player with a PIC, too. Then in your case, you will need to find a CD-ROM that has play, stop and track, buttons on board. I am not sure if they are still making those.

Connect the buttons to PIC pins, and make the pins either HIGH or LOW as to say push and pull.


But if this is not your weekend spare-time project, then you will need to contact the factory that made the CD-ROM you have in mind, and ask them to provide you the codes for playing CDs.



----------------------

mister_e
- 5th December 2006, 15:49
or find an old PC and control everything via serial port.

here we can find tons of old PCs (from XT to Pentium II) for about 100$... big deal ;)

Sure it's bigger ;)

OR you may decide to learn the ATA protocol and find some explanation here and there... it already hit my mind but i don't think it's really handy now as the memory cards (SD, USB) are quite cheap. Some MP3 decoder IC are also available for few bucks... so everything you need to be happy :)
http://www.vlsi.fi/

Bellow is an example of a Wav player.. OK OK OK it's not in PBP... sorry.
http://www.sfcompiler.co.uk/wiki/pmwiki.php?n=SwordfishUser.SDMMCWavPlayer

Acetronics2
- 5th December 2006, 16:57
Some years ago, Elektor published a project using a HDD controlled by a µC for that purpose ...

....

"just" need to find it !!!

Alain

sayzer
- 5th December 2006, 19:43
I just posted this for IDE Hard disk controlled by a PIC.

http://www.picbasic.co.uk/forum/showthread.php?p=29148#post29148


----------------------------------------