Search found 83 matches

by martinus
26 Jul 2020, 10:27
Forum: ESP Easy: General Discussion
Topic: how build 36 or 37 or 39 or 40 Khz frequency with espeasy (esp8266) ?
Replies: 18
Views: 634

Re: how build 36 or 37 or 39 or 40 Khz frequency with espeasy (esp8266) ?

I guess your issue is more related to the used protocol instead of the frequency. You can't change the frequency in the ESPEasy webgui. If you want to learn things, maybe check this link: https://esp8266-shop.com/blog/esp8266-ir-remote-control-of-air-conditioners/ You could try the IR receiver and s...
by martinus
23 Jul 2020, 14:27
Forum: ESP Easy: General Discussion
Topic: how build 36 or 37 or 39 or 40 Khz frequency with espeasy (esp8266) ?
Replies: 18
Views: 634

Re: how build 36 or 37 or 39 or 40 Khz frequency with espeasy (esp8266) ?

The IR Receivers used for this library decode the incoming signal to a mark/space pulse signal and the 3x kHz carrier signal is removed. The library never sees the carrier signal. The used IR LED does not modulate by itself so the library uses a software PWM signal carrier to generate mark/space sig...
by martinus
29 Jun 2020, 16:47
Forum: ESP Easy: Projects / Applications
Topic: New protocol for battery powered devices.
Replies: 9
Views: 2035

Re: New protocol for battery powered devices.

After some tweaking on ESPEasy, this is the best i could achieve on the LSC "cold-boot circuit". 400 milliseconds to do setup, serial communications to the MCU, init boot message to verify channel, check status and send final message. All done with rules. And 500 mSeconds before actual sleep: ESPNOW...
by martinus
27 Jun 2020, 17:36
Forum: ESP Easy: Projects / Applications
Topic: Arduino Nano + INA219 = cheap current scope
Replies: 10
Views: 1315

Re: Arduino Nano + INA219 = cheap current scope

I am using the AP mac interface on the receiver so that should be ok. About the sleep, it turns out that it does work like planned. The power-off as assumed in the previous graph was not true. I also measured VCC and used a 4 ms timescale, to find out that the VCC remains active for an additional se...
by martinus
27 Jun 2020, 09:25
Forum: ESP Easy: Projects / Applications
Topic: Arduino Nano + INA219 = cheap current scope
Replies: 10
Views: 1315

Re: Arduino Nano + INA219 = cheap current scope

I'm using the LSC doorsensor circuit for my battery devices. So every boot is a cold-boot in this case and it cannot use normal deepsleep. So i guess some issues cannot be avoided with this type of circuit. But the sleep current of the entire circuit is now 14 uA which is sufficient. Battery life wi...
by martinus
27 Jun 2020, 09:12
Forum: ESP Easy: Projects / Applications
Topic: New protocol for battery powered devices.
Replies: 9
Views: 2035

Re: New protocol for battery powered devices.

TD-er wrote:
26 Jun 2020, 22:23
Well, that's not entirely true.
I am working on adding an ESP-now layer to ESPEasy.
It is a work-in-progress.
Good to hear that ESPNOW will be part of the stock firmware. That will likely add to the level of adoption from end users.
by martinus
26 Jun 2020, 15:45
Forum: ESP Easy: Projects / Applications
Topic: Arduino Nano + INA219 = cheap current scope
Replies: 10
Views: 1315

Re: Arduino Nano + INA219 = cheap current scope

Almost forgot that the Arduino Nano has digital inputs to mimic a cheap logic analyzer and the Arduino Serial plotter can do multiple lines in the chart. So i used GPIO-0 on the ESP to toggle at some given points in the rules engine and hooked up to an input on the Nano. Gives more info on what happ...
by martinus
26 Jun 2020, 10:51
Forum: ESP Easy: Projects / Applications
Topic: New protocol for battery powered devices.
Replies: 9
Views: 2035

Re: New protocol for battery powered devices.

