Multiple, independent sensors broadcasting over LoRa to a base station. Sensors are automatically discovered and added with unqiue short IDs. Base station uploads data to Home Assistant with MQTT over WiFi. Soil temperature, air temperature, LoRa and WiFi RSSI, and battery levels. Appears in Home Assistant as a single device:
- Sensor (TX)
- Adafruit Feather M0 with RFM95 LoRa Radio - 900MHz - RadioFruit
- Simple Spring Antenna - 915MHz
- Platinum RTD Sensor - PT1000 - 3 Wire 1 meter long
- Adafruit PT1000 RTD Temperature Sensor Amplifier - MAX31865
- Adafruit STEMMA Soil Sensor - I2C Capacitive Moisture Sensor - JST PH 2mm
- Note: These seem unreliable, and drain the battery. Testing Chirp! sensors next.
- Base Station (RX)
- LiPo batteries
- Stainless steel tube for temperature probe
- Aliexpress Seiko Metal Store
- Length 500mm x 1Pcs, OD5mm X ID4.2mm, feels a little too easy to bend. Easy fit in tube, might allow more epoxy for a stronger bond.
- Length 500mm x 1Pcs, OD5mm X ID4mm, feels stiffer. Need to trim blob of epoxy of on PT1000D for it to fit in.
- Another 150-250mm in length would be nice.
- Be careful buying elsewhere, tolerances on eBay stuff is junk.
- Latest Ardunio IDE
- Legacy v1.8.X Arduino IDE (for WiFi firmware updates)
All of these except RadioHead can be installed through the library manager in Arduino IDE.
- Arduino SAMD
- Adafruit SAMD Boards
- RTCZero
- RadioHead (get the latest version instead of Adafruit github copy)
- Wifi101
- home-assistant-integration
- Note: My PR is required for dynamic sensor creation
- Adafruit Seesaw
- Add board to Arduino IDE
- Install libraries
- Open Arduino IDE (latest)
- Open Wifi101 Firmware Updater sketch
- Add this line to setup():
WiFi.setPins(8,7,4,2);
- Upload Wifi101 firmware updater sketch example
- Close Arduino IDE and open legacy Arduino IDE
- Open Wifi101 Firmware updater from Tools menu
- Select correct port
- Test connection
- Update firmware
- Set up an MQTT broker like Mosquito
- Create a new HA user dedicated to the sensor
Both RX and TX sketches need a config.h
- Copy config.h.example to config.h
- Add your WiFi and MQTT details to the RX config.h
- Add your soil moisture sensor calibration values to the TX config.h
- Upload the RX sketch to the base station
- Upload the TX sketch to the sensor
- Monitor serial output on each sensor
- Look for Wifi connected
- Look for Sensor transmitting
- Look for Base receiving sensor data
- Check HA to confirm communication