Intelligent Sensing with Arduino & XIG -...

Preview:

Citation preview

Intelligent Sensing with Arduino & XIG

Jordan Husney, Digi International

Analog or Slow, Boolean Logic

OK!

Digital Sensors, Intelligent Things

Won't Work!

Digital Sensors, Intelligent Things

Need µC or Arduino!

Arduino

● Open-Source Hardware● Compatible hardware available from many

vendors● Easy to Learn● Flexible

● We'll use it to speak to a digital temperature and humidity sensor and...

● ..."translate" it to simple serial messages the XIG can understand

The Board We'll Use

Seeed Studio Seeeduino Stalker v2

idigi_data:names=temperature&value=22.5

Activity 1 - Part 1

1. Download Arduino software from http://www.arduino.cc

2. Start software3. Select serial port4. Select proper programmer:

"Arduino Pro or Arduino Mini (v3.3, 8MHz) w/ATMega 328"

Activity 1 - Part 2

1. Insert XBee module into Arduino

Activity 1 - Part 3

1. Connect DHT22 Sensor (SIG to Arduino Pin 4, VCC to 3.3v, GND to Ground)

Activity 1 - Part 4

1. Connect UartSBee adapter to power Board2. Flip UartSBee switch to 5v3. Plug in UartSBee to computer

Activity 1 - Part 5

1. Download program archive from class website (ICTP_XIG_SENSOR_APP.zip)

2. Unzip archive and open in Arduino IDE3. Program board using "play" button4. Open the Arduino IDE serial monitor to

watch output

Activity 1 - Part 6

1. Login to class iDigi account

http://developer.idigi.comusername: ictppassword: marconi-lab

2. Verify output appears by fetching /ws/DiaChannelDataFull web-service

@jordan_husney http://jordan.husney.com

Jordan Husney

jordan.husney@gmail.com

Recommended