Liam Varner
Published © GPL3+

Lane Tech HS - PCL - Phone Controlled Temperature Changer

By using your phone you can make is so that you can change your temperature of your old stick thermostat from anywhere.

BeginnerFull instructions provided3 hours202
Lane Tech HS - PCL - Phone Controlled Temperature Changer

Things used in this project

Hardware components

Servos (Tower Pro MG996R)
×2

Software apps and online services

Particle Pi
Particle Pi
Blynk
Blynk

Story

Read more

Schematics

Schematics

This is the circuit used in the project

Code

Overall Code for Project

Java
Overall Code for Project
// This #include statement was automatically added by the Particle IDE.
#include <blynk.h>

/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial


char auth[] = "7f8457eccbe84bf6a4b1ab80ccb9fee5";

Servo servo;
Servo servo2;

BLYNK_WRITE(V3)
{
  servo.write(param.asInt());
}
BLYNK_WRITE(V2)
{
  servo2.write(param.asInt());
}
BLYNK_WRITE(V4) 
{
    int i=param.asInt();
    if (i==1) 
    {
     servo.write(120);   
    }
}

BLYNK_WRITE(V5) 
{
    int i=param.asInt();
    if (i==1) 
    {
     servo.write(140);   
    }
}



void setup()
{

  Serial.begin(9600);

  Blynk.begin(auth);

  servo.attach(A4);
  servo2.attach(A5);
  Time.hour(-6);
}

void loop()
{
   if (Time.hour() == 12){
       servo.write(10);
   } 
    
    
    
    
  Blynk.run();
}

Credits

Liam Varner

Liam Varner

2 projects • 1 follower

Comments

Add projectSign up / Login