IoT

IoT Arduino, Raspberry Pi , Ladder Technology, Internet Of Things, Home Automation, Robotics Technologies, . for more information visit our website or mail

13/03/2020

app controll NodeMcu and Neopixel WS2811
Code Blow:






PIN D2
NUMPIXELS 28
BLYNK_PRINT Serial
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);

void setup()
{
Serial.begin(9600);
Blynk.begin("token_no", "WIFI_Name", "WIFI_Password");
pixels.begin();
}
BLYNK_WRITE(V2)
{

int R = param[0].asInt();
int G = param[1].asInt();
int B = param[2].asInt();
Serial.println(R);
Serial.println(G);
Serial.println(B);
for (int i = 0; i < NUMPIXELS; i++) {

pixels.setPixelColor(i, pixels.Color(R, G, B));

pixels.show();
}
}

void loop()
{
Blynk.run();
}

28/10/2018

Applications of Machine Learning

03/12/2017

Door Alarm system
devices need
1. Arduino
2 GSM Shield
3. Reed Switch

Code:



char incoming_char=0;
ReedSensor 7
byte lockOut = 0;
SerialGSM cell(2,3);
void setup()
{
Serial.begin(9600);
cell.begin(9600);

Serial.println("Starting GSM");
delay(30000);

cell.Verbose(true);
cell.Boot();
cell.DeleteAllSMS();
cell.FwdSMS2Serial();

}

void sendSMS(byte fun)
{
if(fun == 1)
{
cell.Rcpt("+91815###X660");
cell.Message("Arduino GSM Modem has started!");
cell.SendSMS();
}

if(fun == 2)
{
cell.Rcpt("+91815###X660");
cell.Message("Door has been opened!");
cell.SendSMS();
}
if(fun == 3)
{
cell.Rcpt("+91815###X660");
cell.Message("Door has been closed!");
cell.SendSMS();
}
}

void loop()
{
sendSMS(1);

while(1>0)
{

if(lockOut != 1)
{
if(digitalRead(ReedSensor) != 0)
{
sendSMS(2);
lockOut = 1;
Serial.println("Door has been opened! Lock out enabled!");
}
}
else
{
if(digitalRead(ReedSensor) == 0)
{
sendSMS(3);
lockOut = 0;
Serial.println("Door has been shut! Lock out disabled!");
}
}
if(cell.available() > 0 )
{
incoming_char=cell.read();
Serial.print(incoming_char);
}
if(Serial.available() > 0 )
{
incoming_char=Serial.read();
cell.print(incoming_char);
}
}

}

Address

Bangalore

Telephone

+918151833660

Website

Alerts

Be the first to know and let us send you an email when IoT posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Contact The Business

Send a message to IoT:

Share