Working version as of 18 Nov 2022.
Based on slight adaptation of the code here: https://community.home-assistant.io/t/makerfabs-soil-moisture-sensor-v3-lorawan-ttn-v3-and-ha-integration/446021, and of @denicola2's helium decoder here https://gist.github.com/denicola2/79639d7b17bf1b828c7cfeffedee0a13
https://gristleking.com/how-wet-can-ya-get-lets-get-muddy/
Sensor | https://www.makerfabs.com/lora-soil-moisture-sensor-v3.html | |
---|---|---|
3.3V USB to TTL / Serial converter | https://www.makerfabs.com/cp2104-usb-to-serial-converter.html | Makerfabs recommended |
https://ftdichip.com/products/ttl-232r-3v3/ | Arduino recommended | |
https://www.sparkfun.com/products/9873 | Arduino recommended | |
https://www.amazon.com/Serial-Adapter-Signal-Prolific-Windows/dp/B07R8BQYW1/ | Not ideal, but what I had lying around | |
https://www.amazon.com/dp/B07X4ZTRD2 | did NOT work | |
Dupont wire and header pins | optional depending on converter |
- Use EITHER the power output of the USB-TTL converter OR batteries to power the sensor, not both
- If the USB-TTL converter does not have DTR, you must use the RST button on the sensor to upload a sketch: hold down RST, press upload, wait until the status shows "uploading", immediately release RST
- If connection does not work, try reversing RX and TX
- What worked for me: sensor powered by batteries; converter GND, RX, TX only connected, RX-TX reversed
-
Prolific driver for Windows 11 if using PL2303TA, download the latest from prolific's site:
https://www.prolific.com.tw/UserFiles/files/PL23XX_Prolific_DriverInstaller_v4300.zip
Device Manager -> Update Driver -> Browse My Computer -> browse to the unzipped folder -> Let Me Pick -> select the older version of the driver
-
MCCI LoRaWAN LMIC library https://github.com/mcci-catena/arduino-lmic
Sketch -> Include Library -> Manage Libraries -> MCCI LoRaWAN LMIC library@4.1.1
-
Lightweight low power library for Arduino https://github.com/rocketscream/Low-Power
Sketch -> Include Library -> Manage Libraries -> Low-Power@1.81.0
-
For original source code and additional information, refer to: https://hackaday.io/project/180796-lorawan-soil-moisture-sensor
- Pay careful attention to the byte order and order of the variables APPEUI, DEVEUI, APPKEY. These are different than what is displayed in the helium console by default
- Use the decoder provided here and paste it in the helium console.
- ATMEL AVR 8-bit Atmega328P, with Arduino Pro Mini(3.3V/8M bootloader pre-loaded)
- AHT10 temperature and humidity sensor
- https://docs.arduino.cc/retired/getting-started-guides/ArduinoProMini