I have been looking for cheap and simple ways to reduce power consumption for my battery powered ESP8266 & ESP32 devices for quite long time. I haven't seen any request on alternative protocols for battery operated ESP devices, not for my ESPNOW experiments, nor your 'probe-request' approach. So it...
by martinus
25 Jun 2020, 15:30
Forum: ESP Easy: Projects / Applications
Topic: Arduino Nano + INA219 = cheap current scope
Replies: 10
Views: 1315

Re: Arduino Nano + INA219 = cheap current scope

What range have you set for the current? And are you measuring the current in front of a linear voltage regulator? The range is set to 400 mA. Measuring the entire setup, so the modded doorsensor with the Arduino Pro Mini and the servo. The INA sensor is between the batteries and the Vbat connectio...
by martinus
24 Jun 2020, 16:40
Forum: ESP Easy: Projects / Applications
Topic: Arduino Nano + INA219 = cheap current scope
Replies: 10
Views: 1315

Arduino Nano + INA219 = cheap current scope

In order to checkout current consumption of the ESP doorsensor mod (using ESPNOW and controlling a servo on batteries) i decided to hookup an INA219 module to an old Arduino Nano module and used the Arduino IDE serial plotter to show exact current measures from boot till shut-down: ESPNOW_Current.pn...
by martinus
07 Jun 2020, 13:23
Forum: ESP Easy: Projects / Applications
Topic: ESP32 Cluster
Replies: 7
Views: 1794

Re: ESP32 Cluster

Finished a bare plugin that checks the remote node webgui and provide the Serial2 debug mode: WD1.png WD2.png The plugin adds a small "/watchdog" web page without a password. It currently only responds with OK. When i disable the watchdog on one node, the other node will reset it after three consecu...
by martinus
06 Jun 2020, 18:49
Forum: ESP Easy: Projects / Applications
Topic: ESP32 Cluster
Replies: 7
Views: 1794

Re: ESP32 Cluster

I've also cross wired the standard serial port on both modules to the HW-serial2 port and started working on a watchdog/debug plugin. I can now check the serial output from each node using the weblog feature on the other node and see all output even from the early boot stage: 23164: SER 2: ets Jun 8...
by martinus
06 Jun 2020, 14:38
Forum: ESP Easy: Projects / Applications
Topic: ESP32 Cluster
Replies: 7
Views: 1794

Re: ESP32 Cluster

The ESP32 does have a HW watchdog, right? Do you know what may have gone wrong for the unit to get stuck? For example, did it reboot and have some GPIO pin low or high to force the unit into flash boot mode? Yes, the ESP32 also has a build-in watchdog. But it will only assist in severe cases where ...
by martinus
06 Jun 2020, 12:56
Forum: ESP Easy: Projects / Applications
Topic: ESP32 Cluster
Replies: 7
Views: 1794

ESP32 Cluster

Two weeks ago, during holiday i wanted to remotely update a few rules on my central ESPEasy unit. And the unit got stuck after submit and no way to push the reset button. This is inconvenient because several HA logic is done by this main unit instead of using Domoticz. I had used an I2C watchdog in ...
by martinus
02 Jun 2020, 17:08
Forum: Experimental
Topic: E-paper on batteries
Replies: 6
Views: 1702

Re: E-paper on batteries

I'm planning to use an e-paper inside a picture frame, running on batteries. The bigger display has arrived and it's also running with some test values, this time inside/outside temperature and the battery voltage: WaveShare.png This setup uses an enhanced Pro Mini Extender connected to I2C bus. All...
by martinus
02 Jun 2020, 17:03
Forum: Experimental
Topic: E-paper on batteries
Replies: 6
Views: 1702

Re: E-paper on batteries

Ath wrote:
31 May 2020, 14:39
Great results so far!

Btw: Are those numbers anything real, like from a PV installation, or just something random?
The upper value is the controlled servo position (not used here) and the lower value is the battery voltage. Just for testing...
by martinus
02 Jun 2020, 17:02
Forum: Experimental
Topic: E-paper on batteries
Replies: 6
Views: 1702

