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 

SparkFun PSP Touchscreen and Data Entry

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



Joined: 11 Jul 2007
Posts: 178

PostPosted: Tue Sep 04, 2007 7:06 pm    Post subject: SparkFun PSP Touchscreen and Data Entry Reply with quote

Good morning,
I saw, starting search on this forum, the
http://www.sparkfun.com/commerce/product_info.php?products_id=8448
SparkFun Touchscreen for PSP.
I'm assuming, but probably I'm wrong, that these devices are transmitting via serial signals their data, in this case something related with x and y of single touch on screen.
I saw also, again from this encyclopedic forum, the
http://www.sparkfun.com/commerce/product_info.php?products_id=449
that connected to the HRPM plug using
Vcc - yellow
Gnd - blue
Tx - gray
Rx - orange
from a cut off remote cable (according to user "dsn" experience), it should work properly as Serial interface controller for PSP.
If my assumption of serial signal from Touchscreen, these two devices are enough to work finally with a new data input way for PSP.
I'm goiung to order both, anybody could confirm my (hope right) design and/or have experience on that issue?

Thanks in advance
Back to top
View user's profile Send private message
cory1492



Joined: 10 Dec 2004
Posts: 216

PostPosted: Tue Sep 04, 2007 8:11 pm    Post subject: Reply with quote

You'll have to look further for more touchscreen hardware, as far as I know no analog pressure data comes out of a plain touchscreen in serial without a controller/resistance interpreter of some type added.

I have that exact serial adapter here, it indeed works well for SIO use like the kprintf handler, psplink and perhaps other things that would support serial through the headphone port. It cannot get the highest speed the port is capable of though (too low voltage from what I was told to support 19,600bps), so a Max rs232 converter would be preferred for best performance.
Back to top
View user's profile Send private message
mypspdev



Joined: 11 Jul 2007
Posts: 178

PostPosted: Tue Sep 04, 2007 8:57 pm    Post subject: Reply with quote

cory1492 wrote:
You'll have to look further for more touchscreen hardware, as far as I know no analog pressure data comes out of a plain touchscreen in serial without a controller/resistance interpreter of some type added.

I have that exact serial adapter here, it indeed works well for SIO use like the kprintf handler, psplink and perhaps other things that would support serial through the headphone port. It cannot get the highest speed the port is capable of though (too low voltage from what I was told to support 19,600bps), so a Max rs232 converter would be preferred for best performance.


Thanks very much, my doubt was on my too easy assumption.

Please could you explai what do you mean when saying "I have that exact serial adpter here ..." .. is it the MAX rs232 converter?
May be we have to refer to http://nil.rpc1.org/psp/remote.html
Isn't it? Thanks
Back to top
View user's profile Send private message
hlide



Joined: 10 Sep 2006
Posts: 750

PostPosted: Tue Sep 04, 2007 9:06 pm    Post subject: Re: SparkFun PSP Touchscreen and Data Entry Reply with quote

mypspdev wrote:
I'm assuming, but probably I'm wrong, that these devices are transmitting via serial signals their data, in this case something related with x and y of single touch on screen.

my assumption is that you're wrong. According to what we can read about those 4 wires in http://www.sparkfun.com/datasheets/LCD/HT043A-NCOFD52-R.pdf, thoses 4 lines are not serial. there are X1, Y1, X2 and Y2.

So you probably need another piece of hardware with an MCU which would translate or embed your X1, Y1, X2, Y2 coordinates in a serial packet readable by PSP. I strongly suspect those lines to be analogic so you need a MCU with 4 ADC pins.

MCU : Micro Controler Unit (a small CPU with some stuffs like sio, spi, i2c, adc, dac, pwm, dmac, etc. integrated)

ADC : Analogic to Digital Converter

I would be glad to see this project to exist and work.
Back to top
View user's profile Send private message
mypspdev



Joined: 11 Jul 2007
Posts: 178

PostPosted: Tue Sep 04, 2007 9:18 pm    Post subject: Re: SparkFun PSP Touchscreen and Data Entry Reply with quote

hlide wrote:


MCU : Micro Controler Unit (a small CPU with some stuffs like sio, spi, i2c, adc, dac, pwm, dmac, etc. integrated)

ADC : Analogic to Digital Converter



Now it sounds better, I've asked to spurkfun a final electric schema for doing it feasible and running, may be in their interest if they would like to sell it.
Back to top
View user's profile Send private message
memon



Joined: 03 Oct 2005
Posts: 63

PostPosted: Tue Sep 04, 2007 10:16 pm    Post subject: Reply with quote

Start with this and you should get your Google keywords right:

http://www.national.com/mpf/LM/LM8500.html

"Four Wire Resistive Touchscreen Controller" gets you pretty far :) I'm sure there are some example hobbyist projects around too.
Back to top
View user's profile Send private message
hlide



Joined: 10 Sep 2006
Posts: 750

PostPosted: Wed Sep 05, 2007 4:05 am    Post subject: Reply with quote

memon wrote:
Start with this and you should get your Google keywords right:

http://www.national.com/mpf/LM/LM8500.html

"Four Wire Resistive Touchscreen Controller" gets you pretty far :) I'm sure there are some example hobbyist projects around too.

this is better !
Back to top
View user's profile Send private message
mypspdev



Joined: 11 Jul 2007
Posts: 178

PostPosted: Wed Sep 05, 2007 6:23 am    Post subject: Reply with quote

hlide wrote:
memon wrote:

http://www.national.com/mpf/LM/LM8500.html

this is better !


So, final hardware required:

- qty 1 Sparkfun #LCD-08448 Touch Screen 4 wire resistive
- qty 1 LM8500 - 4 wire resistive touchscreen controller
- qty 1 MAX3232CPE - RS232 Serial Line converter
- qty 5 0,1 microF Ceramic Capacitors
- package

