Things used in this project

Hardware components:
Photon new
Particle Photon
You'll need a Particle connected to your free account.
Amazon echo dot
Amazon Alexa Echo Dot
You can use an Amazon Echo, Tap, Dot, or the Alexa simulator.


Photon starter sketch source codeC/C++
Copy this code to web IDE and flash it to your device.
Example starting point sketch for Patriot library
This example uses the built-in blue LED only.
It is provided as a quick start for your own sketches.
Written by Ron Lisle
BSD license, check LICENSE for more information.
All text above must be included in any redistribution.
2017-03-28: Use fixed 'patriot' event name.
2017-03-24: Initial creation

#include <IoT.h>
IoT *iot;

void setup() {
    iot = IoT::getInstance();

    iot->addLight(D7, "Led"); // This is the small blue LED on a photon

    // Alexa will respond to "Alexa, turn on photon" or "Alexa, turn off photon"
    // You can change the word 'photon' to whatever you like, but it needs to be something
    // that Alexa can recognize. For now, use a single word.
    iot->addBehavior("Led", new Behavior("photon",'>',0, 100));

void loop() {


379434 2505719874906 2113020799 n
Ron Lisle

Lives in an RV, and is turning it into an IoT showcase using Alexa, iOS, and Professional iOS and Alexa developer.



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


Similar projects you might like

2-Way Particle Photon Communication
  • 132
  • 4

Make two Particle Photons "talk" via the usage of webhooks!

E-Paper Weather Display with Photon and IFTTT
  • 749
  • 9

Full instructions

Create a beautiful medium for weather information using Particle's cloud services and IFTTT.

IFTTT - Enabled Sensors with Particle Photon
  • 660
  • 11

Full instructions

Connect any sensor to Particle Photon and use it to trigger an IFTTT action with just a few lines of code.

Light Detecting Email Sender
  • 208
  • 4

Full instructions

Receive an email about when the light is too strong on your device; nobody wants a heated device left directly under the sun. Photon + IFTTT

Internet-Connected Popcorn Popper
  • 141
  • 1

Full instructions

A hot air popcorn popper triggered via the Internet! (Built for the Bellingham Codes May event.)

MyReed-Switch controlled by Particle Electron
  • 38
  • 0

Full instructions

Magnetism in a simple door monitoring

Add projectSign up / Login