This repository contains the Arduino Config and Node.js API. Frontend in progress (will be React or plain HTML with JS to consume the API).
- Adafruit 2821 ESP8266 or other WiFi compatible Arduino.
- A battery may be desired depending on your use-case.
- Moisture Sensor(s) such as the Phantom YoYo.
- If using more than 1 sensor on the Adafruit or other Arduino with only one analog input, a multiplexer will be needed. I am using a 4051 currently.
If you are using an Arduino device with one or many analog inputs, use the plant_monitor_analog_only
package in the Arduino folder.
- Set up WiFI under the Network Configuration section.
- Update the Sensors array with your pin(s) (if using the Adafruit 2821 no change is needed here).
If you are using a multiplexer with a single analog input, use the plant_monitor_multiplexer
package in the Arduino folder.
- Set up WiFI under the Network Configuration section.
- Set
amount_of_mux_inputs
to match how many devices you will run off of the multiplexer (if 2, set 2). - Connect your sensors to the Multiplexer. It is important to start from
y0
and count upwards as there is no way to detect if a sensor is plugged in or not. - Edit
s0
,s1
, ands2
to match your digital selection pins. - Update your AnalogSensor Pin if not using the Adafruit 2821.