Skip to content

Instantly share code, notes, and snippets.

View isaiah7p's full-sized avatar

Jason Bourne isaiah7p

  • Jason Joe
  • Hyderabad , Andhra Pradesh , India
View GitHub Profile
@isaiah7p
isaiah7p / gist:3617e6caea53ad718836778024ce6210
Created August 1, 2020 06:16
Button Controlled LED & Relays
// Board to Sensors / Actuators Mapping
//
//1. Input Switch 1 : GPI0 03 (D9) >> Button 1
//2. Input Switch 2 : GPI0 01 (D10) >> Button 2
//3. Output Relay 1 : GPI0 05 (D1)
 >> Relay 1
//4. Output Relay 2 : GPI0 04 (D2)
 >> Relay 2
//5. Output LED : GPI0 12 (D6)
 >> LED
//6. Temperature & Humidity Sensor
//DHT-11 : GPI0 14 (D5) >> DHT Sensor
@isaiah7p
isaiah7p / gist:10a377da7b9f11527dad2591c2082713
Created August 1, 2020 06:05
BLynkBoard : LEDs & Relays
// Board to Sensors / Actuators Mapping
//
//1. Input Switch 1 : GPI0 03 (D9) >> Button 1
//2. Input Switch 2 : GPI0 01 (D10) >> Button 2
//3. Output Relay 1 : GPI0 05 (D1)
 >> Relay 1
//4. Output Relay 2 : GPI0 04 (D2)
 >> Relay 2
//5. Output LED : GPI0 12 (D6)
 >> LED
//6. Temperature & Humidity Sensor
//DHT-11 : GPI0 14 (D5) >> DHT Sensor
Cloud :
AWS
What is AWS IoT Core?
AWS IoT Core is a managed cloud service that lets connected devices easily and securely interact with cloud applications and other devices. AWS IoT Core can support billions of devices and trillions of messages, and can process and route those messages to AWS endpoints and to other devices reliably and securely. With AWS IoT Core, your applications can keep track of and communicate with all your devices, all the time, even when they aren’t connected.
AWS IoT Core also makes it easy to use AWS and Amazon services like AWS Lambda, Amazon Kinesis, Amazon S3, Amazon SageMaker, Amazon DynamoDB, Amazon CloudWatch, AWS CloudTrail, Amazon QuickSight, and Alexa Voice Service to build IoT applications that gather, process, analyze and act on data generated by connected devices, without having to manage any infrastructure.
/*
Version 0.1 - Feb 10 2018
*/
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>
#include <WebSocketsClient.h> // https://github.com/kakopappa/sinric/wiki/How-to-add-dependency-libraries
#include <ArduinoJson.h> // https://github.com/kakopappa/sinric/wiki/How-to-add-dependency-libraries
#include <Servo.h>
int servoPin = 5 ;
int val = 0;
Servo myservo;
void setup() {
#include <Servo.h>
int servoPin = 5 ;
int val = 0;
Servo myservo;
void setup() {
/***************************************************
Adafruit MQTT Library ESP8266 Example
Must use ESP8266 Arduino from:
https://github.com/esp8266/Arduino
Works great with Adafruit's Huzzah ESP board & Feather
----> https://www.adafruit.com/product/2471
----> https://www.adafruit.com/products/2821
/***************************************************
Adafruit MQTT Library ESP8266 Example
Must use ESP8266 Arduino from:
https://github.com/esp8266/Arduino
Works great with Adafruit's Huzzah ESP board & Feather
----> https://www.adafruit.com/product/2471
----> https://www.adafruit.com/products/2821
Exp 1 :
Choose a wifi based board
LDR - Light Dependent Resistor
Light intensity sensor : BH1750
----------------------------------------------------------
IOT Devices
Gateways
Cloud
------------------------------
IOT Device :
GYROSCOPE Sensor -