You could but the code will have to be writen in 4DGL which is a C like language… So it wont be arduino code
And it will be hard to communicate the xbee with it… since the USART on that screen are being use for the touch part it… So we have to create a USART port in software, and xbee dont like that, another option would be to make our own serial port out of it, but again xbee dont like that… they work best when connected to a dedicated hardware USART.
On my 644p based board, yep it is sort-of like the Arbotix board, As mentioned I removed the Bioloid connections, although I have thought of putting one on it or simply use a simple jumper to something like: trossenrobotics.com/p/Bioloi … e-Hub.aspx as I know do have a few projects using AX-12 servos… I also removed the motor headers. I then added all of the stuff that I wanted (buttons, leds, sound, 3 pin headers…) Like the Arbotix board, I left the FTDI rs232 stuff off of the board and use an external cable to do that. Did this for a couple of reasons, which included, no need for the extra cost for each board, especially when it will be inside something, 2 easier to extend simple cable to exterior of case than USB and again another SMT device I did not have to hand solder…
Now back to touch screen. The 4D system has an micro-SD card slot on it for holding things to display, it also has it’s own small speaker onboard, that can play WAV files, so if I stick with this as the display removes the need to have sound on the main board…
Small joysticks… If I were to design my all in 1 board/shield like the Arbotix Commander, I was thinking of trying: sparkfun.com/products/9032 which is probably the same one as is in the commander. But again I am torn.
Whole Hog approach:
4D system Touch display: $85
2 good Gimbals: $60-$80
Need for more complex case: …
All in one simple approach, that has simple holders like Arbotix…
Simple 4 or 8 pin interface: Could go graphic or not: $10-40
2 Thumb gimbals: $10
…
In either case, I am hoping to have some free Analog IO pins to experiment and maybe add some 2/3 axis tilt sensor…
That is all for now… Now to see what all that has happened while typing this in…
Depend on the material use.
Simple would be G10 (Glass fiber) sheet. No milling just holes for components etc… Probably about 30-40$
Hard would be 1/8" Aluminum sheet with milling like on the picture… that would cust more. Need to calculate what it cost. (but mine will be like that… lol)
I will help out! May not put all of my eggs in one basket though… I might design 2 boards and try both ways! I think I still have two of my .02 boards sitting here that I have not built at all. I was thinking of making some tweaks to them and could either have more built again at PCFabexpress like I have done in the past or could try the one through sparkfun which is a lot cheaper… May take a little time to get this done as I do have a few other projects going on right now… But I will start on soon!
FYI - I plugged my Touch screen in to a Mega, plus the two nun-chucks and an XBee and it looks like I need to debug this again. May not have done much with this since converting to Arduino 1.0.x…
Will follow up when I figure out what broke… (Not drawing everything, Touch events not coming through) Time for Logic Analyzer!
As I mentioned I have used the library in the past and may again, but thought it would be nice to get my stuff up and working again. As I mentioned not sure if his library has been updated yet for 1.0 Arduino.
FYI - got the stuff working again… Some of my conversion from 0023 to 1.0.x problem. That is in old Arduino:
MySerial.print(b, BYTE);
is not supported, instead needs to be converted to MySerial.write(b)… Screwed up on one of them… So it output my Touch status command with a ‘4’ instead of a 0x4…
I will look again at the mentioned library to see about using it. Has lots of great stuff, had issues earlier about being too modal… His button code for example once you pressed on the screen would not return until you released your finger and only then would give you a value. During this time my code was not running to respond to requests from robot… Also I want(ed) the ability to click down on my logical scroll-er and send out values to the robot as I move my finger up and down(or left and right). Example you are adjusting the height… He may have solved some of these issues since then…
But in case you wish to play along, Here is the updated code:
My code is running in SGC mode… Note: I purchased one of their serial interface adapters to allow me to change things like that… May have to look around to see where I put it.