Re: E-paper on batteries

Some of these displays also support partial updates. Maybe that can shorten the refresh time? Not sure if that will work when everything is powered off between cycles? And for even lower power consumption in deep sleep, see: https://www.youtube.com/watch?v=n_A_8Y4xNx8 (not tested myself) That does ...
by martinus
31 May 2020, 13:24
Forum: Experimental
Topic: E-paper on batteries
Replies: 6
Views: 1702

E-paper on batteries

While a normal LCD would draw current al the time, an E-paper display should retain it's picture without any power. To do some experiments, i've ordered a Wemos E-paper display to see if this can be run on batteries for several months. Unfortunately, the display refresh takes up to 2 seconds, but du...
by martinus
22 May 2020, 10:25
Forum: ESP Easy: Projects / Applications
Topic: Capacitive Rain Sensor
Replies: 12
Views: 4794

Re: Capacitive Rain Sensor

I still want to make some changes to the firmware. It works nice, the ESP does the heating control well... But the setting of threshhold values by recompiling and flashing firmware isn't to my likings. Nice project! Again proves that having a dedicated low-level MCU added to the architecture can be...
by martinus
16 May 2020, 14:39
Forum: ESP Easy: Software
Topic: Build ESPEasy on PlatformIO with servo motor plugin for Esp32
Replies: 5
Views: 3101

Re: Build ESPEasy on PlatformIO with servo motor plugin for Esp32

Can you try this completely preconfigured portable Arduino IDE: http://www.letscontrolit.com/downloads/ArduinoEasy32.zip Just download, unzip, launch Arduino.exe and open recent "ESPEasy" and see if it compiles. (well if you're on windows...) The zipfile has everything included: * the Arduino IDE * ...
by martinus
16 May 2020, 12:49
Forum: ESP Easy: Software
Topic: Build ESPEasy on PlatformIO with servo motor plugin for Esp32
Replies: 5
Views: 3101

Re: Build ESPEasy on PlatformIO with servo motor plugin for Esp32

I use a "Portable" Arduino setup that keeps all related stuff in a single "Portable" folder. I use one for ESP8266, one for ESP32. This may not really be required but this is how i've worked from the early start. The portable approach makes it easy to switch between several of my desktops/laptops/VM...
by martinus
16 May 2020, 12:34
Forum: Experimental
Topic: ESP powered Servo Gauge
Replies: 3
Views: 1852

Re: ESP powered Servo Clock

There is another alternative for full circle rotation like clock which could be implemented using ESP32. https://www.youtube.com/watch?v=0TNBxt5hF-g Part-1 https://www.youtube.com/watch?v=3VTcL2hMDdA Part-2 Thanks. It's always nice to see these kind of DIY projects in it's early prototype stage. As...
by martinus
15 May 2020, 14:58
Forum: ESP Easy: Software
Topic: Build ESPEasy on PlatformIO with servo motor plugin for Esp32
Replies: 5
Views: 3101

Re: Build ESPEasy on PlatformIO with servo motor plugin for Esp32

Still using Arduino IDE which seems easier to get running IMHO. For the servo, i've added a library that was specifically build for ESP32: https://www.arduinolibraries.info/libraries/esp32-servo It uses the hardware driver circuit from the ESP32. AFAIK the standard servo lib is not included with the...
by martinus
15 May 2020, 14:48
Forum: Experimental
Topic: ESP powered Servo Gauge
Replies: 3
Views: 1852

ESP powered Servo Gauge

From time to time, you have to find some more or less useful applications for the things we do with our beloved ESP modules. Inspired by the LCS Doorsensor mod, i'm currently prototyping a battery powered Servo controlled "Clock". Although the clock may not be so inspiring, it's just an easy way to ...
by martinus
08 May 2020, 17:49
Forum: ESP Easy: General Discussion
Topic: Flash Problem Lolin ESP32 Board
Replies: 5
Views: 2549

Re: Flash Problem Lolin ESP32 Board

