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

Weather Box
Easy
  • 2,114
  • 10

Full instructions

Small weather station that uploads to Weather Underground with a NeoPixel ring for visualization.

Washer/Dryer Monitor
Easy
  • 538
  • 5

Full instructions

Monitor your appliance's power indicator with a photocell for easy notifications without high voltage wiring.

Two Person Weasley Clock with Particle Photon and IFTTT
Easy
  • 1,010
  • 14

Full instructions

Taking inspiration from the Harry Potter character's Weasley clock, this one uses Particle and IFTTT to tell you where two people are.

Study Buddy
Easy
  • 2,532
  • 140

Full instructions

Know when an assignment is coming up!

Study Buddy

Team Alexa and Shannon

Security + 2.0 MyQ Garage Door Opener
Easy
  • 1,133
  • 4

Full instructions

Interface newer garage door openers with more than a relay.

Connecting Particle Photon with Twitter, Facebook or Mail
Easy
  • 646
  • 18

Full instructions

Whenever someone tweets you or sends a Facebook message or you receive a mail, a LED on Photon glows.

Add projectSign up / Login
Respect project