Introduction: Intro to Particle Photon and IoT

1. Please enjoy my first Instructable

2. I am but a lowly freshman, aspiring to be a great coder, so please, no hateful comments (I don't really think I need to mention that, the community is pretty nice here)

3. Please post positive and friendly criticism.

The particle photon is one of the latest, and in my opinion, coolest dev boards. It has a built-in Wi-Fi, is programmable in the Arduino-IDE, has a whole bunch of shields just like the Arduino, is Arduino shield compatible( with the Shield Shield), and is only 19$! When I saw this board, I jumped to buy it(literally hitting my head getting out of my chair and fetching my PayPal info) Of course, the only thing disappointing about it, is the sad lacking-ness of Instructables. This really saddened me as I couldn't find many Instructable dealing with this board, and had trouble myself starting(Though being familiar with the Arduino-IDE helped a lot). The Particle Photon is really amazing because of the built in Wi-Fi. With Arduino, you've always had to do some sort of complicated wiring thing to get Ethernet into the board, and even then, what you expected to do just doesn't work. But with Photon, Particle made it super easy.

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 appstore. (Sorry Droids, I only have an iPod Touch).

Second, register with Particle.io (I don't have pictures because I did it before I decided to write this)

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 Wi-Fi point is always good, if you want your firmware to load 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), INT); //This is the code that actually monitors your variable and puts it into the online database.

Second, replace X with your variable name. The web compiler will tell you if its an invalid name, but generally speaking, start with an uppercase letter, and keep it to one word.

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 scripts.)

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.

Comments

author
tomatoskins made it!(author)2015-09-16

I've always found the Particle line quite interesting!

author
Evander12345 made it!(author)2015-09-16

Yes, I think they are quite interesting myself too.