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

Chromebook Enrollment
Easy
  • 523
  • 9

Work in progress

For work every now and then I have to enroll up to 200 Chromebooks/Chromebits/Chromeboxes, so I wrote a script that does just that.

Particle Photon and Electron shield
Easy
  • 275
  • 3

Work in progress

I was tired of using push-in boards and jumpers for my projects, so I developed a shield for the Particle Electron.

Echo Kill Switch
Easy
  • 4,379
  • 21

Full instructions

Use Amazon Alexa to trigger an IFTTT applet that causes a Particle Photon to remove power from an Echo.

Particle + Raspberry Pi
Easy
  • 3,164
  • 19

Protip

The world's favorite low-cost computer now connects to the world's most popular IoT platform.

How to Command a RS485 Relays
Easy
  • 316
  • 3

Protip

Easy way to command a RS485 Relay boards with our Rotilio board.

Internet-connected Festive Tree
Easy
  • 244
  • 4

Full instructions

Spruce up your desk or home with an Internet-controlled 3D printed Holiday tree!

Add projectSign up / Login
Respect project