يحجل [بووكمرك], سهم, وموقعاتك مفضّلة مع [ستهوبّين] [توولبر] ل [فيرفوإكس]!


[زدومإكس] [دي117] - يجعل [هووتو] [ديجتل] يسحب لون مع ذراع قيادة قديمة في 5 دقائق!

يعيّن داخل [ديي] [زدومإكس] بحدّ أقصى في نوفمبر - تشرين الثّاني [3رد], 2006 في 4:42 بعد الظّهر

[[ديي]117]

أتمّت هو بنفسي!


This program prints the value of the X and Y analog outputs of the joystick.
Since I didn’t know what analog voltage I was supposed to receive,

I simply ran the program and noted the analog input values when the
Joystick was in the center, left, right, down, and up.

Now with those values, I could calibrate my program to know when to move
the cursor to the left, right, up, and down.

Here is part of the BASIC code for the XAxis:

MLeft and MRight are sub functions that will simply re-draw the cursor about 8 pixels to the left and right.

I would give about value of 10 (AD input returns a value between 0 to 1024
for voltage between 0 and 5V), as a safety value for debouncing and shakes.

Likewise, I made similar functions for up, down, and diagonal directions.

Download JoyStick Program here

Well you can download the JoyStick Program using CublocStudio and see this initial screen:

Completed Look of the Digital Drawing Board:

You can use the pushbutton on the Study Board to draw!

Taking it Further…

Yes, you could use these old joysticks for anything like a remote-controlled robot, drawing board, or anything that requires left, right, up, and down buttons.

Next time, we will see if we can make a bluetooth joystick…

<:)

If you are having any trouble with above app, please e-mail max@zedomax.com

If you have any cool apps you’d like to share or want some kind of DIY, please e-mail to max@zedomax.com

We do accept free samples for DIYs, please email max@zedomax.com :)


1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...




If you like this post then please subscribe to my full feed RSS. You can also subscribe by Email.

Got a new hack, DIY, howto, or gadget? Tip us here.

Search for a Hack:


Bookmark It!


|del.icio.us |Digg it |SiteHoppin |Wagg It | TrackBack |




Email this to a Friend Email This Page Email This Page

RSS feed | Trackback URI

1 Comment »

2006-11-03 17:00:02

[...] Zedomax DIY117 - HOWTO Make a Digital Drawing Board with an old joystick in 5 minutes! Posted in DoItYourself!, Entertainment, Microcontroller, Video, DIY Zedomax, Cool, Graphics by max on the November 3rd, 2006 analog, build, Cool, diy, DoItYourself!, drawing board, Entertainment, graphics, Hack, howto, joystick, make, Microcontroller, Video, Zedomax [...]

MyAvatars 0.2
Name (required)
E-mail (required - never shown publicly)
URI

Subscribe to comments via email
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.