PDA

View Full Version : I Built a Touchscreen USB Mouse! [Project]


Mr. Hasselhoff
07-24-2009, 04:38 PM
Woot! Pics and vid up later!

Here's some pics of the touchscreen arduino. The code needs some serious optimization, however, as it's kind of buggy and the mouse doesn't move smoothly. Should be a rather easy fix, just need to throw out the first 1-3 samples when a user starts touching the screen, and the last 1-3 samples before they stop touching the screen. That should hopefully clean it up somewhat. Also need to exclude outlier X&Y results.

http://www.youtube.com/watch?v=unugcaJwGFs

Image Previews:

http://hoff.zomgstuff.net/Projects/Arduino/TouchScreen/Images/IMG_2222.JPG
http://hoff.zomgstuff.net/Projects/Arduino/TouchScreen/Images/IMG_2223.JPG
http://hoff.zomgstuff.net/Projects/Arduino/TouchScreen/Images/IMG_2224.JPG
http://hoff.zomgstuff.net/Projects/Arduino/TouchScreen/Images/IMG_2225.JPG


Schematics:

The first image is the original, and the second is the one I modified (used mspaint :emot-keke:). The second one includes the AREF pin hooked up to +5v source and two 3.3v zener diodes for V-USB compatibility with most computers.

http://hoff.zomgstuff.net/Projects/Arduino/TouchScreen/Schematics/Original_Schematics.jpg

http://hoff.zomgstuff.net/Projects/Arduino/TouchScreen/Schematics/Modified_Scematic.jpg


Source:

You can find the source here: here (http://hoff.zomgstuff.net/Projects/Arduino/TouchScreen/Source/HIDTouch-v15-tutorial.zip) (I did not write it, I'm merely mirroring it. Code is from sparkfun.com). The code was originally written for the ATMEGA168, but should work with the ATMEGA 328. If you're flashing the 168, you'll most likely run into the same issues with your computer not recognizing the V-USB on the microcontroller with basic avrdude command due to fuse burn settings, so try this
avrdude -c usbtiny -B 1600 -patmega168 -U flash:w:main.hex -U hfuse:w:0xde:m -U lfuse:w:0xdf:m

s_8ball
07-24-2009, 04:56 PM
i want them now!

speedtouch
07-24-2009, 04:57 PM
Sounds cool!

A friend of mine had his iTouch die on him, and said I could have it. Would be nice if I could salvage the touch screen or something. Any specific info you found useful?

Mr. Hasselhoff
07-24-2009, 06:03 PM
Pics added! My wiring is a bit messy and all over the place.

Haze
07-24-2009, 06:19 PM
That looks really complex. I couldn't do it.

Cobalt
07-24-2009, 09:51 PM
When is a demo video going to come out? I want to see it in action!

Mr. Hasselhoff
07-25-2009, 01:02 AM
That looks really complex. I couldn't do it.
To be honest, the schematic isn't all that complex, you'd be surprised.

anonymouse187
07-27-2009, 07:45 PM
What are you going to enclose it in?

yanney
07-27-2009, 09:11 PM
What are you going to enclose it in?

his vagina, so guys have something do to when they have their hands down there.

Mr. Hasselhoff
07-28-2009, 05:58 PM
Video is up! I'll post the modified schematics later!

Tyron
07-28-2009, 08:08 PM
Nice, why does the line in paint shoot up and down sometimes? Are you doing it by hand or is it like a bug?

**My ears are bleeding**

Devils Reject
07-28-2009, 08:12 PM
Nice, why does the line in paint shoot up and down sometimes? Are you doing it by hand or is it like a bug?

**My ears are bleeding**
i think that happens when he takes his hand off it.

Mr. Hasselhoff
07-29-2009, 12:32 AM
Nice, why does the line in paint shoot up and down sometimes? Are you doing it by hand or is it like a bug?

**My ears are bleeding**
The resistance values change greatly when you go from lots of pressure, to little pressure, to letting go, and visa versa for the opposite procedure. Most of the stuff can be fixed by optimizing the code, and I'll talk more about that later when I have time to get in depth with the details.
Edit:
Schematics added.

ingridseynhaev
09-02-2009, 03:58 AM
Hi Mr. Hasselhoff,

You made extremly good work by creating this project. Though, it contains some bugs but the concepts, that you used, are excellent. Through the photographs, you have made a try to show your work. My wishes for you to correct the bugs that the project has. :smile: