forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

New Idea for Out function(out digital bits)

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Ngel



Joined: 23 Nov 2005
Posts: 4

PostPosted: Wed Nov 23, 2005 1:00 am    Post subject: New Idea for Out function(out digital bits) Reply with quote

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
View user's profile Send private message
sandberg



Joined: 05 Oct 2005
Posts: 90
Location: Denmark

PostPosted: Wed Nov 23, 2005 1:38 am    Post subject: Re: New Idea for Out function(out digital bits) Reply with quote

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
View user's profile Send private message
Ngel



Joined: 23 Nov 2005
Posts: 4

PostPosted: Wed Nov 23, 2005 2:08 am    Post subject: Reply with quote

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
View user's profile Send private message
sandberg



Joined: 05 Oct 2005
Posts: 90
Location: Denmark

PostPosted: Wed Nov 23, 2005 2:52 am    Post subject: Reply with quote

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
View user's profile Send private message
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Wed Nov 23, 2005 9:26 am    Post subject: Reply with quote

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
View user's profile Send private message
Ngel



Joined: 23 Nov 2005
Posts: 4

PostPosted: Thu Nov 24, 2005 2:42 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group