Caprice Harwood
Published © MIT

Smart Flower Pot

If it looks good its probably good for your mental health! Take the stress out of owning a plant and instead enjoy its beauty.

BeginnerProtip3 days135
Smart Flower Pot

Things used in this project

Story

Read more

Custom parts and enclosures

Work in progress

Schematics

Schematic chart

Schematic

fritz

Code

L1_Flower.cpp

C/C++
/* 
 * Project: Flower Pot
 * Author: Caprice Harwood
 * Date:11/12/24
 */


#include "Particle.h"
#include "Air_Quality_Sensor.h"
#include "math.h"
#include "Adafruit_SSD1306.h"
#include "Adafruit_BME280.h"

//adafruit 
//OLED /BME280
SYSTEM_MODE(SEMI_AUTOMATIC);
SYSTEM_THREAD(ENABLED);
SerialLogHandler logHandler(LOG_LEVEL_INFO);
int quality;
int SensorV;
int status;
AirQualitySensor sensor(A2);
Adafruit_BME280 bme;
Adafruit_SSD1306 display(-1);

void setup() {
  Serial.begin(9600);
  waitFor(Serial.isConnected ,1000);

    if (sensor.init()) {
        Serial.println("Sensor ready.");
    } else {
        Serial.println("Sensor ERROR!");
    }

    status = bme.begin(0x76);
if (!status){
  Serial.printf("BME280 Failed to start");

  {
  display.begin(SSD1306_SWITCHCAPVCC,0x3C); 
  display.clearDisplay();
  display.setCursor(0, 0);
  display.printf(""());
  display.display();
}

}


void loop() {
quality = sensor.slope();
    Serial.print("Sensor value: ");
    Serial.println(sensor.getValue());
}

Smart Plant code

Credits

Caprice Harwood

Caprice Harwood

2 projects • 4 followers
Expanding my knowledge by joining an intensive bootcamp for coding and hardware design.

Comments