Project:Nanode/Applications: Difference between revisions

From London Hackspace Wiki

→‎Quick Tutorial: Some layout and minor editorial changes
m (Fix some "it's"/"its" confusion and other minor edits.)
(→‎Quick Tutorial: Some layout and minor editorial changes)
Line 88: Line 88:
==Applications==
==Applications==


===Quick Tutorial- 21/8/11.===
===Quick Tutorial===


Read this and the following EtherShield Examples sections to familiarise yourself with the basic operations of the Arduino IDE, programming, compiling and uploading code to the Nanode.
Read this and the following EtherShield Examples sections to familiarise yourself with the basic operations of the Arduino IDE: programming, compiling and uploading code to the Nanode.


'''Note that EtherShield is spelt with a capital E and a capital S.  You may get compilation problems if you deviate from this spelling.''' ''Italic text''
'''Note that EtherShield is spelt with a capital E and a capital S.  You may get compilation problems if you deviate from this spelling.'''


The first couple of examples will help you confirm that your hardware is fully functional and that you can get a DHCP address and serve a simple webpage from your Nanode.
The first couple of examples will help you confirm that your hardware is fully functional and that you can get a DHCP address and serve a simple webpage from your Nanode.


1. Download and Install Arduino Environment
1. Download and Install Arduino Environment
http://arduino.cc/en/Main/Software
http://arduino.cc/en/Main/Software
Mac users: mount the dmg and drag arduino into Applications folder.
Windows users: open the arduino-0022 folder and run Arduino.exe
Ubuntu users (tested on 10.10): sudo apt-get install arduino


2. Download FTDI Cable Drivers
*Windows users: open the arduino-0022 folder and run Arduino.exe
*Mac users: mount the dmg and drag arduino into Applications folder
*Ubuntu users (tested on 10.10): sudo apt-get install arduino
 
2. Select the Appropriate Board Type
 
In the Arduino application menu Tools/Board select "Arduino Duemilanove or Nano w/ ATmega328"
 
3. Download FTDI Cable Drivers


Plug in the FTDI programming cable.
Plug in the FTDI programming cable.
*Windows users: When prompted to install drivers, point the installer to the arduino-0022/drivers directory
 
*Mac users: mount the arduino installation dmg and double click on the FTDI install package at the bottom of the window. In Arduino application menu/Tools/Board/ select "Arduino Duemilanove or Nano w/ ATmega328" and menu/Tools/Serial Port "/dev/tty.usbserial-A400f2he"
*Windows users: when prompted to install drivers, point the installer to the arduino-0022/drivers directory
*Mac users: mount the arduino installation dmg and double click on the FTDI install package at the bottom of the window
*Linux users: if you are using a recent version of ubuntu or debian, the FTDI cable should be plug and play, type:
*Linux users: if you are using a recent version of ubuntu or debian, the FTDI cable should be plug and play, type:
   dmesg | grep "ttyUSB*"
   dmesg | grep "ttyUSB*"
Line 113: Line 120:
since ttyUSB0 is mentioned this indicates that the device mount point is /dev/ttyUSB0
since ttyUSB0 is mentioned this indicates that the device mount point is /dev/ttyUSB0


3. Download EtherShield Libraries
4. Select the Appropriate Serial Port
 
In the Arduino application menu Tools/Serial Port select the appropriate device, e.g., "/dev/tty.usbserial-A400f2he" on a Mac or "/dev/ttyUSB0" on Linux.
 
5. Download EtherShield Libraries


Download here: https://github.com/thiseldo/EtherShield
Download here: https://github.com/thiseldo/EtherShield
Line 123: Line 134:
The NanodeMAC library is also required from here: https://github.com/thiseldo/NanodeMAC
The NanodeMAC library is also required from here: https://github.com/thiseldo/NanodeMAC


4. Edit the EtherShield_DHCPTest
6. Edit the EtherShield_DHCPTest


Arduino: File > Examples > EtherShield_DHCPTest
Arduino: File > Examples > EtherShield_DHCPTest
9

edits