@Christopher_Hemmings - honestly, it could be any number of things that are causing your restarts. I have seen some issues with controlling servos using the NodeMCU (e.g. with the crappy servos I had connected, they would oscillate at any point the wifi radio goes active), so I see how the servos could affect the NodeMCU vice versa. I hadnāt tried this yet, but maybe a low ESR capacitor between the 5V/GND lines on the servo would help filter out any noise?
Just listing things off the top of my head, Iād look at these:
Make sure your 5V input is remaining steady (if you have a Fluke or a meter with a āMINā function, you could put that across the VIN/GND pins and see if youāre dropping too low - below ~3.9 v is badā¦
Use the serial monitor to see what messages the NodeMCU is sending during resets - itāll include the reason for rebooting (wdt, power loss, or any other runtime crash).
Check your code for any obvious problems like dividing by 0 or other common problems.
The RST/D0 diode I put in is for programming only (after I found out thereās issues with getting some boards to go into boot mode with a straight connection).
BTW, we definitely should have a hardware section on this forum - thereās plenty of people who would be interested in having hardware discussions as they relate to their openHAB system (sensors, controllers, etcā¦) and that information is hard to come by at arduinoi- or other hardware specific forums.
Ok, Here is a quick and easy one, charging station for various devices.
A button (xiaomi?), Wall switch And a simple timer rule to turn it off and set some notification to get batteries out
I also was looking for at water valve.
But being the cheapskate I am, would not pay for a Danfoss or the like. But I wonāt trust the cheap Ali ones for my main water valve.
But I found this valve actuator on Ali:
The thing on top of my water meter is a home build reflective sensor. It connected to a 1-wire counter and is read by a small OpenWRT router.
The water value actuator is also connected to the 1-wire bus through a dual 1-wire switch and some relays.
This is probably the most loved HA stuff I have made. It has saved us from countless times where the garden hose has jumped of the couplings, but also has the unplanned side effect of telleing us when a shower has take too long
It sends a notification to our phones if it registers a nonstop use of 100liters of water, or if there have been a consumption nonstop for 6hours (slow leak like a running toilet).
Sorry not controlled by OpenHAB, I like to keep this things separate.
It does integrate with OH though.
Thatās fine, but I meant more for DIY hardware (Arduinos, NodeMCUs, etcā¦) - that forum category is a bit vagueā¦itād be nice to have more distinct subcategories (DIY, Lighting, Sensors, etcā¦) like the other main sections do. Iāve had plenty of those discussions on here to warrant a dedicated sub. But, to keep this on-topic, Iāll start a new post to ask the moderators to do soā¦
I guess it wasnāt clear why I mentioned we need a more specific forum for these kinds of posts, but that was my point
Happy to oblige Iāve had a busy (but fun!) weekend of tinkering. Hereās one of my projects from this weekend.
Iāve redone my LED strips, adding new effects and cleaning up the code for this holiday season. And, in order to make it more of a permanent install (and increase the WAF), Iāve installed aluminum channels in my windows to hold these:
and for anyone interested, the write-up from its creator is here: - it was designed for HA, but it runs on MQTT, so no reason it shouldnāt work with openHABā¦
Sure. Itās my watermeter reader.
Got the inspiration from here: http://jasper.sikken.nl/gwemeter/
Just happened to have some CNY70 reflective optocouplers laying around, but I guess you can use many others.
Itās connected to a comparator (basically a high amplification op-amp) and 1wire counter DS2423.
Unfortunately the DS2423 is no longer in productions, but since I already had the 1wire network setup, I managed to find a seller on Aliexpress who still sells them.
The 1wire network is connect to a WT3020 (one of the cheapest routers to run OpenWRT), through a simple serial2usb adapter with a diode and a resistor.
According to Dallas Semiconductors, the serial port approach is preferred ahead of bit banging a GPIO, because the timing puts a bit of stress on the CPU.
The router runs a simple shell script every minute, that reads the value of the counter and set off a IFTTT notification to our phones if without limits.
(IFTTT has a nice simple REST interface, great for sending notifications to phones).
then Iām building a touch panel with a 10āā tablet with HabPanel. Itās very basicā¦and Iām testing its stability with the fantastic Habpanelviewer and also trying to integrate Grafana dashboard in it
Iām curous about your water meter counter - I think I have a similar one and I wonder how you do the counting. Did you use just a photo resistor? Is it sensitive enough. in my case itās a very small sprocket rotating where the āteethā count. Additionally thereās a metal plate rotating much slower, so that could be an option.
So, how did you do it?
People, please stay on topic.
This is meant to be a āpresentationā thread.
Open new threads or mail an author if youāve got questions unless theyāre really of interest to the public.
You can also delete your posts which are unrelated.