Home Page
+ Reply to Thread
Results 1 to 15 of 15

Thread: I Built a Touchscreen USB Mouse! [Project]

  1. #1

    Contraption I Built a Touchscreen USB Mouse! [Project]

    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.

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

    Image Previews:







    Schematics:

    The first image is the original, and the second is the one I modified (used mspaint ). 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.






    Source:

    You can find the source here: here (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
    Code:
    avrdude -c usbtiny -B 1600 -patmega168 -U flash:w:main.hex -U hfuse:w:0xde:m -U lfuse:w:0xdf:m

    3 x Gold Star!
    2 x Informative!
    2 x Artistic!
    (list)
    Last edited by Mr. Hasselhoff; 07-29-2009 at 04:22 PM.


  2. #2
    Baked :) s_8ball is one step away from curing cancer. s_8ball is one step away from curing cancer. s_8ball is one step away from curing cancer. s_8ball is one step away from curing cancer. s_8ball is one step away from curing cancer. s_8ball is one step away from curing cancer. s_8ball is one step away from curing cancer. s_8ball is one step away from curing cancer. s_8ball is one step away from curing cancer. s_8ball is one step away from curing cancer. s_8ball is one step away from curing cancer. s_8ball's Avatar
    Join Date
    Jan 2007
    Posts
    5,998
    i want them now!

  3. #3
    colourin within the lines speedtouch will always be better than you. speedtouch will always be better than you. speedtouch will always be better than you. speedtouch's Avatar
    Join Date
    Nov 2007
    Posts
    370
    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?


  4. #4
    Pics added! My wiring is a bit messy and all over the place.


  5. #5
    That looks really complex. I couldn't do it.

    1 x Agree!
    (list)

    Bangin hotties and Allah's will from '05 to '08

  6. #6
    Adrift a sea of obscurity Cobalt will always be better than you. Cobalt will always be better than you. Cobalt will always be better than you. Cobalt will always be better than you. Cobalt's Avatar
    Join Date
    Apr 2008
    Posts
    1,733
    Youtube Steam
    When is a demo video going to come out? I want to see it in action!

  7. #7
    Quote Originally Posted by Haze View Post
    That looks really complex. I couldn't do it.
    To be honest, the schematic isn't all that complex, you'd be surprised.


  8. #8
    What are you going to enclose it in?


    Sent from my Intel E6600 using Firefox.

  9. #9
    is awesome. yanney invented the wheel. yanney invented the wheel. yanney invented the wheel. yanney invented the wheel. yanney invented the wheel. yanney invented the wheel. yanney invented the wheel. yanney invented the wheel. yanney invented the wheel. yanney's Avatar
    Join Date
    Jan 2007
    Posts
    4,807
    XBL Send a message via AIM to yanney
    Quote Originally Posted by UgLy-NeRd View Post
    What are you going to enclose it in?
    his vagina, so guys have something do to when they have their hands down there.

    1 x Funny!
    (list)

  10. #10
    Video is up! I'll post the modified schematics later!


  11. #11
    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**


  12. #12
    Quote Originally Posted by Tyron View Post
    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.
    Meh

  13. #13
    Quote Originally Posted by Tyron View Post
    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.
    Last edited by Mr. Hasselhoff; 07-29-2009 at 04:23 PM. Reason: Automerged Doublepost


  14. #14
    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.

    1 x Thanks!
    (list)

  15. #15
    Hello everyone. The project I did with Mega16. Everything is right but when I do by my finger Pointer jump to corner of the display and don't move . please help me , thanks .

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)