Things used in this project

Hardware components:
Photon new
Particle Photon
×1
Temperature probe
×1
2.5mm audio jack.
×1
Hand tools and fabrication machines:
09507 01
Soldering iron (generic)

Schematics

BBQ breadboard
bbq.fzz
BBQ schematic
Bbq bb

Code

Photon firmwareC/C++
Comile and upload via the web IDE for Photon devices.
// these values are for Maverick PR-003 probe, which works with devices Et-71/72/73/901
//float steinhart_a = 0.00024723753;
//float steinhart_b = 0.00023402251;
//float steinhart_c = 0.00000013879768;

//float c;
//float k;
//float f;
int boardLed = D7;
int therm = A0;
int therm2 = A1;
int resistance;
int resistance2;

void setup() {
    pinMode(boardLed,OUTPUT);
    pinMode(therm,INPUT); 
    pinMode(therm2,INPUT); 
    //Particle.variable("therm", &measure, INT);
    Particle.variable("resistance", &resistance, INT);
    Particle.variable("resistance2", &resistance2, INT);
    RGB.control(true);
    pinMode(D0, INPUT);
}

void loop() {
  int measure = 0;
  for (int x=0; x<8; x++) {
    measure += analogRead(therm);
    delay(10);
  }
  measure /= 8;
  //resistance = 150000;
  resistance = int(10000.0 / (4095.0/measure - 1.0));
  
  int measure2 = 0;
  for (int x=0; x<8; x++) {
    measure2 += analogRead(therm2);
    delay(10);
  }
  measure2 /= 8;
  //resistance = 150000;
  resistance2 = int(10000.0 / (4095.0/measure2 - 1.0));
  
  // Steinhart equations for calculating temp. 
  //float ln_resistance = ln(resistance);
  //k = 1/(steinhart_a+steinhart_b*ln_resistance+steinhart_c*(ln_resistance*ln_resistance*ln_resistance));
  //c = k-273.15;
  //f = c*1.8+32;
  //char f_char[6];
  char m_char[8];
  char r_char[8], r_char2[8];
  //sprintf(f_char,"%d", f);
  //sprintf(m_char,"%d", measure);
  sprintf(r_char,"%d", resistance);
  sprintf(r_char2,"%d", resistance2);
  //Particle.publish("therm",m_char);
  Particle.publish("resistance",r_char);  
  Particle.publish("resistance2",r_char2);
  //Particle.publish("temp",f_char);
  if (digitalRead(D0)) {
    digitalWrite(boardLed,HIGH);
    delay(500);
    digitalWrite(boardLed,LOW);
    delay(10000);
  }
}
BBQ Android App
Import into Android Studio and compile and upload to your phone. Requires usb-debugging to be enabled on your phone to upload.

Credits

Photo
Michael Hartman

ASIC/SoC Hardware Engineer by trade.

Contact

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

ConnectTheDots with Particle Azure IoT Hub Integration
Intermediate
  • 559
  • 7

Protip

This project will allow you to connect your Particle device into an Azure IoT Hub for viewing data in real-time through an ASP.NET web app!

Other Clocks
Intermediate
  • 183
  • 3

Work in progress

A combination of 3 different clocks in one frame.

Christmas Gift Box
Intermediate
  • 3,602
  • 595

Full instructions

Christmas Gift Box plays music and sends an email when it is opened.

Weather Aware Sprinkler Controller
Intermediate
  • 1,296
  • 16

Full instructions

6 station Photon controller uses the Weather Underground API to prevent watering when windy, rainy, or too cold.

Simple Environmental Monitoring
Intermediate
  • 1,553
  • 13

Full instructions

Particle Photon circuit allowing the display of environmental conditions (light, temperature, humidity, pressure) using the Blynk app.

THDweeter
Intermediate
  • 249
  • 2

Protip

Yet another temperature-humidity sensor publishing to dweeter, with WiFi auto-disconnect and a push button to read daily max and min values.

ProjectsCommunitiesTopicsContestsLiveAppsBetaFree StoreBlogAdd projectSign up / Login