Anna MoserConnor Hudson
Published

MEGR 3171 Group 17 Wine Temperature Sensor

Measure the temperature of wine using a sensor and displays it on an LED.

BeginnerFull instructions provided181

Things used in this project

Hardware components

Argon
Particle Argon
×2
Solderless Breadboard Full Size
Solderless Breadboard Full Size
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Single Turn Potentiometer- 10k ohms
Single Turn Potentiometer- 10k ohms
×1
USB-A to Micro-USB Cable
USB-A to Micro-USB Cable
×2
RGB Backlight LCD - 16x2
Adafruit RGB Backlight LCD - 16x2
×1
Breadboard (generic)
Breadboard (generic)
×1
ELEGOO Upgraded 37 in 1 Sensor Modules Kit V2.0
ELEGOO Upgraded 37 in 1 Sensor Modules Kit V2.0
Used the Temperature Sensor
×1

Software apps and online services

Particle Build Web IDE
Particle Build Web IDE
Google Sheets
Google Sheets
Maker service
IFTTT Maker service

Story

Read more

Schematics

LCD Schematic

This is the schematic for the wiring of the LCD Screen.

Temperature Sensor Circuit Schematic

Code

LCD Display Code

C/C++
Turns the sensor data into a script to be displayed on an LCD.
// This #include statement was automatically added by the Particle IDE.
#include <LiquidCrystal.h>
  // pinout on LCD [RS, E, D3, D4, D5, D6];
 // pin nums LCD  [ 4,  6, 10, 11, 12, 13];
//ARGON    [D2, D3, D4, D5, D6, D7];
LiquidCrystal lcd(D2, D3, D4, D5, D6, D7);  //Initializing the pins where we have connected the LCD

void setup()
{
                                // LCD column and rows:
  lcd.begin(16, 2);            //Initializing the interface on the LCD screen
  lcd.setCursor(0, 0);        // set the cursor to column 0, line1
  lcd.print(" Wine Temperature ");//print name
  Particle.subscribe("wineisfine3171",doitnow); //copied from canvas 
}
void doitnow(const char *event, String data)
{ 
int dataval;
dataval = String(data).toInt();

lcd.setCursor(0, 0);        // set the cursor to column 0, line1
lcd.print(" Wine Temperature ");//print name
lcd.setCursor(0, 1);// set the cursor to column 0, line 2
lcd.print(dataval); //print value
lcd.print(" '  Fahrenheit ");//print name
}
void loop()
{
    //Particle.publish("winetemp1419024", "19");
    delay(2000);

}

Temperature Sensor

C/C++
Reads the temperature sensor data, and sends data to google sheets through ifttt
int analogvalue = 0;
double temp = 0;
int tits = 0;
void setup()
{
 Particle.subscribe("winetemp1419024", toggleled);  //subscribe to this mouse event.
Serial1.begin(115200);  //Turns on the particle serial port
pinMode(D7, OUTPUT);
digitalWrite(D7, HIGH);  //blink on reset
delay(500);
digitalWrite(D7,LOW);
   
  Particle.variable("analogvalue", analogvalue);
  Particle.variable("temp",temp);
  Particle.variable("time", tits);
  
    
  pinMode(A0, INPUT );
  tits = 0;
}

void loop() 
{ delay(2000);

//read sensor value
analogvalue = analogRead(A0);

//converrts analog into Farenheit
temp = (analogvalue*-.08099688473520249+151.99688473520249);

//publish the data to partner argon 
Particle.publish("wineisfine3171", String(temp));
    delay(1000);
temp = 0;
tits = tits + 1000;
if(tits > 5000)
{
    tits = 0;
}
// read partner argon
}

void toggleled(const char *event, const char *data) {
 Particle.subscribe("winetemp1419024", toggleled);
    digitalWrite(D7, HIGH);
    delay(500);
    digitalWrite(D7, LOW);
    delay(500);
}

Credits

Anna Moser

Anna Moser

1 project • 1 follower
Connor Hudson

Connor Hudson

1 project • 0 followers

Comments

Add projectSign up / Login