|
NokiaN810ArduinoSetup
Nokia N810 Arduino SetupThis will walk you through the steps needed to install the following things on your Nokia N810 tablet allowing you to run Flash 9 and interface with Arduino. This tutorial has been written for the Mac. This tutorial was written to teach how to connect a regular Arduino board to a N810 with a USB cable. The new kernel enables Bluetooth drivers HCIUSB and HCIUART, these should allow it to connect to the Arduino-BT and potentially a wii remote. If you work on either of these, please add to this tutorial! This is for the Nokia N810 only, please see the 770 post for that tablet. Like in the 770 post, you will have to make a cable. However this is substantially easier and cleaner than the method used for the 770. The micro USB cable that the N810 uses can be configured to be a host cable or slave cable. The cable we were able to find at Radio Shack is for mp3 players and cameras meaning that it is supposed to be a slave cable as the computer you plug these devices into would be hosting the connection. This means you will have to change a connection inside the cable. On the cable we bought there was an unused pin. We had to solder the unused pin to ground. (the black wire). Some cables will have 5 wires (Red=5V, Black=Ground, Green=Data, White=Data, Brown=Host select). If you connect the brown wire to the black wire this will work too. Fortunately the N810 can supply power over the USB port (unlike the 770) so you will not have to connect it to an external power source. If you modify your originally supplied cable you will want to add a switch to switch the cable from host to slave so you can still connect the tablet to your computer to transfer files.
Now to get everything connected and talking to each other in software: Download the software:1) Navigate to http://code.google.com/p/ideo-maemotablet/downloads/list 2) Download the "nokiaN810-Arduino.zip" file and expand it. Download the ROM tool:1) navigate to http://tablets-dev.nokia.com/d3.php 2) download "flasher-2.0.macosx" and place it in the "ROM_Tool" directory in the folder you downloaded in the last step. Put the N810 files on memory cardOn The Mac1) Plug N810 Device into a Mac with the slave (original) cable. Memory card mounts as disk on desktop 2) Drag the following files from the files folder onto the N810 memory card
Direct Terminal.app to the ROM Tool DirectoryOn The Mac1) Start Terminal.app 2) Specify that you'd like to change directories. Do not press return yet! # cd3) add a space after "cd" and Drag the "ROM Tool" directory and drop on the Terminal window it should look something like this: # cd /Users/<username>/Desktop/Nokia_810/ROM_Tool/ Now press the return key on your keyboard 4) List the directory (just to be sure) # ls You should now see some filenames such as Flash new kernel image, Enable R&D Mode, Enable USB Host ModeOn The Mac1) Ensure that you are in the "ROM Tool" directory Follow instructions in this document for how to direct Terminal.app to the ROM Tool Directory 2) Ensure that the N810 is OFF and that the USB cable is disconnected 3) Start ROM Tool, Flashing ROM # ./flasher-2.0.macosx --kernel zImage --enable-rd-mode --enable-usb-host-mode --flash --reboot 4) Connect the N810 to the Mac with the USB cable and turn ON the N810 while holding the home button The N810 will reboot after flashing Install Serproxy (for sending and receiving serial data to/from Flash), place Flash trust file
1) Make sure the N810 is disconnected from the Mac. 2) Start xTerminal Utilities > X Terminal 3) Copy serproxy to the "nokia N810" folder (it can't run from the card) $ cp /media/mmc2/serproxy home/user/MyDocs/serproxy $ cp /media/mmc2/serproxy.cfg home/user/MyDocs/serproxy.cfg (this may be in mmc1 instead of mmc2) 4) change permissions: $ sudo gainroot # cd home/user/MyDocs # chmod 777 serproxy 5) place a file so Flash will trust the Flash app talking to serproxy # mkdir /etc/adobe # mkdir /etc/adobe/FlashPlayerTrust # cp /media/mmc1/trustPath.cfg /etc/adobe/FlashPlayerTrust/trustPath.cfg Load the supplied Arduino sketch "NokiaTest" onto your Arduino BoardOpen serproxy
On The N8101) Start xTerminal Utilities > X Terminal 2) Launch serproxy # cd /home/user/MyDocs # ./serproxy Open the flash swfOn The N8101) Launch the File manager 2) Open nokiaTest.swf You're done! To see what else we've learned about the tablet, read the IDEO Labs post, "Tips for prototyping on the Nokia tablet." Here are some things to keep in mind: • How to turn off sleep mode (sleep mode breaks your connection to Arduino). • ROM Tool Instructions (this shows how individual options can be set through the ROM tool). TroubleshhotingYou may want to flash the tablet with a fresh system before running through these steps. to do that go to: http://tablets-dev.nokia.com/nokia_N810.php and download the latest build. right now it's: RX-44_DIABLO_5.2008.43-7_PR_COMBINED_MR0_ARM.bin go here to see the ROM tool instructions, but use the newly downloaded ROM. |
Sign in to add a comment
There are some nice software alternatives to hacking cables. One that worked for me is documented at:
http://www.internettablettalk.com/wiki/index.php?title=HOWTO:_USB_Host_mode_on_the_N800_using_OS_2008
find the section called "A Simple Method of setting the N8X0? with OS2008 to host mode - 'Extras' App" and follow the instructions there, which will give you a couple scripts that allow the normal usb cable to connect to various usb devices, including arduino. you'll need to buy a normal usb-A gender changer too, about $4 at Fry's or RadioShack?.
Buiding on this excellent tutorial, I've added detail about general n810 setup, and getting flash to work with the arduino firmata firmware. This allows the flash file to control the arduino io pins with a lot of flexibility, and the code seems to be totally portable from a desktop machine.
setup: http://www.hayesraffle.com/n810/index.html using firmata: http://hayesraffle.com/n810/flash+arduino.html