Ardunote project: Arduino + NanoNote
Get the Ben Nanonote ready to work with Arduino.
* Update the Nanonote to the latests Openwrt image (2011-02-23)
* Format and mount the data partition (1.5Gb) on NanoNote
* Connect NanoNote to Internet through USB
* open an terminal and:
#opkg install make
#opkg install avrdude_5.10-2_xburst.ipk
#tar -xjf avr_toolchain_mips_4.3.4-binutils-2.20-libc-1.6.8_avrfreaks_patchs.tar.bz2
#tar -xjf arduino_022_libs_bootloaders_examples.tar.bz2
#rm wget http://www.tuxbrain.org/downloads/nanonote/arduino/openwrt/arduino_022_l...
Build and upload an Arduino sketch.
To tell Nanonote that we want full control of the 8:10 GPIOs, you should do this every time NanoNote boots and want to mess with 8:10 GPIOs.
#echo jz4740-mmc.0 >/sys/bus/platform/drivers/jz4740-mmc/unbind
Copy the Makefile to the sketch directory you want to work with:
#cp /data/Makefile ./
#make && make upload
For now this steps just uploads the sketch binary , erasing the bootloader, meanwhile we are working with NN there will be no problem due we don't need it any more, saving space and speeding up program execution, but if we must return to work trhough USB or serial to flash, we need to reflash the bootloader. Inside the folder
/data/arduino/hardware/arduino/bootloaders we have all bootloader collection include in the latest Arduino software release, for example to upload the bootloader than is actually shipped with Arduino UNO:
#avrdude -U flash:w:applet/data/arduino/hardware/arduino/bootloaders/optiboot/optiboot_atmega328.hex -V -e -C /etc/avrdude.conf -p atmega328p -c nanonote_ICSP
Update: Here is a video with the tutorial on how to make the cable
Here are the cable schematics
If you already have an NanoNote and/or an Arduino and you want buy the materials to build the cable here is a simple kit at tuxbrain shop