Py Axel Wii


Pyaxelwii
Garage Project Page

switchOnBT

A shell script to start the Bluetooth in Nokia Internet Tablets
switchOnBT 0.1.0
A simple script to start bluetooth.
It will add a line to /etc/sudoers
user ALL = NOPASSWD: /usr/sbin/hciconfig hci0 up'

Get It here! switchOnBT-0.1.0.all.deb

pyAxelWii

An application in Python to Plot accelaration using the Wiimote

A program to plot in real time the Acceleration from the Wii Remote using bluetooth.
It is written using GTK for the GUI and python 2.5. It also uses the GtkCurve to display the acceleration values.
The data will also be logged into a file, which can later be analysed and graphed. Debian package has been made using the PyPackager.

Works with a Nokia N770/N800 possibly a N810 with Python BlueZ utils for maemo
Nintendo Wii Remote

Get It here! pyAxelWii Garage Project Page

pyAxelWii Update 0.9.5


Note: Work In progress, get latest snapshot from SVN Browse pyAxelWii SVN repository
New Settings Dialog
Search and Store Bluetooth MACID, useful to connect faster and for more easier connection.
Log Settings - choose file name index.
Calibration and Store values, use it for plotting or store it to log file.

pyAxelWii Update 0.9.4


Chinook OS2008 support
Removed Glade dependency

I am in the N810 maemo device program!


This means I get an N810 for 99Euros. Yahooo!!
		From:  
		Date: Nov 9, 2007 11:20 AM
		Subject: N810 maemo submission accepted
		N810 maemo submission accepted

		Congratulations! You have been accepted to the N810 maemo device
		program. We will send your discount and instructions as soon as the
		device is available in your selected shop (soon).
		maemo team - http://maemo.org
		

pyAxelWii Update 0.9.3


Can launch from the menu at last!
Start/stop button
stores log file in user home directory
Added a Dialog which shows the log file path and Name

pyAxelWii Update 0.9.2


Saturday, November 3, 2007

Enabled Full Screen
Added a Start/Stop button for controlling Acquisition
Option to switch Off graph update by selecting the "Off" from drop down combo
This enables data is logged into file as fast as possible
Rearranged log data format(Wiimote.py, function - status_str)
time {TIME} force= {GX,GY,GZ} {BUTTONSTATE} dots ()


pyAxelWii Update 0.9.1


Saturday, October 27, 2007

Automatically finds the first bluetooth Nintendo Wii remote
Shows error if Bluetooth is not switched on
User can select which axis to be displayed on the graph
formatted time to show only 2 decimal places

Thanks Adam Melancon for your suggestions


pyAxelWii


Wednesday, October 24, 2007
A program to plot in real time the Acceleration from the Wii Remote using bluetooth.
It is written using Glade GTK for the GUI and python 2.5, pybluez
It uses the GtkCurve to display the acceleration values.
The data will be logged into a file, which can later be analysed and graphed.
Debian package made using the PyPackager.




N800 + Wiimote


Tuesday, October 16, 2007

I got myself a Wiimote 39.99$ and a nunchuk19.99$ from Best Buy! Wiimote is the remote control for the Wii and it has 3 accelerometers and 1024x768 infrared camera with motion sensing detection of upto 4 objects. Nunchuk is an additional controller wired to the wiimote to get more functionality. I have seen lots of wiimote hacks, like the roomba hack and the car accelerometer by kevin. So I decided I really need to do something with it.
Now what do I do with it? Lets start with a simple viewer and graph for finding the 0-60 seconds accelaration figure.
Connecting the N800 to the Wiimote.
I put in new batteries to the wiimote (came with a panasonic AA) and switched on the power. There is red button inside the battery cover which you can press to make it into discoverable mode or press the 1 and 2 buttons together.
I started up the bluetooth and lo found the wiimote as Nintendo DS.
I tried to pair it with the N800 and up cropped the first problem. N800 always asks for a passkey and wont allow empty passkey, wiimote has an empty passkey.

After a lot of googling and finding out that it has already been discovered and nothing has been done on it.

I decided to use command line tools. 'sudo gainroot' and used hidd cc . I could connect to the device and when I did hcidump -X, I could get data when the buttons where pressed Hooray! Unfortunately the n800's keyboard was not working now.
I went googling for apps and I came upon Wiimote.py written by Will Woods or Red Hat.
I removed and commented the uinput part of it since pymaemo doesnt seem to have it, gave wiimote's bluetooth mac address (which i got by running hcitool scan') and lo and behold I got the x,y,z of the Wii! yahoo!!

I will post the source code and a decent how to use the n800 and wiimote.
My to do list are

  • 1. Create a GUI
  • 2. Option to search for wiimote and select it
  • 3. Buttons State
  • 4. IR dots
  • 5. Show current gx,gy,gz
  • 6. Show current accelaration
  • 7. Show current Speed
  • 8. Measure last 0-60seconds (triggers from less than 1kph)