Saturday, April 5, 2008

Touch Shield Bitmap Portal

Touch Shield Bitmap

  1. Set up your Touch Shield
  2. Open the Touch Shield Bitmap Portal
  3. Open the bitmap you want to upload
  4. Upload the bitmap (Burn Bitmaps)
1.)Set up your Touch Shield
  • Set the "Board" to "TouchShield" in the Arduino environment.
  • Put the Touch Shield into the boot loader by pressing the “Black Button”.














































Image interface code:

void setup()
{

image_interface_begin(); //wait for the vb image downloader to take over

bmp_draw("spears5",0,0); //draw the spears5 bitmap that is stored on the memory chip at //location (0, 0) which is the top left corner of the OLED screen.

while(1); //wait forever
}


2.)
Open the Touch Shield Bitmap Portal
  • Open "TSImageUploader.exe".
  • Enter the COM Port number in the box to the right of “Enter COM Port
    Number”.


3.) Open the bitmap you want to upload
  • File -> Open -> spears5.bmp
  • The file should be a bitmap (.bmp).
  • The file should have a resolution of 128 X 128 or smaller.




4.) Upload the bitmap (Burn Bitmaps)

  • Click on the “Burn Bitmaps” button and wait.
  • It will say, “Finished” when all of the images are downloaded onto the Touch Shield memory chip.





6 comments:

golgobot said...

I get an error when I try to open a bmp. Here is the stack trace

************* Exception Text **************
System.ArgumentException: Source array was not long enough. Check srcIndex and length, and the array's lower bounds.
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length)
at MikeVB1.Form1.OpenToolStripMenuItem_Click(Object sender, EventArgs e) in C:\Documents and Settings\Mike G\Desktop\MikeVB1\MikeVB1\Form1.vb:line 133
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Chris said...

It looks like the image resolution may be too large.

Is it less than or equal to 128x128?

Derek said...

When I click Burn Bitmaps, it tells me "there is no touch shield connected to com4". My arduino is connected to com4, and i have no other problems transferring programs to both the arduino and the touch shield when it is set to that port in arduino compiler.

the touch shield should also be running "image_interface_begin();" like it told me in the directions

Everything seems to work fine except when transferring images using the bitmap burner. Can anyone help me? Also, I am using Vista.

χєνισυš said...

I am attempting to upload a floating ball program to my stealth, but when it comes to uploading the BMP, it's a no go. I called image_interface_begin() on the touch shield as described. After i upload the sketch successfully, i go into the program and set the COM port the same as the Arduino IDE, set the bmp to upload, and hit burn. all it does is that after a few seconds it pops up with a message saying that there was no touch shield found.
When i upload to the touch shield, it spits out some verson info (i assume for the TS), and it has one line which says that the "Software Version = 0.7". Does that have anything to do with my situation or is that just fine? (i thought the core was at .9 or so)
Any ideas?

Matt said...

@xevious (ps how do you get all those script characters in your name?) ... can you email me at inthebitz at gmail, and i'll see if i can help. actually, i think after a little bit more hacking this weekend, chris and mark s. are going to have a completely re-written image interface for the stealth and the slide that is cross platform... because it acts up a little on macs :(

Unknown said...

Hi,

I have the same problem that Derek and xevious mentioned. The touchshield is connected to the port but I get the message "No touch shield connected to port COM14".

I am using XP.
Thanks,
Foad