Microfire LLC
Published © MIT

IoT Hydroponics - Measure EC with Web Bluetooth

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

BeginnerFull instructions provided30 minutes2,581
IoT Hydroponics - Measure EC with Web Bluetooth

Things used in this project

Story

Read more

Schematics

Fritzing Project

A Fritzing project

Connections

A Fritzing breadboard image

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

Microfire LLC

Microfire LLC

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

Comments