davo2001 wrote: » I assume you're joking? #confused
Clareman wrote: » When I say toying I mean looking into alternatives when/if my boiler needs replacing, I've a single zone nearly 20 year old boiler that'll need changing soon, gas isn't an option for me
#define MY_RADIO_RFM95 #define MY_RFM95_FREQUENCY (RFM95_868MHZ) //#define MY_RFM95_MAX_POWER_LEVEL_DBM (100) //1mW = 0dBm 10mW = 10dBm 25mW = 14dBm 100mW = 20dBm #define MY_TRANSPORT_STATE_TIMEOUT_MS (3*1000ul) #define RFM95_RETRY_TIMEOUT_MS (3000ul) #define MY_RFM95_MODEM_CONFIGRUATION RFM95_BW125CR48SF4096 #define MY_NODE_ID 44 #include <SPI.h> #include <MySensors.h> #include <NewPing.h> #define SENSOR_NAME "Distance Sensor" #define SENSOR_VERSION "1.1" #define CHILD_ID 1 // Each radio node can report data for up to 254 different child sensors. You are free to choose the child id yourself. // You should avoid using child-id 255 because it is used for things like sending in battery level and other (protocol internal) node specific information. #define TRIGGER_PIN 3 // Arduino pin tied to trigger pin on the ultrasonic sensor. #define ECHO_PIN 4 // Arduino pin tied to echo pin on the ultrasonic sensor. #define MAX_DISTANCE 300 // Maximum distance we want to ping for (in centimeters). Maximum sensor distance is rated at 400-500cm. unsigned long SLEEP_TIME = 360000; // Sleep time between reads (in milliseconds) NewPing sonar(TRIGGER_PIN, ECHO_PIN, MAX_DISTANCE); // NewPing setup of pins and maximum distance. MyMessage msg(CHILD_ID, V_DISTANCE); int lastDist; bool metric = true; void setup() { metric = getControllerConfig().isMetric; } void presentation() { // Send the sketch version information to the gateway and Controller sendSketchInfo(SENSOR_NAME, SENSOR_VERSION); // Register all sensors to gw (they will be created as child devices) by their ID and S_TYPE present(CHILD_ID, S_DISTANCE); } void loop() { // use the build-in digital filter to discard out of range pings int echoTime = sonar.ping_median(10); int dist = metric?sonar.convert_cm(echoTime):sonar.convert_in(echoTime); Serial.print("Ping: "); Serial.print(dist); Serial.println(metric?" cm":" in"); if (dist != lastDist) { send(msg.set(dist)); lastDist = dist; } sleep(SLEEP_TIME); }
#define MY_RADIO_RFM95 #define MY_DEBUG_VERBOSE_RFM95 #define MY_RFM95_RST_PIN 14 #define MY_RFM95_CS_PIN 18 #define MY_RFM95_IRQ_PIN 26 #define MY_RFM95_IRQ_NUM MY_RFM95_IRQ_PIN #define MY_SOFT_SPI_MOSI_PIN 27 #define MY_SOFT_SPI_SCK_PIN 5 #define MY_RFM95_FREQUENCY (RFM95_868MHZ) #define MY_TRANSPORT_STATE_TIMEOUT_MS (3*1000ul) #define RFM95_RETRY_TIMEOUT_MS (3000ul) #define MY_RFM95_MODEM_CONFIGRUATION RFM95_BW125CR48SF4096 #define MY_GATEWAY_ESP32 #define MY_WIFI_SSID "WiFi-SSID" #define MY_WIFI_PASSWORD "WiFi-Password" // Set the hostname for the WiFi Client. This is the hostname // it will pass to the DHCP server if not static. #define MY_HOSTNAME "ESP32_GW_LoRa" // The port to keep open on node server mode #define MY_PORT 5003 // How many clients should be able to connect to this gateway (default 1) #define MY_GATEWAY_MAX_CLIENTS 2 #include <MySensors.h> #include "heltec.h" void setup() { // Setup locally attached sensors Heltec.begin(true /*DisplayEnable Enable*/, false /*LoRa Disable*/, true /*Serial Enable*/); Heltec.display->setContrast(255); Heltec.display->clear(); Heltec.display->setFont(ArialMT_Plain_16); Heltec.display->drawString(30, 10, "LoRa GW"); Heltec.display->setFont(ArialMT_Plain_10); Heltec.display->drawString(30, 40, WiFi.localIP().toString()); Heltec.display->display(); } void presentation() { // Present locally attached sensors here } void loop() { // Send locally attached sensors data here }
oscarBravo wrote: » I'm working on an oil tank sensor using a VL53L0X LIDAR instead of ultrasonic, along with ESPhome and Home Assistant. I'll update on progress if anyone's interested.
oscarBravo wrote: » So here's what I've got so far: I have an ESP32 devkit wired to the LIDAR breakout board. ESPhome is running on the ESP32 and reporting reasonably accurate distances. I'm using a calibrate_linear filter to convert metres to litres, but I'm planning to use calibrate_polynomial to hopefully get a somewhat more accurate conversion allowing for the rounded shape of the tank. I've also 3D printed an enclosure to mount the LIDAR in place of my old Watchman probe. I'll run some outdoor Cat5 cable to the ESP32 which will be mounted on the back of a wee solar panel, along with a solar charge controller/battery module. I've configured the ESP32 to deep sleep for long intervals, then wake up for a minute, which gives it time to connect to WiFi and update the oil level a couple of times. Still working on the design for the solar panel/ESP enclosure. When I have it printed I'll report back.
oscarBravo wrote: » ... I'll run some outdoor Cat5 cable to the ESP32 which will be mounted on the back of a wee solar panel, along with a solar charge controller/battery module...
niallb wrote: » Any chance you can inject some power onto that cable? Could save a lot of complexity.
oscarBravo wrote: » I'm only talking a couple of feet of cable to connect the sensor breakout to the ESP32, not a cable from the house. The ESP will connect to my WiFi network. Complexity is part of the fun!
emaherx wrote: » How far is the WiFi?
Banbh wrote: » https://www.magnusmonitors.com/solutions/overview This Magnus monitor seems to do all that is required. A couple of oil suppliers in Galway and doing a deal on them with your next fill. Has anyone got one and do they work?
emaherx wrote: » Any idea of cost? Is there a subscription? Not much info on the site which seems to marketed at distributors rather than individuals. Not much mention of technology, I'm guessing it could be sigfox which would have a subscription.
mickdw wrote: » I think i heard it advertised earlier at 9 quid per quarter with free install.
davo2001 wrote: » Sounds too cheap, i'd gladly pay that for a quick working solution.
Anyone with oilpal on here? The app has stopped recording levels for me for the last while now, site is half down etc. Just wondering if it's on the way out?
Did you contact them?
Yup, popped them a mail yesterday. Nothing back yet.
Still working for me, I just reconnected mine today, had been disconnected (cable problems to the modem).
Did you have a connection failure light on the modem?
Yes, oddly enough the device had been failing to connect to the network for months and I tried fixing the cable (re terminated it a few times) and it never worked.
Only today happened to connect a different nearby cable to it and it connected, and the old cable I connected to a different device and that connected also.
Ya unfortunately tried different cables, tried resetting, no green light. Wonder is it trying to connect to a different server to yours or something?
Did you have any other luck with it, mine is definitely still working, and I also just got it working with home assistant.