And indeed I am now quite convinced we regained stable builds again, so just a few more tests and then we declare it stable and update the links etc. By the way, I don't think we have access to the Sourceforge pages. I'll email the account information to you, so you can add the 'long-awaited' new s...
by martinus
07 May 2020, 17:07
Forum: ESP Easy: General Discussion
Topic: Flash Problem Lolin ESP32 Board
Replies: 5
Views: 2549

Re: Flash Problem Lolin ESP32 Board

That's the 4th or 5th post I see today describing this ancient ESP32 build. Is there a recent blog post writing about it? Well, it is listed on the official Wiki page on ESPEasy32: https://www.letscontrolit.com/wiki/index.php/ESPEasy32 bottom of the page shows a link to the original download locati...
by martinus
29 Apr 2020, 17:22
Forum: Experimental
Topic: ESP32 mod
Replies: 7
Views: 2721

Re: ESP32 mod

Second mod, using this standard IR shield: IRMod3.png Attached to the ESP32: IRMod2.png Final solution, wall socket is located opposite of the TV, distance 4 meters. IRMod1.png Using rules like this: on tv_on do irsend SAMSUNG,0xe0e09966 on tv_off do irsend SAMSUNG,0xe0e019e6 I can now turn on/off t...
by martinus
29 Apr 2020, 16:47
Forum: Experimental
Topic: ESP32 mod
Replies: 7
Views: 2721

Re: ESP32 mod

Some more mechanical modding and I've found a possible purpose:
PIRMOD.png
PIRMOD.png (181.91 KiB) Viewed 2496 times
Running stable for several days, no false positives. No unexpected reboots.
by martinus
23 Apr 2020, 14:53
Forum: Experimental
Topic: ESP32 mod
Replies: 7
Views: 2721

Re: ESP32 mod

I'm familiar with the basics of modern PSU devices. And seen some tests of the very cheap ones. The thing with Chinese Manufacturing is that it can be hard to distinguish between cheap and too cheap. I definitely stay away from the no-brand 1 euro direct import from ebay versions that according to s...
by martinus
23 Apr 2020, 13:06
Forum: Experimental
Topic: ESP32 mod
Replies: 7
Views: 2721

Re: ESP32 mod

Hmm, that looks like some mod that deserves some warnings about safety. Agree. It counts for all mods to equipment where live mains is present. So also modding the Sonoff series and the like. In this case, good isolation between the lower and upper half of the enclosure is important. For the protot...
by martinus
22 Apr 2020, 14:14
Forum: Experimental
Topic: ESP32 mod
Replies: 7
Views: 2721

ESP32 mod

While searching the forum for "Action store" (a store that i like to visit on a regular base to find new cheap mod stuff), i found this USB charger that already has been modded once by someone else: https://www.letscontrolit.com/forum/viewtopic.php?f=2&t=6271&p=34420 Because i recently said goodbye ...
by martinus
20 Apr 2020, 12:09
Forum: ESP Easy: Software
Topic: tips to create a really stable pulsecounter for watermeter
Replies: 8
Views: 3112

Re: tips to create a really stable pulsecounter for watermeter

