Sunday, May 23, 2010

Mac Mighty Mouse trackball embedded interface hack


Inspired by input nirvana from geekhack I got a free mighty mouse from a generous donor and went about interfacing to it. There's plenty of teardowns already available on the net, so I'll skip opening the mouse and just show this picture with the pinout to the trackball. Note that it's even simpler than most typical trackballs in that it doesn't make use of quadrature encoding for the two axes. The trackball actually has four distinct pulsed outputs corresponding to the four little wheels surrounding the ball. When rolling in any of the four cardinal directions (left,right, up,down) only one of those little wheels is actually spinning. Decoding the output of the overall trackball simply requires detecting pulses on each of the four pins. If the state of any pin changes from what it was during the last polling interval then you've moved in that direction. Instead of polling you could also just set up four pin change interrupts.

To test things out I hooked up the trackball to one of the new SMT connector boards from Schmartboard (seen in the picture) and from there to an atmega32u4.

At the moment I haven't decided whether to make a small wireless mouse out of this or integrate it into my kinesis project. I'm leaning heavily towards the former, since the keyboard already has 4 pointing devices.

Total time taken from disassembly to working USB trackball mouse (including the time for this quick writeup): ~2hours 10 mins.

15 comments:

  1. Shop of Ray Ban sunglasses, UK cheap Ray Ban sunglasses on sale for men and women, Ray Ban outlet on huge discount.

    ReplyDelete
  2. You should take part in a contest for one of the most useful sites on the web. I am going to recommend this blog! Get More Info!

    ReplyDelete
  3. Thank you for your helpful information. I like this blog. Thanks for sharing.
    eCommerce Service Providers

    ReplyDelete
  4. Thanks a lot for sharing this with all of us, I like it and we can communicate. Do you need buy app ratings and reviews. To boost app ranking and double app downloads now.

    ReplyDelete
  5. Hey, my dear friends, if you are hunting for a wild look Michael Kors Handbags Outlet at a reasonable price; you really should not miss this Michael Kors Handbags On Sale. It is truly a qualifying item. (tags: Michael Kors Outlet Online,Michael Kors Sale,Michael Kors Outlet)
    It posted by Michael Kors Outlet Store.

    ReplyDelete
  6. Preheat an oven grill to high. Place the salmon under the grill, skin side up, and cook for 5 7 minutes until golden and cooked most of the way through. Watch closely during the last two minutes of cooking as the skin can burn quickly. Laura Lorson is a native of Louisville, Kentucky. It was there that she learned how to read, write, and make the occasional decent piece of fried chicken. A complicated set of family moves eventually led her to Kansas, which is how she ended up graduating from the University of Kansas in Lawrence in 1989.

    Hope nobody Cheap Oakley Sunglasses ever goes through what I went through. But I glad I ended up there for my beliefs, the Bolsos Michael Kors Baratos 17 year old activist told RT Arabic. I ready to go to prison a hundred more times if it serves the good of my country. The lawsuit is the second time this month a woman has accused the president's Longchamp Soldes Destockage allies of trying to cover up stories about his extramarital affairs. Adult film star Stephanie Clifford, better known as Stormy Daniels, is currently suing to be released from a 2016 non disclosure agreement in which she received $130,000 from the president's Ray Ban Sale UK personal lawyer, Michael D. Cohen, to stay silent about an affair.

    ReplyDelete
  7. Upaya untuk mengakhiri kehamilan dengan paksa selalu diidentikan cara menggugurkan hamil . Tindakan cara menggugurkan jani merupakan suatu hal yang banyak di tentang oleh orang , dalam kasus tertentu terkadang hal ini menjadi pilihan yang baik seperti darurat medis ataupun korban pemerkosaan . Menggugurkan kandungan adalah tindakan yang berbahaya dan penuh risiko , oleh karena itu jangan sembarangan melakukannya seperti cara menggugurkan kandungan dengan kunyit , asam jawa , jahe dan sebagainya . Sebagai orang tua perlu juga memahami masa pubertas pada anaknya terutama wanita . Dengan melakukan perawatan di tempan Spa bisa ada jadikan solusi mudah untuk cara menjaga daerah kewanitaan agar tetap wangi dan rapat maupun keset . Wanita yang sudah memasuki usia 40 - 45 biasanya mengalami gejala monopuse , Apa sih tanda tanda menopause yang terjadi pada perempuan .

    ReplyDelete
  8. Coach Handbags Outlet are usually viewed as luxurious brands, but yet at inexpensive price.
    Today most people looking for COACH accessories will look for them at Coach Bags Factory Outlet.
    Coach Sale are just the most inexpensive items to purchase through Coach Purses Outlet, a small change purse or Cheap Coach Purses.
    Coach Bags On Sale are a fun accessory to add to a new collection.
    Coach Bags Outlet is can be carried or slipped over your shoulder.
    Authentic MK Outlet are made of high grade quality leather and Michael Kors Factory Outlet can actually have real leather on them.
    Michael Kors Purse Sale usually come with a plate bearing the MK Outlet logo to distinguish it from other Cheap Michael Kors Purses.
    Michael Kors Outlet Online have the inherent ability to capture the essence of what women like and what they want to wear and utilize.
    Michael Kors Outlet Store are a symbol of feminine elements and speak for all kinds of women.
    Michael Kors Purses On Sale of the day vary greatly, but all seem to share one characteristic, they are popular!

    ReplyDelete