Things used in this project

Hardware components:
Compare particleelectron
Particle Electron
×1
SparkFun Photon Micro OLED Shield
×1
12002 04
Breadboard (generic)
×1

Schematics

The assembly
Just put the Electron on the OLED shield
S2v3wl7g92smxw5qg0ol

Code

WebpageHTML
Double click, sub in your Access Token and Device ID and you should be ready to go!
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript" charset="utf-8"></script>

<script>
var accessToken = "ACCESS TOKEN";
var deviceID = "DEVICE ID"
var url = "https://api.particle.io/v1/devices/" + deviceID + "/sender";

function callback(data, status){
	if (data.return_value == 1) {
		alert(" Message being sent");
	}
	else
	{
		alert("Could not Connect to your Device");
	}
}

function sendMessage(){
	message = $("#message").val();
   	$.post(url, {params: message, access_token: accessToken}, callback);
}

</script>


</head>

<body>

<h1>Message Sender</h1>
<input id="message" value="Hello!" size="64"/>
<input type="button" value="Send" onclick="sendMessage()" /> <br/>

</body>
</html>

Credits

Adidtil7nvn0ripb982s
Jack Derbis

Enjoy making with Arduino and Particle boards!

Thanks to Simon Monk.

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Similar projects you might like

Well House Temperature Manager
Easy
  • 263
  • 6

Full instructions

Monitors the temperature of the well house to prevent the well from freezing.

Drink Alert!!! (Beverage Can Monitor)
Easy
  • 313
  • 4

Full instructions

Tired of going to grab a soda only to find they're all gone!? Well now you have an alert system to let you know when you need to refill.

The Food Thief Catcher
Easy
  • 136
  • 4

Work in progress

Are you tired of all of your pesky roommates stealing your food? Me too, thats why we have the Food Thief Catcher!

Happy Wife =  Happy Life
Easy
  • 244
  • 3

Full instructions

Wife not a morning person? Improve your life by improving your wife's temperament in the morning. Fresh coffee makes wife happy!

Happy Wife = Happy Life

Team We Are Not Coders

Temperature Sensor
Easy
  • 364
  • 5

Full instructions

A photon that measures the temperature and humididty with a DHT 22 sensor and communicates the temperature data to another photon.

Motion Activated Room Light
Easy
  • 148
  • 3

Full instructions

With this project, you'll never have to search for the light switch in the dark again.

Add projectSign up / Login
Respect project