Anela deLaveaga
Published © GPL3+

BLE Temperature Control

This device allows a heater [or any other outlet-powered device] to activate and deactivate based upon user-set temperature triggers.

IntermediateFull instructions provided2.5 hours1,564
BLE Temperature Control

Things used in this project

Hardware components

Breadware Inc Mega-B Development Kit
Use code CKIRK17 at Breadware checkout for a 10% discount
×1
15 Amp - Duplex Receptacle Outlet
×1
4-Port Relay Expansion Board
×1
Wire cable
14 gauge wire (green, white, black preferred) -About 15 - 20 inches of length for black, and about 10 inches of white and green
×1

Software apps and online services

Breadware Inc BreadConnect
Only currently compatible with iOS
Breadware Inc Breadware IDE
Main software web app to develop firmware, mobile app, and data stream customization.
Arduino IDE
Arduino IDE
Alternate possible IDE compatible with the Mega-B Dev Kit.

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Code

BLE Temp Code

C/C++
This is the code to activate your outlet when the temperature is low, and deactivate your outlet when it is too hot.
if ( temp.read() < 19 ) {
  digitalWrite(outlet1, LOW);
  heatLight.write("red");
}

if ( temp.read() >= 22) {
  digitalWrite(outlet1, HIGH);
  heatLight.write("off");
}

tempDisplay.write(String(temp.read(_)));

Credits

John Kirkpatrick

Posted by Anela deLaveaga
Thanks to John Kirkpatrick.

Comments