Pages: [1]   Go Down
Author Topic: TouchScreen Interfacing and Beagle Bone ??  (Read 1523 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello
I'm a relatively seasoned arduino user and a noob beagle user. What i want is this ->
As beaglebone has no lcd cap here is my solution-
I'll use ardunio to interface with the touchscreen and connect arduino to beaglebone using UART or usb..
So that ultimately i use beaglebone to use touch screen.

is this possible ?
can you give me a brief description on how to do it.

Thank You
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 121
Posts: 8437
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

it is possible but you could also just get a serial LCD/touch screen like the ones from 4D Systems and remove a level of complexity.

______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So i wouldnt need the arduino ?
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 121
Posts: 8437
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

No, if all you want is a display with touch you can do all that with a single serial port and a smart display.

Have a look at this sort of thing

http://www.4dsystems.com.au/prod.php?id=113

Only 3.2" though.

EDIT: I just noticed they now have a 4.3" model

http://www.4dsystems.com.au/prod.php?id=156

______
Rob

« Last Edit: January 22, 2012, 10:17:42 pm by Graynomad » Logged

Rob Gray aka the GRAYnomad www.robgray.com

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thats is one solution
Thanks
But how do i interface an Arduino and a Beagle (for touchscreen)..
a detailed description would be appreciated
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 121
Posts: 8437
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I thought we determined you didn't need the Arduino, you said the Beagle doesn't have an LCD cap (I assume you meant "cape"), I said just use a serial display.

Where does the Arduino now come into it? Or does the beagle not have a spare serial port?

______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Offline Offline
Newbie
*
Karma: 1
Posts: 29
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you really want to use the Arduino, the first step is getting the arduino functioning with the touchscreen in the way you would like to use it.  Write arduino functions to perform all the basic required actions with the touchscreen.  A touchEvent interrupt handler to record the location and timestamp of a touch event.  A drawScreen function to paint the screen from an array of pixel_t.  Store some frequently used image maps in Arduino flash if you have the space, for quick display of menus, buttons, background.  create a text2imageMap function.  write the matrix math functions for moving your small element image maps around within the main pixel array.  Handle overlaps/off screen/...   analyzeTouch would parse a generic touchEvent into a logical action such as buttonPush, swipe, scale, rotate,  areaSelect, etc; passing on the original timestamp.  For each action, for example: menu selection, if the display should always show a fixed new set of choices based on a given choice, code that in the arduino.  Write functions to store and readback state or configuration data from EEPROM.  Basically, code your entire user interface into the arduino(if it will fit) so that it can display each required element, and parse all meaninful touch information discarding the rest.  Dont implement any actual functionality of the selections in the arduino, just record the selections.
Next step, devise a protocol.  figure out what commands sent to the arduino should trigger display of which stored image maps, where on the screen.  How to receive a serialized pixel_t screen[][] and send to drawScreen.  Send out notice of logical actions with their timestamps.
Now code your BeagleBone, PC or really any processor to interface with your protocol.
Next, share your work.  I'd love to see it.
Dustin Maki
Logged

Pages: [1]   Go Up
Jump to: