New Idea for Out function(out digital bits)

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Ngel
Posts: 4
Joined: Wed Nov 23, 2005 12:51 am

New Idea for Out function(out digital bits)

Post by Ngel »

Any one thought about a way to control something with the psp? Not wire less but with the usb port, Like to out a digital digit or any thing?
Well, i got a new Idea, There is a function that run mp3 file (LUA PLAYER) so i can connect to the headset connection a A2D (analog to digital) or a kind of amplifier that will translate the analog wave (sound) to 5\0v (binary) and because its a stereo headset there is two bit so i will connect a special shift register to build up an 8 bits digit :) , I know how to do it and i done it before but i will get my psp next mounth :\

So what do you think about my idea? cool?
sandberg
Posts: 90
Joined: Wed Oct 05, 2005 1:25 am
Location: Denmark

Re: New Idea for Out function(out digital bits)

Post by sandberg »

Ngel wrote:Any one thought about a way to control something with the psp? Not wire less but with the usb port, Like to out a digital digit or any thing?
Well, i got a new Idea, There is a function that run mp3 file (LUA PLAYER) so i can connect to the headset connection a A2D (analog to digital) or a kind of amplifier that will translate the analog wave (sound) to 5\0v (binary) and because its a stereo headset there is two bit so i will connect a special shift register to build up an 8 bits digit :) , I know how to do it and i done it before but i will get my psp next mounth :\

So what do you think about my idea? cool?
Why not use the IrDA or serial ports ? The headset connector already have a serial port, which could be used for that.
Br, Sandberg
Ngel
Posts: 4
Joined: Wed Nov 23, 2005 12:51 am

Post by Ngel »

I saw some guides for lua and i didnt saw any function to out just a binary code only files.
i can use the IrDA, but there are functions to use it? :\
sandberg
Posts: 90
Joined: Wed Oct 05, 2005 1:25 am
Location: Denmark

Post by sandberg »

Ngel wrote:I saw some guides for lua and i didnt saw any function to out just a binary code only files.
i can use the IrDA, but there are functions to use it? :\
I don't know the LUA scripting language. But you could take a look at the GPS interface for the PSP. It uses the serial port for reading data from the GPS. That might point you to something.

http://pspupdates.qj.net/2005/11/gpsp-g ... r-psp.html
Br, Sandberg
Shine
Posts: 728
Joined: Fri Dec 03, 2004 12:10 pm
Location: Germany

Post by Shine »

Ngel wrote:I saw some guides for lua and i didnt saw any function to out just a binary code only files.
The SIO example in the Lua Player release sends and receives strings on the serial port.
Ngel wrote:i can use the IrDA, but there are functions to use it? :\
I've added IrDA support to Lua Player, it will be available in the next release. Or you can use this example, if you like to use C:

http://forums.ps2dev.org/viewtopic.php?t=2555
Ngel
Posts: 4
Joined: Wed Nov 23, 2005 12:51 am

Post by Ngel »

i dont know c :\
But i will love to see the next release !
I am trying to build up an circuit to convert the srial port to parallel, I think it will be much easy than use the infrared :\
(i will start build it up when i will get my psp, very soon )
Hm... One question...
System.sioInit(2400)
what is the frequency that i will have to use for the shift register?
i saw http://francis.courtois.free.fr/jc1/ser ... ormat.html
and if i'm sending 1 byte (8 bits) and Baud rate of 2400 so the frequency (shift register clock input) will be 300Hz ?

If you dont know what i'm talking about so i will ask my teacher tomorrow.

10x for all ![/quote]
Post Reply