From: Rusty Russell Date: Wed, 8 Dec 2010 05:34:32 +0000 (+1030) Subject: Add web pages. X-Git-Url: https://git.ozlabs.org/?p=ponghero.git;a=commitdiff_plain;h=HEAD;hp=3b07a088e47dffe99415cb01f42ea89c9185bdc5 Add web pages. --- diff --git a/web/7-0-pong-hero.png b/web/7-0-pong-hero.png new file mode 100644 index 0000000..a45e2e8 Binary files /dev/null and b/web/7-0-pong-hero.png differ diff --git a/web/Laptop_icon.svg b/web/Laptop_icon.svg new file mode 100644 index 0000000..6c43cb9 --- /dev/null +++ b/web/Laptop_icon.svg @@ -0,0 +1,208 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + Ordenador portátil + 12 junio 2006 + + + Daniel Clemente Laboreo + + + + + laptop portátil notebook ordenador terminal equipo icono icon + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/web/index.html b/web/index.html new file mode 100644 index 0000000..16462a5 --- /dev/null +++ b/web/index.html @@ -0,0 +1,45 @@ + + + + + Pong Hero + + + +
+ + +
+
+

Pong Hero

+

+ My demo for the + 2008 linux.conf.au Open Day is whimsically entitled "Pong + Hero". It's a two-player game using the Nintendo Wii Remote as an + infra-red camera (inspired by Johnny Chunk Lee's Interactive Whiteboard + project), and two home-made infrared light pens. I have a + separate page describing how to make the pens. +

+ +

+ The code can be grabbed straight from the Ozlabs git repository: it's pretty hacky and has at least one known bug in collision detection. +

+ +

+ You can see see a video of the start of a game thanks to Matt Rechenburg, and a longer one with some setup thanks to Paul Fenwick.

+ +

Licence

+

Pong hero is available under version 2 of the GNU General Public Licence + (GPLv2) or (at your option) any later version.

+ +

Thanks

+ +

Thanks to Caitlin for hardware design and construction help, + Akkana Peck for the simple images, Val Henson and Anthony Towns for + wading into the codebase and finding my bug. +

+
+ Rusty Russell: rusty@rustcorp.com.au. + + diff --git a/web/irpen.svg b/web/irpen.svg new file mode 100644 index 0000000..3da5241 --- /dev/null +++ b/web/irpen.svg @@ -0,0 +1,119 @@ + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + InfraRed + + + diff --git a/web/irpen/LED-diag.png b/web/irpen/LED-diag.png new file mode 100644 index 0000000..8b8a966 Binary files /dev/null and b/web/irpen/LED-diag.png differ diff --git a/web/irpen/LED-diag.svg b/web/irpen/LED-diag.svg new file mode 100644 index 0000000..12b3ea9 --- /dev/null +++ b/web/irpen/LED-diag.svg @@ -0,0 +1,173 @@ + + +image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/web/irpen/bottom.jpg b/web/irpen/bottom.jpg new file mode 100644 index 0000000..56e9174 Binary files /dev/null and b/web/irpen/bottom.jpg differ diff --git a/web/irpen/complete.jpg b/web/irpen/complete.jpg new file mode 100644 index 0000000..8bde639 Binary files /dev/null and b/web/irpen/complete.jpg differ diff --git a/web/irpen/full-pen.jpg b/web/irpen/full-pen.jpg new file mode 100644 index 0000000..f050c68 Binary files /dev/null and b/web/irpen/full-pen.jpg differ diff --git a/web/irpen/index.html b/web/irpen/index.html new file mode 100644 index 0000000..aa30abd --- /dev/null +++ b/web/irpen/index.html @@ -0,0 +1,237 @@ + + + + + Pong Hero + + + +
+ + +
+
+

Pong Hero: Making IR Pens

+ + + + + + +

+ After some experimentation, I settled on a nice form factor for + Pong Hero, using lip balm (Chap Stick) containers. These have + three 5mm IR LEDs and a rechargable AAA battery contained neatly + inside them. +

+
+ +
+ +

Background

+

+ The Wiimote contains an Infra Red camera, so it can track IR + lights. IR LEDs are around 75c each but they're very directional, + so in practice the Wiimote is seeing the IR light shining on + the wall rather than the LEDs themselves. +

+ +

+ This discovery allows us to get away without a switch on the IR + pen: just take it more than about 5 cm from the wall and it's too + dim to be seen. For a more general whiteboard, a momentary push + switch near the end would be great though (fitting it on the + container is hard, tips welcome!). +

+ +

+ The other simplification is to use rechargable AAA + batteries. These are 1.2 volts, rather than 1.5 volts, so we + don't need a resistor. Unfortunately, they drop voltage faster + than decent batteries, so this could also explain why I found the + need to have three LEDs: sneaking a resistor into the circuit and + using 1.5V AAAs might let you get away with a single LED. +

+ +

Ingredients

+
    +
  1. 3 Infrared LEDs (get spares, I killed some), +
  2. Lip balm container (my study smells of strawberries now) +
  3. A rechargable AAA battery (and a charger, of course!) +
  4. A pen with a spring in it (free promotional click pens are good) +
  5. 20cm of hookup wire +
  6. A digital camera (for easier debugging, as it can see IR) +
  7. Long-nose pliers (to twist the LED legs together) +
  8. Snips (to cut the LED legs, shaft of container, wire, spring) +
  9. Soldering iron and solder +
  10. Glue (to secure spring to bottom of container, maybe LEDs into top) +