Connection schema:
Touchscreen 4 wire -> LM8500 -> MAX3232CPE
According to signals.

Is it all we need?

Ok...... starting ...... with part order.... thanks to all
Back to top
View user's profile Send private message
hlide



Joined: 10 Sep 2006
Posts: 750

PostPosted: Wed Sep 05, 2007 6:54 am    Post subject: Reply with quote

mypspdev wrote:
hlide wrote:
memon wrote:

http://www.national.com/mpf/LM/LM8500.html

this is better !


So, final hardware required:

- qty 1 Sparkfun #LCD-08448 Touch Screen 4 wire resistive
- qty 1 LM8500 - 4 wire resistive touchscreen controller
- qty 1 MAX3232CPE - RS232 Serial Line converter
- qty 5 0,1 microF Ceramic Capacitors
- package

Connection schema:
Touchscreen 4 wire -> LM8500 -> MAX3232CPE
According to signals.

Is it all we need?

Ok...... starting ...... with part order.... thanks to all


if you take a LM8500, why do you need MAX3232CPE ? since Vcc= 5,5V (CKI = 10 MHz) for LM8500.

you need a crystal clock too (10 MHz)
Back to top
View user's profile Send private message
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Wed Sep 05, 2007 7:44 am    Post subject: Reply with quote

The guy who told you that doesn't know what he's selling if you've relayed
what they told you right :D

The minimun hardware requirement to connect that touchscreen to the PSP is nothing
as I said in another thread, you could remove the analogue nub and connect it there,
but I don't think there's an easy way to make that loook good.

To connect it via serial you'd need something like a pic microcontroller with two
analogue inputs to read the state of the two potentiometers in real time and
transmit the position via serial straight to the PSP.
Like hlide said, but that's only two analogue channels (X & Y) not four.

A simple programming trick allows you to transmit from an pic to the PSP
without any RS232 converter by inverting the signal in software.
the serial line was never RS232 that's for takling with desktops.
Back to top
View user's profile Send private message
shsanjp



Joined: 05 Sep 2007
Posts: 2
Location: Japan

PostPosted: Wed Sep 05, 2007 8:59 am    Post subject: Reply with quote

Hi guys,

I too am interested in the Touchscreen. I have already purchased it and I am planning to hook it via a ATMEGA32 that I had lying around.

Atmel provides some sample code to drive the Touch Screen and a document describing how to hook it up. So it should be fairly straight foward.

http://www.atmel.com/dyn/products/app_notes.asp?family_id=607&part_id=3302
( AVR341: Four and five-wire Touch screen Controller )

I will have to take the power from the usb and plug it to the SIO too which is a bit ugly but unavoidable since the ATMEGA part that I have requires 5V.

My question is not really hardware related but on the software side.

I am currently modifying a Kanji Learning software and adding the touch screen will greatly improve it.
I'll probably do my first tests in that software with some dedicated code, but how easy would it be to produce a module which replaces the analog stick?

My guess is that it will have to be a rewritten prx or something permanently residing in memory at the kernel level to be supported by most software.

Apart the obvious issue of the analog stick to be 8bit values and the screen producing 10bit coordinates, I was also wondering if we could emulate the buttons (by clicking on some parts of the screen for example), although it might not be responsive enough.

Oh and by the way, assembling the touch screen is going to be messy (well a bit), obviously you cannot put it in the PSP but sticking it above the screen will require cutting a bit the buttons (> and square) because the screen is slightly too large.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
cory1492



Joined: 10 Dec 2004
Posts: 216

PostPosted: Wed Sep 05, 2007 11:54 am    Post subject: Reply with quote

mypspdev wrote:
Please could you explai what do you mean when saying "I have that exact serial adpter here ..."

http://www.sparkfun.com/commerce/product_info.php?products_id=449
Back to top
View user's profile Send private message
memon



Joined: 03 Oct 2005
Posts: 63

PostPosted: Wed Sep 05, 2007 10:15 pm    Post subject: Reply with quote

IIRC PSP operates on 3.3v, so unless you want to use external power supply, the LM8500 is out of the question. LM8300 is 3.5v model, might work fine with 3.3v too. Some other controllers operating at 3.3v:

Texas Instrument's TSC2005 is another one too:
http://focus.ti.com/lit/ds/sbas379a/sbas379a.pdf

Here's someone's project using TI ADS7843:
http://instruct1.cit.cornell.edu/courses/ee476/FinalProjects/s2006/ja94/Amsel%20-%20Klitinek%20Final%20Project/index.htm
http://focus.ti.com/lit/ds/symlink/ads7843.pdf

Microcontrollers are also a possibility, but these controllers will just do the same thing and usually provide easier HW to interface with. As an added bonus, you can use the extra ADC inputs to measure temperature :)
Back to top
View user's profile Send private message
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Wed Sep 05, 2007 11:07 pm    Post subject: Reply with quote

The Texas Instruments device you mention there has SPI interface that's a
proprietry connector like I2C (Inter-Intergrated Circuit Interface - the coolest acronym ever made),
the serial line has a seperate clock signal not compatible with the PSP.
http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus
Now that you need a microcontroller to interpret the SPI output,
you might as well throw away the Texas Instrument device and just use the
microcontroller alone to interpret the input from the touch screen as well.
Back to top
View user's profile Send private message
shsanjp



Joined: 05 Sep 2007
Posts: 2
Location: Japan

PostPosted: Thu Sep 06, 2007 12:16 am    Post subject: Reply with quote

Just a quick message to say to ignore my previous question.

I have found the answer.
Thanks Tyranid for RemoteJoy ;-)

Now I just need to buy the few missing components and I am good to go.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
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