User Tools

Site Tools


proiecte:sparrowv3-devicehub

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
proiecte:sparrowv3-devicehub [2015/10/06 10:31]
dan.tudose [Using Zigduino support in Arduino IDE]
proiecte:sparrowv3-devicehub [2015/10/08 01:01] (current)
alex.marin [SHT21 library]
Line 18: Line 18:
  
 <imgcaption sparrowv3 | Sparrow v3.2 Wireless Sensor Node>{{ :sparrowv3.png?800 | }}</imgcaption> <imgcaption sparrowv3 | Sparrow v3.2 Wireless Sensor Node>{{ :sparrowv3.png?800 | }}</imgcaption>
-==== Using Zigduino support in Arduino IDE ====+==== Adding the Sparrow Board to the Arduino IDE ====
  
   - Download [[https://www.arduino.cc/en/Main/Software|Arduino]]   - Download [[https://www.arduino.cc/en/Main/Software|Arduino]]
Line 32: Line 32:
 You're all set up! You're all set up!
  
-The binary will be installed on flash memory through a bootloader. Most probably Sparrow v3 will come with the bootloader already installed, but in case it won't or in case it somehow gets erased, one will need to install it. We used the bootloader described by the following address//Zigduino-1.0-new-extension\hardware\arduino\bootloaders\atmega\ATmegaBOOT_168_atmega128rfa1.hex//.+=== Optional Step: If Your Nodes Don't Come With a Preinstalled Bootloader === 
 + 
 +The binary will be installed on flash memory through a bootloader. Most probably Sparrow v3 will come with the bootloader already installed, but in case it won't or in case it somehow gets erased, one will need to install it. You can download the bootloader from {{::atmegaboot_168_atmega128rfa1.zip|here}}. 
 In order to install the bootloader, a flash programmer will be needed (we used AVRISP mkII). We then installed AtmelStudio and used its built in Flash Programmer utility (//Tools->Device Programming// in AtmelStudio menu). In order to install the bootloader, a flash programmer will be needed (we used AVRISP mkII). We then installed AtmelStudio and used its built in Flash Programmer utility (//Tools->Device Programming// in AtmelStudio menu).
 +Fusebits: EXT 0XFE, HI 0xD0, LO 0xF7
  
 ===== Simple test program ===== ===== Simple test program =====
Line 43: Line 47:
 2. In //Tools->Programmer// choose //USBasp// 2. In //Tools->Programmer// choose //USBasp//
  
-3. In //Tools->Board// select //Zigduino_r1//+3. In //Tools->Board// select //Sparrow//
  
 4. From //Tools->Serial Port// choose the COM port to which the node was connected 4. From //Tools->Serial Port// choose the COM port to which the node was connected
Line 80: Line 84:
 ===== SHT21 library ===== ===== SHT21 library =====
  
-There is one more thing that we must take care of before we can start playing with our WSN monitoring project. We'll need a library for reading values from SHT21, our relative humidity and temperature sensor, connected to the micro controller through an I2C interface. You'll need to use the attached files (TODO insert link towards .h and .cpp) in the following way:+There is one more thing that we must take care of before we can start playing with our WSN monitoring project. We'll need a library for reading values from SHT21, our relative humidity and temperature sensor, connected to the micro controller through an I2C interface. You'll need to use the files stored in this {{:proiecte:sht21.zip| archive}} in the following way:
  
 1. In folder //Arduino\libraries// create a new folder, named //sht21// 1. In folder //Arduino\libraries// create a new folder, named //sht21//
  
-2. Copy the attached files in it+2. Copy the files from the attached archive in it
  
 After this it will be possible to import sht21.h header into a project, as you'll see below. After this it will be possible to import sht21.h header into a project, as you'll see below.
proiecte/sparrowv3-devicehub.1444116708.txt.gz · Last modified: 2015/10/06 10:31 by dan.tudose