This file contains hidden or 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
/* ** Hardware setup ** | |
* Arduino UNO R3 + LoRaWAN Shield + Grove Shield | |
* LCD => I2C | |
* Temp&Humd => I2C | |
* UV => A0 | |
* Button => D2 (optional) => Not use LoRaWAN when pushed button in bootup (default is used LoRaWAN) | |
*/ | |
/* ** Software setup ** | |
* Grove Temper&Humd : https://github.com/Seeed-Studio/Grove_Temper_Humidity_TH02 | |
* Grove LCD : https://github.com/Seeed-Studio/Grove_LCD_RGB_Backlight |
This file contains hidden or 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
/* ** Hardware setup ** | |
* Arduino UNO R3 + LoRaWAN Shield + DS18B20 | |
* | |
* VCC(red) ------+---- 5V | |
* | | |
* DS18B20 10K Arduino | |
* | | |
* BUS(yellow) ---+---- 6 | |
* GND(black) --------- GND | |
*/ |
This file contains hidden or 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
/* LED status | |
* bootup = Purple | |
* connect sucessful = Green | |
* Sensor Open = White | |
* Sensor Close = Blue | |
*/ | |
/* | |
* D38: "Grove Touch sensor" or "Magnetic door Switch w/ Grove connector made in max" | |
*/ |
This file contains hidden or 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
/* | |
Needs ENVs. | |
- AWSIOT_ENDPOINT (You see Management Console in AWS IoT setting) | |
- AWSIOT_TOPIC_PREFIX (any you set) | |
*/ | |
// code from https://github.com/sigfox/npm-sensit | |
const SensitMsg = function(sigfoxFrame){ | |
this.frame = Number(parseInt(sigfoxFrame, 16)); | |
this.frameStr = sigfoxFrame; |
This file contains hidden or 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
/* Get temperature from on-board sensor, sending SORACOM Harvest via Sigfox */ | |
#include "SIGFOX.h" | |
static UnaShieldV2S transceiver(COUNTRY_JP, false, "NOTUSED", true); /* ref: https://unabiz.github.io/unashield/ */ | |
void setup() { | |
Serial.begin(9600); | |
if (!transceiver.begin()) stop(F("Unable to init SIGFOX module, may be missing")); | |
} | |
void loop() { |
This file contains hidden or 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
/* | |
Working exapmle on Console; | |
``` | |
>> Waiting for AT command | |
+CPIN: READY | |
+QUSIM: 1 |
This file contains hidden or 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
usb 1-1.2: new high-speed USB device number 4 using dwc_otg | |
usb 1-1.2: New USB device found, idVendor=12d1, idProduct=14fe | |
usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 | |
usb 1-1.2: Product: HUAWEI Mobile | |
usb 1-1.2: Manufacturer: HUAWEI | |
usb 1-1.2: SerialNumber: FFFFFFFFFFFFFFFF | |
usb-storage 1-1.2:1.0: USB Mass Storage device detected | |
scsi host0: usb-storage 1-1.2:1.0 | |
usb 1-1.2: USB disconnect, device number 4 | |
usb 1-1.2: new high-speed USB device number 5 using dwc_otg |
This file contains hidden or 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
/* Send to both SORACOM Harvest and SORACOM Funnel */ | |
#include <WioLTEforArduino.h> | |
#include <stdio.h> | |
#define INTERVAL (10000) | |
#define SENSOR_PIN (WIOLTE_D38) | |
WioLTE Wio; |
This file contains hidden or 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
/* | |
Tag on SORACOM Air SIM | |
key=_conf | |
value={"working_mode":"uptime","loop_interval":5000,"send_cloud":true,"endpoint_host":"harvest.soracom.io","endpoint_port":8514} | |
(alt)value={"working_mode":"led","loop_interval":1000} | |
*/ | |
#include <stdio.h> | |
#include <string.h> | |
#include <WioLTEforArduino.h> | |
WioLTE Wio; |
This file contains hidden or 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 <stdio.h> | |
#include <WioLTEforArduino.h> | |
WioLTE Wio; | |
#define CLEAR 0 | |
#define GRAY 90 | |
#define RED 91 | |
#define GREEN 92 | |
#define YELLOW 93 | |
#define BLUE 94 |