This the sensor we are going to build in this exercise.
https://
learn .sparkfun .com /tutorials /air -velocity -sensor -breakout - - -fs3000 -hookup -guide #example -code
We will need the following hardwares:
A Particle Argon(Can be bought here)
USB Data Cable
Air Velocity Sensor(Can be bought here)
Jumper Wires (Can be bought here)
Breadboard (Can be bought here)
Soldering Kit (Can be bought here)
Laptop or Computer
Connect the Particle device and air velocity sensor onto the breadboard as shown in the figures.
Connect the ADC as follows.
Air Velocity <---> Argon/Photon GND <------------> GND 3.3V <-----------> 3.3V SDA <------------> SDA/D0 SCL <------------> SCL/D1
Refer to to register the Argon Device with our Particle account.
Flash the script ‘STAPI_1_AIR_VEL_FS3000’ to the Particle device. Fill in the mandatory parameters accordingly. You can choose to leave the optional parameters to their default values.
============================= !!! MANDATORY PARAMETERS =========================== String thingDesc = "heatflux measurement and air temperature and humidity"; //DESCRIBE THE DEPLOYMENT int sample_rate = 10 * 1000; // how often you want device to publish where the number in front of a thousand is the seconds you want #define ADS1220_CS_PIN D5 // chip select pin #define ADS1220_DRDY_PIN D6 // data ready pin float scalib = 1.23; //microvolt per w/m2 *============================================================================================================================================= OPTIONAL PARAMETERS (if the device is already registered, these options are ignored) =============================================================================================================================================*/ //Description of the location String foiName = "na"; //THE LOCATION NAME String foiDesc = "na"; String locType = "Point"; //Define the geometry of the location. Refer to https://tools.ietf.org/html/rfc7946 for geometry types. String enType = "application/vnd.geo+json"; //Define the location of the thing. If location is not impt, use [0,0,0] the null island position. float coordx = 0.0; //lon/x float coordy = 0.0; //lat/y float coordz = 0.0; //elv/z