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
Ex1 : Phone number Validation
Rule 1) 10 digit number
Rule 2) First number should be between 6-9
-----------------------------------------------------------------------------
Ex2 : Remove Zeros from the stream of numbers
3123213100031231230231321300354350077700
@isaiah7p
isaiah7p / IOT Introduction
Created October 11, 2020 14:18
IOT Introduction
Online Tools :
https://www.circuito.io/
Interview Questions :
https://www.qualitythought.in/wp-content/uploads/2019/03/IOT-Interview-Que.pdf
-----------------------------------------------------------------------------
https://www.youtube.com/watch?v=mPcvcsSL664
Shadow Topics :
GET State >>
$aws/things/JulyIOTBatch/shadow/update/accepted
$aws/things/JulyIOTBatch/shadow/update/rejected
#include <Servo.h>
#include "I2Cdev.h"
#include "MPU6050_6Axis_MotionApps20.h"
Servo motor;
#if I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE
#include "Wire.h"
#endif
@isaiah7p
isaiah7p / Blynk Board Pin Configuration
Created August 13, 2020 02:42
Blynk Board Pin Configuration Robu India
ROBO India Blynk Board :
1. Input Switch 1 : GPI0 03 (D9)

2. Input Switch 2 : GPI0 01 (D10)
3. Output Relay 1 : GPI0 05 (D1)

4. Output Relay 2 : GPI0 04 (D2)

5. Output LED : GPI0 12 (D6)

6. Temperature & Humidity Sensor DHT-11 : GPI0 14 (D5)

1 yum update -y
2 clear
3 ls -lrt
4 clear
5 ifconfig
6 yum install httpd
7 yum install mysql -y
8 ls -lrt
9 mysql -h mydatabase.cz1fpo0hglyu.us-east-1.rds.amazonaws.com
10*
#include <NewPing.h>
#define TRIGGER_PIN 3
#define ECHO_PIN 2
#define MAX_DISTANCE 200
NewPing sonar(TRIGGER_PIN, ECHO_PIN, MAX_DISTANCE);
void setup() {
Serial.begin(9600);
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println(analogRead(A0));
delay(1000);
}
Design :
https://www.circuito.io/app?components=513,10167,360216
Sensor DHT Data Sheets
https://octopart.com/385-adafruit+industries-30399591
Board DataSheet
https://components101.com/development-boards/nodemcu-esp8266-pinout-features-and-datasheet
// 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