Nokia 6230i Bluetooth Mouse Mod

NO I WILL NOT “GIVE” you the software. I get dozens of people every single day asking me to give them the software, some even want source code. NO. This project have been abandon due to extreme technical dificulties in getting the code running on a phone, there is no easy way for users to install it. Also there is already software like this for sale. I am leaving this up purely to poke phone manufacturers into maybe supporting this themselves. I think it would be a great value-add for Nokia to do this.

Recently I saw an article on a USB Optical mouse that had been modded to include a Nokia Colour LCD Screen. This got me thinking, The screen was quite usefull but why go to all the effort of modding a mouse, why not use the whole Nokia?

Here is a small video of me using the phone/mouse.

Bluetooth connection, no cable
Standard Java code, simple to port to other phones
Selectable buttons on phone for mouse buttons
Normal or Flipped orientation for phone (right way or upside down)
Uses existing Nokia Sync software to transfer data

Standard Bluetooth mouse HID for no driver install!
Mouse over GPRS for PCs with net but no bluetooth
Display PC screen on Nokia phone

Many laptop owners carry a spare mouse because they dont like the built in control, or because they just like to use a mouse. This adds weight, things to remember etc when you go anywhere. Also, if you use somebody elses laptop you may not be able to use their pad at all! I often setup software for somebody else on a laptop and curse the wigglestick on the keyboard that they fumble on with because they are that slow anyway but it holds me up. If I had a mouse with me at all times that would be amazing. So, the NokiaMouse was born.

Most phones now have a camera and can run Java, there is no reason that some software couldnt be written to watch for movement in the camera, and translate that into mouse signals for the PC. Bluetooth could be used to send the data to the PC.
So there was my challenge, a java program that took multiple frames from the nokia camera, translated that into direction and speed and sent it to the PC as mouse movements.

I dont intend to release this code as im trying to develop the Bluetooth HID before any kind of release, but it means any laptop owner need not carry a spare mouse or use the crappy touchpad!

Things didnt go entirely smoothly of course. The first thing everybody is probably saying is, but the camera only shows black when its flat on the mousepad! You are of course right, Light is needed. My temporary solution is to hold the phone about .6cm above the pad, letting light in the side. My camera picks up enough to see at this distance.

The initial code didnt use bluetooth, but a usb cable to the phone as I wasnt sure about accessing the bluetooth interface directly in java or how to make a real BT Mouse HID so it would pair as if it was a mouse. For now custom driver code runs on the PC and the phone, and data is sent over a usb lead.

After giving up on the idea of a proper mouse HID I used the bluetooth to just link the phone as normal and send the data over the Nokia driver to a special driver on the PC again, this isnt as convenient as the original plan as it needs software on the PC as well as the phone, if I can be bothered ill develop a proper HID mouse bluetooth driver for the nokia, this would mean that it could be used on ANY bluetooth pc without installing software!

A lot of thought went into the interface. Originaly the phone was the right way up with the screen at the top, but this put the buttons at the bottom! Not a good shape for a mouse. So, the phone was inverted with the screen where your palm would rest. This makes the keypad available for buttons. Not surprisingly I used three buttons, Star, Zero and Hash (pound for US’ites). Originally I intended to make the volume up/down on the side into a scroll wheel but it seems that its just not positioned right when the phone is upside down, and I decided that left right buttons were more important than scroll wheel.

The pattern is important. A nokia camera is no where near as good as a proper optical mouse detector and needs a good pattern to look at. Something with high contrast pattern that isnt too fine because,
Focus! At this distance the focus is wrong because its too close. You can artificialy sharpen the image, but something with clean edges and well defined patterns works better than the grain on your wooden desk or a one colour mouse pad.

Selectable buttons! You can now choose what buttons do what. This makes it easy to configure to your liking.
Flip-ably X/Y axis! The phone will now work either way up.
Bluetooth is now working over the Nokia PC kit

This software is only tested working on my nokia at the moment, I hope to make it work with almost any phone with both java and camera, but of course the camera interface is different on other devices…

3 Responses to “Nokia 6230i Bluetooth Mouse Mod”

  1. […] Origineel gepost door Loekie Het lijkt me dan een beter idee om het touch screen van een PDA te gebruiken als soort van Wacom tablet: door met je pennetje over het oppervlak te schuiven verander je de positie van de muis. Dat lijkt me een stuk beter werken dan een joystick of nog erger, pijltjestoetsen op een telefoon. De camera die vaak aan de achterzijde van toestellen aanwezig is gebruiken om de positieverandering te registreren zou geniaal zijn! Misschien tijd voor een programmeercompetitie? Je touchscreen gebruiken om je muis te bewegen over Bluetooth kan al met SallingClicker. zie Salling Software – Salling Clicker for Windows Ooit is er een project gestart om je camera van je telefoon te gebruiken om je muis te bewegen, Pyrofer’s Projects » Nokia 6230i Bluetooth Mouse Mod maar […]

  2. […] Questa volta, però, sono rimasto sorpreso dall’ingegno di un programmatore Java che ha realizzato qualcosa di talmente banale che nessuno sin’ora ci aveva mai pensato. Usare un normalissimo cellulare come un mouse senza fili, sfruttando la sua fotocamera come sensore ottico e la connessione bluetooth al posto del fastidioso filo. Addirittura è possibile personalizzare i tasti destro a sinistra del mouse con quelli della tastiera del telefonino. […]

  3. […] Ormai i telefonini fanno di tutto, al punto che sono sempre meno telefoni e sempre più gadget multiuso. Un utilizzo ancora più originale del solito lo ha concepito un hacker dell’hardware che si fa chiamare Pyrofer, grazie alla  sua stravagante idea di trasformare un Nokia 6230i in un mouse senza fili! Il telefono così ‘hackerato’ pare sfrutti la fotocamera posta sul retro come sensore ottico per far muovere il puntatore sullo schermo e la ricezione Bluetooth per comunicare con il computer. A noi puzza un po’ di bufala, visto che il tipo esordisce sul suo blog dicendo che mai e poi mai pubblicherà il relativo software, scritto in Java. Il motivo del rifiuto sembra essere legato all’estrema difficoltà di programmazione del celluare… anche se poi si leggono, sullo stesso sito, le caratteristiche del redivivo 6230i che lo rendono in tutto e per tutto simile a un normale mouse senza fili. Il video che abbiamo pescato dal ’solito’ YouTube non ci convince più di tanto, visto che monitor e mouse/telefono non vengono inquadrati allo stesso tempo, e sappiamo quanto è facile muovere un VERO mouse Bluetooth fuori dalla portata di occhi indiscreti… […]

Leave a Reply

You must be logged in to post a comment.