Search found 6 matches

by quasar66
29 Aug 2017, 10:56
Forum: ESP Easy: Software
Topic: How to measure speed of three air fans?
Replies: 24
Views: 19877

Re: How to measure speed of three air fans?

What i did for something similar (with 6 ir sensors) Code here https://github.com/yahat/ESPEasySlaves_ReadAndCacheDigitalPins modified esp easy slave code to read sensors void loop() { Now=millis(); if(Now - LastRead >= Interval){ LastRead = Now; Found=0; for(j=ReadMin;j<=ReadMax;j++){ Read = digita...
by quasar66
24 Aug 2017, 08:55
Forum: ESP Easy: General Discussion
Topic: I want to publish only changes from EspEasySlave but disconnecting it breaks the rules.
Replies: 1
Views: 1668

Re: I want to publish only changes from EspEasySlave but disconnecting it breaks the rules.

Also, If I put the slave value to be read with 0 decimals, it still triggers with -1.00.
This looks probably like a bug ?
by quasar66
24 Aug 2017, 08:51
Forum: ESP Easy: General Discussion
Topic: I want to publish only changes from EspEasySlave but disconnecting it breaks the rules.
Replies: 1
Views: 1668

I want to publish only changes from EspEasySlave but disconnecting it breaks the rules.

I have this. - door#position read from slave - 5.3 = variable#last - last read value This publishes to mqtt every time the position changes, not on every poll. on door#position do if [door#position] > [variable#last] Publish service/e2garage/door/position,[door#position] TaskValueSet 5,1,[door#posit...
by quasar66
23 Aug 2017, 23:13
Forum: ESP Easy: General Discussion
Topic: Is there an event for mqtt connect?
Replies: 1
Views: 1887

Is there an event for mqtt connect?

Is there an event for mqtt connect?

Thanks!
by quasar66
22 Aug 2017, 15:28
Forum: ESP Easy: Software
Topic: Dimming and a rotary-encoder
Replies: 8
Views: 7530

Re: Dimming and a rotary-encoder

I'm using a slave arduino pro mini to read the encoder and publish it back via the I2C as a fake analog reading. This way I can read the encoder very fast. The code is similar with this https://www.letscontrolit.com/forum/viewtopic.php?f=2&t=3466 but with a rotary encoder instead of 6 digital pi...
by quasar66
21 Aug 2017, 20:22
Forum: ESP Easy: Projects / Applications
Topic: Modified EspEasySlave to read digital values and store the needed pin number, then return it as analog read
Replies: 0
Views: 2088

Modified EspEasySlave to read digital values and store the needed pin number, then return it as analog read

I needed to read 6 sensors very fast (at least a couple of times per second). Each sensor returns 0 if a device is in front of it. I need that data exposed at ~1/s to mqtt. Having worked with the EspEasy library I modified the EspEasySlaves library to make an Arduino Uno Slave that: - on start, the ...