Introduction: LinkIt One + Blynk Reed

In this project I will be showing how to use a reed switch with LinkIt One. The Reed Switch is triggered by holding a magnet near it.

Step 1: Upload Code

If you dont know how to install LinkIt One code click here

this is the code I made for this project:

-------------------------------------------------------------------->

//Code Created By FunguyPro www.funguypro.tk

#defineARDUINO150

//#define BLYNK_PRINT Serial //Uncomment for Serial Data

#include<LWiFi.h>

#include<LWiFiClient.h>

#include<BlynkSimpleLinkItONE.h>

// You should get Auth Token in the Blynk App.

// Go to the Project Settings (nut icon).

charauth[]="YOURAUTHCODE";

#defineWIFI_SSID"YOURSSID"// Your network SSID (name)

#defineWIFI_PASS"YOURPASS"// Your network password (use for WPA, or use as key for WEP)

#defineWIFI_AUTHLWIFI_WPA// choose from LWIFI_OPEN, LWIFI_WPA, or LWIFI_WEP


voidsetup(){

Serial.begin(9600);

Blynk.begin(auth,WIFI_SSID,WIFI_PASS,WIFI_AUTH);

delay(500);}

voidloop(){

Blynk.run();

}

Step 2: Connect the Sensor

connect the sensor to pins 5V, A0, and GND

Step 3: Install Blynk

Click Here if you don't know how

Step 4: Test

when you hold the magnet close the input should spike

Step 5: Need Help?

Click Here

Comments

author
PatrickP10 (author)2015-10-22

Okay,

I have to spend more time to learn your programs, I am very satisfied about your programs, I hope you understand about what I am talking about, the same way I can

build a whole desktop computer and find the components from caisse with power supply until all the parts visible in store I don't want you to hide anything from us, if you are in the field this mean you know where the rest of the hardwares coming from, always put all the links relative to what you're selling this will give us an idea where to start, you will make money from us, the next company would produce the rest of the components for sell will make some money and your students will also create sell to make some money, we will be able to buy more products from you, selfishness will not bring us anywhere.

author
Funguypro (author)PatrickP102015-10-31

I'm having trouble understanding what you are trying to say?

About This Instructable

326views

5favorites

License:

Bio: I like to create new things! I'm very interested in IOT and just Internet Stuff. I am not responsible for any injury or deaths ... More »
More by Funguypro:3D Print Your House!!!!!DIY Raspberry Pi Indoor Outdoor WebcamSee Through Buildings With a Drone
Add instructable to: