Close
0%
0%

IOT Soil Conductivity and PH Sensor

A project to show PH and Conductivity values on a web app using Angular 6, Arduino, and Firebase

Public Chat
Similar projects worth following
This project focuses on Telemetry - The process of recording and transmitting the readings of an instrument. I have PH and Conductivity readings from the Atlas Scientifica sensors, being displayed on an LCD screen and being sent off to Firebase, where it is then displayed on a web app I built using Angular 6 and Firebase.

Good stuff. This was a project that came with some breakthrough moments that made me smile. I learned a lot about serial communication between the sensors and the tentacle mini shield for arduino, some new things about software serial communication between the Uno and NodeMCU, and I got to practice some things I already new about authentication, real time databases and web development.

Also my first Hackaday post so I got to learn some things about posting, logging and creating instructions for my projects.

Software to install ahead of time

VScode
Arduino IDE
NodeJS

After you've installed Node, install Angular by opening the terminal and running this command:

npm install -g @angular/cli

Check versions:

node -v <enter>
npm -v <enter>
ng -v <enter>

View all 6 components

  • 1
    Step 1

    First thing you are going to want to do is switch the Atlas Scientifica EZO circuits to i2c mode so they will be compatible with the Tentacle mini.

    PH circuit

    • Use a jumper wire to short PGND to TX and run 3.3 volts to VCC and GND. The circuit should go from blue to green. After it's turned to green remove ground then power and you'll be in i2c mode. Check out the data sheet for more info.

    Conductivity circuit

    • Use a jumper wire to short PRB to TX and run 3.3 volts to VCC and ground. The circuit should go from green to blue. After its turned to green remove ground then power and you'll be in i2c mode. Check out the data sheet for more info.
  • 2
    Step 2

    Tentacle Mini for Arduino Setup

      • Copy the contents of this address and save it in a new Arduino project called TentacleSetup.
      • Plug EZO circuits into the Tentacle shield and then plug the tentacle shield into the Arduino Uno. ***Make sure the pins are aligned properly ***
      • Connect the Arduino uno to your computer using a A-B USB cable. Make sure the EZO circuits come on blue.
      • Upload the TentacleSetup sketch you saved earlier.
      • Open the Serial Monitor and scan for i2c devices attached to the tentacle mini by opening the serial monitor and typing 'scani2c' in the text box and pressing 'send'.
      scani2c 

      The default addresses for the PH and Conductivity are 100 and 99.

      To get a reading from the PH sensor type:

      100 

      Followed by

      r 
    • 3
      Step 3

      Connect NodeMCU to Arduino UNO

      • D2 (NodeMCU) to pin 10 (Uno)
      • D3 (NodeMCU) to pin 11 (Uno)
      • D6 (NodeMCU) to pin 12 (Uno)
      • D7 (NodeMCU) to pin 13 (Uno)
      • GND (NodeMCU) to GND (UNO)

      Connect i2c LCD to Arduino Uno

      • SCL => SCL
      • SDA => SDA

      Power it all:

      • VIN (nodeMCU) => 5v from power supply
      • GND  (nodeMCU) => 5v GND from power supply
      • VCC  (i2c LCD Module) => 5v from power supply
      • GND (i2c LCD Module) => 5v GND power supply
      • VIN (Arduino Uno) => 12V from power supply
      • GND (Arduino Uno) => 12V GND power supply

    View all 14 instructions

    Enjoy this project?

    Share

    Discussions

    Does this project spark your interest?

    Become a member to follow this project and never miss any updates