Things used in this project

Hardware components:
Mcp23008 scio6r2g5v1 a 1
ControlEverything.com Particle Photon I²C 2-Channel SPDT 1-Amp Signal Relay
We used one of these boards with 4 channels instead.
×1
Photon new
Particle Photon
×1
Adafruit ds18b20 waterproof digital temperature sensor
×2
Software apps and online services:
Porter porter app
Particle Particle 2.0 iOS App

Code

Plant UML code for the state machine of the firmwarePlain text
To draw the FSM image, copy paste this code in http://www.plantuml.com/plantuml/uml
@startuml
skinparam backgroundColor LightYellow
skinparam state {
  BackgroundColor LightBlue
  BorderColor Gray
  FontName Impact
}


[*] --> initState

note left of initState : The system boots\nin this state

initState: 10 seconds
initState -down--> offState: if system was\npreviously off
initState -down--> idleState: if system was\npreviously on


offState: system off
offState -left-> idleState: setOnOff("on")

idleState: heating off
idleState -down-> onState: temperature\n< target
idleState -right-> offState: setOnOff("off")

onState: heating on
onState -up-> idleState: temperature\n> target
onState -up-> offState: setOnOff("off")
@enduml
github repo
flash this code in your photon

Credits

Img 20160904 wa0001
Gustavo Gonnet

If you need professional help with a project, contact me at gusgonnet@gmail.com

Contact
Thanks to Sergio Boyd.

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

E-Paper Weather Display with Photon and IFTTT
Easy
  • 4,154
  • 19

Full instructions

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

2-Way Particle Photon Communication
Easy
  • 194
  • 4

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

WiFi Strength Meter
Easy
  • 469
  • 6

A meter that indicates the Wi-Fi signal strength in an intuitive way, using the parts I had on hand.

IFTTT - Enabled Sensors with Particle Photon
Easy
  • 727
  • 12

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
Easy
  • 230
  • 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
Easy
  • 164
  • 1

Full instructions

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

Add projectSign up / Login