Skip to content

Instantly share code, notes, and snippets.

View YongHuax's full-sized avatar

hooi yong hua YongHuax

View GitHub Profile
@YongHuax
YongHuax / LoRa_UM402_Sender.ino
Last active January 4, 2018 03:06
LoRa_UM402_Sender
#include <SoftwareSerial.h>
SoftwareSerial lora(2, 3); //TX, RX
// gnd SET_A and SET_B for Normal Mode (Send and Receive)
void setup() {
Serial.begin(9600);
lora.begin(9600);
}
@YongHuax
YongHuax / LoRa_Simple_Arduino_Server_Mod.ino
Created January 3, 2018 14:05
LoRa Simple Arduino Server
/*
LoRa Simple Arduino Server :
Support Devices:
* LoRa Mini
* LoRa Shield + Arduino;
* LoRa GPS Shield + Arduino.
Example sketch showing how to create a simple messageing server,
with the RH_RF95 class. RH_RF95 class does not provide for addressing or
reliability, so you should only use RH_RF95 if you do not need the higher
@YongHuax
YongHuax / LoRa_Client_Ard_Con.ino
Created January 3, 2018 14:01
LoRa_Client Arduino
/*
LoRa Simple Client for Arduino :
Support Devices: LoRa Shield + Arduino
Example sketch showing how to create a simple messageing client,
with the RH_RF95 class. RH_RF95 class does not provide for addressing or
reliability, so you should only use RH_RF95 if you do not need the higher
level messaging abilities.
It is designed to work with the other example LoRa Simple Server
@YongHuax
YongHuax / Security_Box.ino
Last active March 22, 2017 03:03
( SP ) Jkr SensorBox Stream Light(LDR) , Humidy(DHT) & Temperature(DS182B20+DHT) to ThingSpeak thru NodeMCU Esp8266 ---------- ( More Info in Comments )
#include <ESP8266WiFi.h>
#include <DHT.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#define dht_dpin 13 // D7, Digital Pin sensor is connected to
#define myPeriodic 15 //in sec | Thingspeak pub is 15sec
#define ONE_WIRE_BUS 2 // DS18B20 on arduino pin2 corresponds to D4 on physical board
OneWire oneWire(ONE_WIRE_BUS);