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!

Contact
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

Map Your Particles!
Easy
  • 609
  • 16

Protip

Locate your Particle Photons, P1s and Electrons on a map without needing extra hardware. Use Ubidots or an offline map alternative

Sending Photos and Video Over the Internet!
Easy
  • 2,012
  • 28

Full instructions

Record video, perform object and face recognition, take a time-lapse or whatever else with a Particle Photon and the 5-megapixel Arducam!

Text Machine, Get Gumball
Easy
  • 61
  • 1

This project describes how to build an Arduino-based, text-controlled gum dispenser

Power Supply Module 3.3V and 5V
Easy
  • 159
  • 0

Protip

First test of a separate Power Supply Module 3.3V and 5V

MyPIR-Sensor Informs Me Via IFTTT
Easy
  • 300
  • 1

Full instructions

Cheap & easy alarm-system.

Study Buddy
Easy
  • 2,713
  • 141

Full instructions

Know when an assignment is coming up!

Study Buddy

Team Alexa and Shannon

Add projectSign up / Login