justind000
Published © MIT

IoT Hydroponics - Measure EC

This will show how to make a Bluetooth Low Energy Internet of Things device to monitor the Electrical Conductivity for hydroponics.

EasyFull instructions provided30 minutes479
IoT Hydroponics - Measure EC

Things used in this project

Hardware components

ESP32S
Everything ESP ESP32S
×1
UFire EC-Salinity Probe Interface
×1

Story

Read more

Schematics

Fritzing Project

A Fritzing project

Connections

A Fritzing breadboard image
Ec esp32 nhwukvj0cs

Code

BLE.ino

Arduino
No preview (download only).

Code snippet #1

Plain text
#include "uFire_EC_BLE.h"<br>
// On the ESP32, the I2C pins can be chosen. In this case, sda=19 and scl=23 
uFire_EC_BLE ec_ble(19, 23);

void setup() {
  // minimal setup of the EC_Salinity interface
  ec_ble.setK(1.0);
  // start the BLE server
  ec_ble.startBLE();
}
void loop() {
  // loop through and take continous measurements
  ec_ble.measureEC();
  ec_ble.measureTemp(); 
}

Github

https://github.com/espressif/arduino-esp32

Github

https://github.com/u-fire/ECSalinity/blob/master/examples/BLE/BLE.ino

Github

https://github.com/u-fire/uFire_BLE/tree/master/docs

Github

https://github.com/lwsjs/local-web-server

Credits

justind000

justind000

4 projects • 7 followers
Creator of water quality sensors. Add the ability to measure pH, ORP, EC or salinity to your Arduino or Raspberry Pi project.

Comments