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

Well House Temperature Manager
  • 280
  • 6

Full instructions

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

Drink Alert!!! (Beverage Can Monitor)
  • 340
  • 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
  • 149
  • 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
  • 255
  • 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
  • 390
  • 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
  • 155
  • 4

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