Intro: Intro to Particle Photon and IoT
The particle photon is one of the latest, and in my opinion, coolest development boards out there. It has WiFi integrations and a RESTful API that allows you to easily interact with the board, and you can even link it to IFTTT.
Step 1: Setting Up the Photon.
This section will go by step-by-step to insure you can get your photon connected.
Start by downloading the free Particle Photon app from the app store.
Second, register with Particle.io .
Third, make sure your device is connected to the Internet.
Fourth, Press "Setup a Photon" and hit next.
Fifth, Home-button to your settings and go to Wi-Fi. Look for Photon-XXXX(XXXX will be random characters)
Sixth, Connect to it.
Seventh, Once connection is established, return to the app.
Eighth, Pick your Desired Wi-Fi point for communication with the internet
Ninth, Enter your Passcode
Tenth, Enjoy your new photon registered to your account.
Step 2: Now Flash It With Code!
Go to this link- https://build.particle.io/login
Once you login, it will bring you to a page where you can enter in your code, or click an example.
For first time coders, I recommend clicking the "Blink an LED" example button that Particle nicely provides.
For all you pros out there, its up to you now. Keep in mind that the photon is flashed over the cloud, and not by a USB connection, so a strong WiFi point is always good, if you want your firmware to update faster, and your code to download faster.
To install/flash your code, or the example code, click the lightning bolt at the top left
Step 3: If This Then That (IFTTT) (IoT)
This is a cool way to monitor a variable on your Particle Photon.
First, add this code to your device, outside and above of the void setup.
int x = 0; //variable
Second, add this code to your device, inside and anywhere of the void setup
Particle.variable("x", x); //This is the code that actually monitors your variable and enables REST access.
Now, go to https://www.ifttt.com
Click "Sign Up".
Next, click the "My Recipes" at the top of the page.
Then, click "Create Recipe".
After that, click in the search bar and search "Particle" When you click it, it will ask you to connect Particle to your IFTTT account. This merely means you have to sign in so IFTTT can see your variable data.
Next, click on "Monitor a variable" Select the variable you want to monitor and also select the value to compare against, and the comparison method.(variables will show up after the program is on the photon, and has run all the particle.variable methods.)
Now click "Create Trigger".
Now, if you want the action to send you an email, search "email" in the box.
Then, click the "Email" icon.
You will be able to edit the message. IFTTT also includes tag-like-things in their email system, that lets you send changing data. Some of these tags will be visible in the mail function.
Press "Create Recipe"
Voilà! you have created a IFTTT Internet of Things connector. You can affect almost anything internet related with variables on your board. You can even send a tweet!
Step 4: The Internet's Your Oyster
You can decide what to do from now. Almost all Arduino code runs on this nice little device. I recommend checking out This link - https://docs.particle.io/reference/firmware/photo...
I will be posting more guides for this amazing Dev Board in the future, and look forward to working with the awesome Instructable community Once again, Thanks for reading, and for any friendly criticism. If you don't own a Photon, check out this link - https://store.particle.io/
I am not responsible for any damages this Instructable may cause. I do not own three of these pictures.