| View previous topic :: View next topic |
| Author |
Message |
Ngel
Joined: 23 Nov 2005 Posts: 4
|
Posted: Wed Nov 23, 2005 1:00 am Post subject: New Idea for Out function(out digital bits) |
|
|
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? |
|
| Back to top |
|
 |
sandberg
Joined: 05 Oct 2005 Posts: 90 Location: Denmark
|
Posted: Wed Nov 23, 2005 1:38 am Post subject: Re: New Idea for Out function(out digital bits) |
|
|
| 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 |
|
| Back to top |
|
 |
Ngel
Joined: 23 Nov 2005 Posts: 4
|
Posted: Wed Nov 23, 2005 2:08 am Post subject: |
|
|
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? :\ |
|
| Back to top |
|
 |
sandberg
Joined: 05 Oct 2005 Posts: 90 Location: Denmark
|
Posted: Wed Nov 23, 2005 2:52 am Post subject: |
|
|
| 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-gps-front-end-program-for-psp.html _________________ Br, Sandberg |
|
| Back to top |
|
 |
Shine
Joined: 03 Dec 2004 Posts: 728 Location: Germany
|
Posted: Wed Nov 23, 2005 9:26 am Post subject: |
|
|
| 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 |
|
| Back to top |
|
 |
Ngel
Joined: 23 Nov 2005 Posts: 4
|
Posted: Thu Nov 24, 2005 2:42 am Post subject: |
|
|
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/serial/Basics/BitFormat.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] |
|
| Back to top |
|
 |
|