Unfortunately, the debounce feature will only prevent consecutive pulses to be counted incorrectly. In case of a very short single noise pulse, it will still be counted. Because of the ISR handling even a microsecond pulse will trigger the counter. When high frequency noise is an issue (so not the t...
by martinus
20 Apr 2020, 12:03
Forum: ESP Easy: Software
Topic: tips to create a really stable pulsecounter for watermeter
Replies: 8
Views: 3112

Re: tips to create a really stable pulsecounter for watermeter

Cheapest levelshifter i use: simple diode between output/input, cathode connected to sensor output.
Ouput active low will pull ESP input to ground, Active high 5V will be blocked by diode.
by martinus
18 Apr 2020, 19:58
Forum: ESP Easy: General Discussion
Topic: "Voting" for the most Easy controller!
Replies: 28
Views: 4255

Re: "Voting" for the most Easy controller!

tl;dr : Not easy, but flexible. My point is that Openhab's flexibility allows me to optimize my home control experience to work the way I live. Setting everything up wasn't easy, but I'm a satisfied customer. While investigation other systems, started to get the feeling that Easy and flexible are m...
by martinus
18 Apr 2020, 19:48
Forum: RPiEasy: General Discussion
Topic: RPIEasy
Replies: 274
Views: 77399

Re: RPIEasy

I think for truly standalone local IOT network uMQTT broker at https://github.com/martin-ger/uMQTTBroker should be implemented as an optional controller. With uMQTT broker there is no need for internet at all for local monitor and control. Thanks. With the memory constrains of the ESP8266, this loo...
by martinus
18 Apr 2020, 17:42
Forum: RPiEasy: General Discussion
Topic: RPIEasy
Replies: 274
Views: 77399

Re: RPIEasy

TD-er wrote:
18 Apr 2020, 13:34
Well I do use the p2p myself mainly for discovery reasons, not really for sharing sensor values.
You mean the "nodelist"? You could easily refactor the UDP mechanisme to an MQTT version to periodically send hostname, IP and such.
by martinus
18 Apr 2020, 11:03
Forum: RPiEasy: General Discussion
Topic: RPIEasy
Replies: 274
Views: 77399

Re: RPIEasy

But there are other issues with how intuitive it is (or better how it is not...) so the p2p protocol can really use some TLC. For example, its current implementation is hardly scale-able, as it will send messages to every node it knows in the network. So for 255 nodes, that would be a lot of messag...
by martinus
16 Apr 2020, 11:27
Forum: Experimental
Topic: ESP more easy - for Domoticz
Replies: 3
Views: 2325

Re: ESP more easy - for Domoticz

I assume it uses Domoticz HTTP calls? Or does it also work with MQTT? I'm using the Domoticz JSON HTTP API for this stuff. About the code? As short while ago, i found this plugin when i was looking for Philips Hue support on the forum. https://www.letscontrolit.com/forum/viewtopic.php?f=6&t=5907&p=...
by martinus
15 Apr 2020, 19:47
Forum: Experimental
Topic: ESP more easy - for Domoticz
Replies: 3
Views: 2325

Re: ESP more easy - for Domoticz

For the SI7021 sensor, things were not so difficult because this module does not need specific settings:

Wizard3.png
Wizard3.png (50.85 KiB) Viewed 2318 times

Task auto-created in ESPEasy:

Wizard5.png
Wizard5.png (12.08 KiB) Viewed 2318 times

And in Domoticz, no action required, device pops-up automatically:

Wizard4.png
Wizard4.png (20.54 KiB) Viewed 2318 times
by martinus
15 Apr 2020, 18:04
Forum: Experimental
Topic: ESP more easy - for Domoticz
Replies: 3
Views: 2325

ESP more easy - for Domoticz

Back to the original plan i've spend a few hours to prototype a plugin that will prevent mainly newbies to forget to enter the IDX value on a task :oops: To make things easier, ESPEasy could create a Domoticz virtual sensor and a task for you so at least the basics will be present. In a way, i think...
by martinus
14 Apr 2020, 17:42
Forum: ESP Easy: Software
Topic: MQTT Node-Red Smartplug - Easy (?)
Replies: 1
Views: 2560

MQTT Node-Red Smartplug - Easy (?)

Tried to figure out the easy way to control a smartplug using MQTT and local pushbutton control with feedback to node-red, without using any rules and just two simple to understand topics: TestUnit/SmartPlug/Set TestUnit/SmartPlug/State So instead of using existing options like /sysname/GPIO/<pin> o...
by martinus
13 Apr 2020, 14:36
Forum: ESP Easy: General Discussion
Topic: "Voting" for the most Easy controller!
Replies: 28
Views: 4255

Re: "Voting" for the most Easy controller!

The code of C014 is less than optimal. So it may need quite some TLC to clean it and have a proper look at to see if all situations are handled well. This could make sense if we have user demand for it... IMHO the Homie initiative looks good, but if no HA developer adopts it, it'l be useless. I thi...
by martinus
13 Apr 2020, 13:13
Forum: ESP Easy: General Discussion
Topic: "Voting" for the most Easy controller!
Replies: 28
Views: 4255

Re: "Voting" for the most Easy controller!

Connecting ESPEasy to FHEM is the easiest way: Activate the controller in ESPEasy and the device pops up in FHEM, it's configured automatically. That sounds really easy ! It was also planned to have this for Domoticz when the ESPEasy project was started, but it never got that far (or did i miss som...
by martinus
12 Apr 2020, 19:21
Forum: ESP Easy: General Discussion
Topic: "Voting" for the most Easy controller!
Replies: 28
Views: 4255

Re: "Voting" for the most Easy controller!

Googled around on topics like "Best open source Home Automation" to find several sites that have lists with some comments on each product. It looks like these 3 products popup in every list i've found so far, with comments like "popular, large and active community, broad support of protocols": Home ...
by martinus
12 Apr 2020, 18:34
Forum: ESP Easy: General Discussion
Topic: "Voting" for the most Easy controller!
Replies: 28
Views: 4255

Re: "Voting" for the most Easy controller!

For me the easiest and simplest controller is an app called MQTT Dash https://play.google.com/store/apps/details?id=net.routix.mqttdash&hl=en_US based on MQTT protocol. I've installed the app and it's a nice tool that will come in handy to quickly control/monitor an MQTT topic. Only noticed in the ...
by martinus
11 Apr 2020, 16:50
Forum: ESP Easy: General Discussion
Topic: "Voting" for the most Easy controller!
Replies: 28
Views: 4255

Re: "Voting" for the most Easy controller!

It has become a way too complicated plugin, for something that should be really basic. Many users likely operate a smart plug like Sonoff Basic. That was the main goal for this plugin in the first place. Maybe a new plugin should be created for smart plugs that typically have three features: - A GP...
by martinus
11 Apr 2020, 16:41
Forum: ESP Easy: General Discussion
Topic: "Voting" for the most Easy controller!
Replies: 28
Views: 4255

Re: "Voting" for the most Easy controller!

- In OpenHAB i can get OpenHAB to control the LED and react on the local button, but pressing the button only updates the OpenHAB state but not the LED... (fixed that with rules, but this should not be needed IMHO) I've found a setting "IsCommand" in the OpenHAB channel setting for this thing/item,...
by martinus
11 Apr 2020, 16:34
Forum: ESP Easy: General Discussion
Topic: "Voting" for the most Easy controller!
Replies: 28
Views: 4255

Re: "Voting" for the most Easy controller!

It has become a way too complicated plugin, for something that should be really basic. This plugin is a nice illustration of how things get out of hand, look at how it evolved from the early stages: R017 - 3k - this was actually the real input switch... R120 - 13k - still quite basic, although the ...
by martinus
11 Apr 2020, 15:14
Forum: ESP Easy: General Discussion
Topic: "Voting" for the most Easy controller!
Replies: 28
Views: 4255

Re: "Voting" for the most Easy controller!

Googled for official tutorial for ESPEasy/OpenHab. First hit: https://www.letscontrolit.com/wiki/index.php?title=Tutorial_OpenHAB_Switch That certainly doesn't help for OpenHAB2 and current ESPEasy :oops: Well this one's not better: https://www.letscontrolit.com/wiki/index.php?title=Tutorial_Domotic...
by martinus
11 Apr 2020, 13:20
Forum: ESP Easy: General Discussion
Topic: "Voting" for the most Easy controller!
Replies: 28
Views: 4255

Re: "Voting" for the most Easy controller!

This morning, downloaded the OpenHAB server. Runs on java so it runs on my Windows as well. Launching the server was easy and the webgui is available in no time. But from there, things are not so easy. Could not find east steps for getting a switch working on ESPEasy using MQTT until i found a youtu...