We are really excited to announce that we are almost ready to release a new control board on the market. Its name is AirQ 305 and it will have really interesting features and, more important, a really competitive price.
AirQ Read more
You just received your new AirQ ShielD. And you want to start developing your application right now. But before you can start coding there are a couple of things you may know. We know: you don't like to read Read more
After a week of testing and tuning up, we are finally ready to push the Arduino sNET library on our github account at http://github.com/airqnetworks :-) The library repository is named snet-arduino, and it can be easily downloaded using git:
$ git clone Read more
As we've announced some days ago, we are progressively releasing information about how to develop custom applications above our wireless devices. We already described the protocol we've developed to interact with our control boards and wireless sensors: its name is sNET Read more
In first part of this tutorial we started developing a wireless thermostat using Arduino Uno and one AirQ 305 control board. In that tutorial we designed a really simple thermostat that doesn’t interact with the user: the desired temperature is fully hardcoded inside the code and user can’t see the ambient temperature. In the second part of this tutorial we’ll push our thermostat to a more interesting level, adding a LCD display and two switches that allow to increase/decrease the wanted temperature. Moreover, we’ll remove the tmp36 temperature sensor attached to Arduino and we’ll use a more practical AirQ 100 wireless temperature sensor.
Bill of material
For this part of the tutorial we need the following material:
An AirQ 100 low-cost wireless temperature sensor: different from the fist part of tutorial, we’ll use a wireless temperature sensor since it’s more practical to have the sensor separated from the Arduino. With a wireless sensor we are totally free to place it wherever we need. However, if you need to keep the budget low, you can simply rearrange this tutorial to use the tmp36 sensor.
A character 16×2 LCD: we’ll use a cheap 16×2 LCD by Powertip (model PC1602F, which uses a compatible display driver for the Hitachi HD44780 display chip) but you are totally free to use every type of display.
You just received your new AirQ ShielD. And you want to start developing your application right now. But before you can start coding there are a couple of things you may know. We know: you don’t like to read tens of pages on our technical wiki. You’re only interested in write down code. That’s the reason why we wrote this survival guide. One. Two. Three. Let’s go
There are essentially two main things you have to know: pairing and ARS.
Each AirQ Networks end device (eg. AirQ 310 control board or AirQ 101 wireless sensor) can be associated to only one transceiver. And an AirQ ShielD is a transceiver. This procedure is called pairing. To pair a device to an AirQ ShielD you need to follow this procedure:
Turn off the device you need to pair to the shield (eg. AirQ 310 control board).
Turn on Arduino with the shield correctly mounted (see next).
Press the PAIR button on AirQ ShielD leaving it pressed for 2 seconds.
You’ll notice that the STATUS led starts blinking repeatedly. The shield will remain in pairing mode for 30 seconds.
Turn on the device you want to pair.
After two or three seconds the STATUS led of the device will blink more quickly to signal that it has been paired. The STATUS led stops blinking.
Pairing is completed. To stop pairing mode immediately, press PAIR button for 1 second.
We did a video that shows this procedure.
However, for all of you that are buying in this period an AirQ ShielD with another AirQ Networks device, we are providing them already paired. But it’s important to know that pairing could be needed if you buy other devices in the future.
Remember that if you bought only AirQ ShielDs you don’t need pairing.
A lot of you asked us if AirQ ShielD could be used to build customs hardware solutions without using other AirQ Networks devices. And the answer is definitively yes. AirQ ShielD is nothing more than a transceiver and it is designed to accept commands that send bytes to another AirQ ShielD. To develop a wireless solution using AirQ ShielD you need:
At least two AirQ ShielDs (but you can use how many you need).
Two Arduino Uno boards.
The sNET library for Arduino
AirQ ShielD allows sending data messages to another AirQ ShielD. The maximum number of bytes that can be sent is 10. To a send a message to another shield the sNET::sendToDevice() method can be used. Let’s do an example. Suppose that you received two AirQ ShielDs: one with sNET address equal to 188.8.131.52 and the other one with the address 184.108.40.206. And suppose that you want to send the “HELLO” string from 220.127.116.11 board to 18.104.22.168. The following Arduino code is all you need.
The code is self-explanatory: the first 4 parameters are the address of the remote shield that will receive the message; the fifth parameter (0x1) says sNET library to send a data message; the remaining part is the data we want to send and its size. If you want to send a message to all AirQ ShielD on the same sNET network, you can use the sNET::sendBroadcast() method: