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 app
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

WiFi Strength Meter
Easy
  • 665
  • 11

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

E-Paper Weather Display with Photon and IFTTT
Easy
  • 4,807
  • 24

Full instructions

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

2-Way Particle Photon Communication
Easy
  • 207
  • 4

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

Control a 7 Segment Display with a keypad!
Easy
  • 162
  • 2

Full instructions

In this project I'll show you a simple way to control a 7 Segment Display with a keypad!

IFTTT - Enabled Sensors with Particle Photon
Easy
  • 744
  • 11

Full instructions

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

ESP8266 Temperature Monitor
Easy
  • 2,142
  • 11

Full instructions

Get an alert if your fridge's temperature rises above 40 F (very dangerous!).

Sign up / LoginProjectsPlatformsTopicsContestsLiveAppsBetaFree StoreBlog