+ +

You should be able to make two devices for under $20, assuming + you have tools.

+ +

Steps

+ +

Preparing the tube

+

+ Wind the lip balm all the way out, applying to your lips if + they're dry (this is really your last chance to do this, and it + helps you feel you got your $3 worth!). Remove it, and then pop + off the base cap of the lip balm. +

+ +
+ + + + + +
+

The bottom part: the spring

+

+ Use the snips to clip off all but the bottom few millimeters of + the central shaft which went through the balm. Remove the spring + from the pen and cut it in half. Strip one end of the hookup wire + and wrap it around the bottom of the spring: solder it in place. +

+ +

+ Glue the spring into the truncated chap, and you should get + something like this: +

+
+ +
+ + + + + + +
+

The top part: the holes

+

+ Bore three holes through the top of the lip balm container; use + one of the LEDs to check the sizing. +

+
+ +
+ +
+ +

The LEDs

+ + + + + +
+

+ This is probably the trickiest part. I put the three LEDs into + the top with the flat side of each one facing out: this puts the + long legs near each other on the inside. +

+
+ +
+ + + + + + +
+

+ Twist the inner legs into one big leg. Be careful that as you're + twisting them they don't pull out of the holes. Trim the + twisted-together legs and solder them together. This will touch + the positive contact of the battery: you can place the other half + of the pen-spring around this if it makes it easier to get decent + contact (and doesn't short it out!). +

+
+ +
+ + + + + + +
+

+ For the outer legs, I connected them together with two pieces of + hookup wire, then snipped the legs right down to stay out of the + way. +

+
+ +
+ + + + + + + + +
+

+ Finally, feed the wire from the bottom spring through the + tube and solder it onto the outer LEDs. +

+
+ +
+ +
+ +

Finishing and Debugging

+ + + + + + +
+

+ Push (or glue) the bottom back onto the main tube, then push a + battery into the tube. The flat (negative) end goes in first, and + the knobby (positive) end goes at the top. You should then be + able to ease the cap on, making sure that the top of the battery + presses against the central twisted-together legs of the LEDs. +

+
+ +
+ + + + + + +
+

+ The easiest way to test is to look through a CCD camera: cell + phones tend to work well since they have cheap cameras which don't + filter out IR very well. Note that you'll only see a light from + straight ahead, as the LEDs are very directional. Also, the + battery should be fully charged: it gets quite dim quickly. +

+
+ +
+ +

+ That's it: you have a pen! I found that taking the lid off + between games to try to save battery power had the opposite + effect: I suspect that momentary short-circuits as the top was + pulled off drained the battery quite quickly. Some glue and + insulation might help here, but I was just happy that it worked at + all! +

+
+ Rusty Russell: rusty@rustcorp.com.au. + + diff --git a/web/irpen/leds.jpg b/web/irpen/leds.jpg new file mode 100644 index 0000000..88479d0 Binary files /dev/null and b/web/irpen/leds.jpg differ diff --git a/web/irpen/top-holes.jpg b/web/irpen/top-holes.jpg new file mode 100644 index 0000000..cf6a799 Binary files /dev/null and b/web/irpen/top-holes.jpg differ diff --git a/web/irpen/top-lit.jpg b/web/irpen/top-lit.jpg new file mode 100644 index 0000000..2f3cdb4 Binary files /dev/null and b/web/irpen/top-lit.jpg differ diff --git a/web/irpen/top-with-leds.jpg b/web/irpen/top-with-leds.jpg new file mode 100644 index 0000000..bf21fec Binary files /dev/null and b/web/irpen/top-with-leds.jpg differ diff --git a/web/irpen/with-battery.jpg b/web/irpen/with-battery.jpg new file mode 100644 index 0000000..ce3c8ce Binary files /dev/null and b/web/irpen/with-battery.jpg differ diff --git a/web/logo-copyright.txt b/web/logo-copyright.txt new file mode 100644 index 0000000..b198192 --- /dev/null +++ b/web/logo-copyright.txt @@ -0,0 +1,11 @@ +Logo images and copyright + +Penguin image: + http://www.home.unix-ag.org/simon/penguin/ + Copyright Larry Ewing, Simon Budig, Anja Gerwinski + +Laptop image: + http://en.wikipedia.org/wiki/Image:Laptop_icon.svg + +Wiimote image: + http://gnome-look.org/content/show.php/Wiimote+SVG?content=53620&PHPSESSID=27f2b0817a1c715011362914ec9ddc91 diff --git a/web/logo.png b/web/logo.png new file mode 100644 index 0000000..d54bc2d Binary files /dev/null and b/web/logo.png differ diff --git a/web/logo.svg b/web/logo.svg new file mode 100644 index 0000000..5317a55 --- /dev/null +++ b/web/logo.svg @@ -0,0 +1,5146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + InfraRed + + + + + + + + + + + + + InfraRed + + + + + + + + PongHero + + diff --git a/web/penguin-variant.svg b/web/penguin-variant.svg new file mode 100644 index 0000000..8f49cdd --- /dev/null +++ b/web/penguin-variant.svg @@ -0,0 +1,1002 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/web/wiimote.svg b/web/wiimote.svg new file mode 100644 index 0000000..fae979c --- /dev/null +++ b/web/wiimote.svg @@ -0,0 +1,2433 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + Wiimote + + + + Yann PAPOUIN + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + POWER + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +