This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ESP8266WiFi.h> | |
#include "ThingSpeak.h" | |
char ssid[] = "XXXX"; // your network SSID (name) | |
char pass[] = "XXXX"; // your network password | |
/* | |
***************************************************************************************** | |
**** Visit https://www.thingspeak.com to sign up for a free account and create |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// **************************************************************************** | |
// * H2S GAS SENSOR WITH DATA UPLOADS TO Ubidots AND openSenseMap * | |
// * LOW POWER MODE, CAN RUN ON BATTERY * | |
// * Uses ESP8266 thing and DGS-H2S sensor from SPEC sensors * | |
// * https://www.sparkfun.com/products/13231 * | |
// * https://www.spec-sensors.com/product/digital-gas-sensor-h2s/ * | |
// * Wiring instructions * | |
// * https://electronza.com/ * | |
// * CHANGELOG * | |
// * v7 - first stable version * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// **************************************************************************** | |
// * H2S GAS SENSOR WITH DATA UPLOADS TO openSenseMap * | |
// * LOW POWER MODE, CAN RUN ON BATTERY * | |
// * Uses ESP8266 thing and DGS-H2S sensor from SPEC sensors * | |
// * https://www.sparkfun.com/products/13231 * | |
// * https://www.spec-sensors.com/product/digital-gas-sensor-h2s/ * | |
// * Wiring instructions * | |
// * https://electronza.com/ * | |
// * CHANGELOG * | |
// * v7 - first stable version * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
4-20mA Thermometer using Mikroe click boards | |
https://electronza.com/arduino-4-20ma-thermometer/ | |
Part I - 4-20mA T click transmitter code | |
*/ | |
#include <SPI.h> | |
// REQUIRES the following Arduino libraries: | |
// - DHT Sensor Library: https://github.com/adafruit/DHT-sensor-library |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
4-20mA Thermometer using Mikroe click boards | |
https://electronza.com/arduino-4-20ma-thermometer/ | |
Part II - 4-20mA T click receiver code | |
*/ | |
#include <SPI.h> | |
#include <MIKROE_LCDmini.h> | |
// Arduino UNO with Mikroe Arduino Uno Click shield |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Arduino Due code for Honeywell HPMA115S0-XXX particle sensor | |
// https://electronza.com/arduino-measuring-pm25-pm10-honeywell-hpma115s0/ | |
bool my_status; | |
// IMPORTANT!!! We are working on an Arduino DUE, | |
// so int is 32 bit (-2,147,483,648 to 2,147,483,647) | |
// For Arduino Uno int size is 8 bit, that is -32,768 to 32,767 | |
// Use long or float if working with an Uno or simmilar 8-bit board | |
int PM25; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPEC H2S Sensor | |
// See https://electronza.com/h2s-sensing-revisited-tutorial-arduino-uno/ | |
// Serial number of my sensor | |
// #define mysensor_serial_no 012017030207 | |
// #define portOne_RX_BUFFER_SIZE 256 | |
// #define portOne_TX_BUFFER_SIZE 256 | |
// Sensor values |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************************************************************* | |
____ __ ____ ___ ____ ____ __ __ _ ____ __ | |
( __)( ) ( __)/ __)(_ _)( _ \ / \ ( ( \(__ ) / _\ | |
) _) / (_/\ ) _)( (__ )( ) /( O )/ / / _/ / \ | |
(____)\____/(____)\___) (__) (__\_) \__/ \_)__)(____)\_/\_/ | |
Project name: DIY Air Quality Monitoring Station | |
Project page: https://electronza.com/diy-air-quality-monitoring-station/ | |
Description : Air quality station with Arduino Due & ESP8266 | |
--- ESP8266 code --- | |
********************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************************************************************* | |
____ __ ____ ___ ____ ____ __ __ _ ____ __ | |
( __)( ) ( __)/ __)(_ _)( _ \ / \ ( ( \(__ ) / _\ | |
) _) / (_/\ ) _)( (__ )( ) /( O )/ / / _/ / \ | |
(____)\____/(____)\___) (__) (__\_) \__/ \_)__)(____)\_/\_/ | |
Project name: DIY Air Quality Monitoring Station | |
Project page: https://electronza.com/diy-air-quality-monitoring-station/ | |
Description : Air quality station with Arduino Due & ESP8266 | |
--- Flip & Click code --- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://electronza.com/mikroe-2376-arduino-uno-capacitance/ | |
// C-meter click is installed in socket #1 | |
// of Arduino Uno click shield | |
// Pulses will be applied on pin D2 | |
int pin = 2; | |
// We compute on float | |
float period; | |
float Cx; | |
OlderNewer