Page 1 of 1

Esp-12 i.c.m Rotary encoder

Posted: Sunday 30 April 2017 13:47
by rhendriks
I have made an dimmer with a slider in Domoticz, this works great.
But now I want connect an Rotary encoder to the esp in the place of a wallswitch.
Technical no problem , only the software I don't know.
Can anyone tel me how I can make A Rotary encoder to an esp-12 en read out?
How can I set this in "rules" en sent to Domoticz and so that the slider moves to.
I Have ever an Rotary program with picbasic , see below.

Code: Select all

If PORTB.0 = 1 Then
  If PORTB.1 = 1 Then
    Dec teller
  Else
    Inc teller
  EndIf
For teller is the dim value.

Re: Esp-12 i.c.m Rotary encoder

Posted: Sunday 30 April 2017 14:02
by heggink
What did you use for the dimmer with esp?

Verstuurd vanaf mijn HUAWEI NXT-L29 met Tapatalk

Re: Esp-12 i.c.m Rotary encoder

Posted: Tuesday 02 May 2017 22:22
by rhendriks
heggink wrote:What did you use for the dimmer with esp?

Verstuurd vanaf mijn HUAWEI NXT-L29 met Tapatalk
I want to use an separate rotary encoder.
And connect to 2 inputs from the esp.

Re: RE: Re: Esp-12 i.c.m Rotary encoder

Posted: Tuesday 02 May 2017 22:34
by heggink
rhendriks wrote:
heggink wrote:What did you use for the dimmer with esp?

Verstuurd vanaf mijn HUAWEI NXT-L29 met Tapatalk
I want to use an separate rotary encoder.
And connect to 2 inputs from the esp.
Have you looked at https://www.tindie.com/products/nEXT_EV ... er-mpdmv41 ?


Verstuurd vanaf mijn HUAWEI NXT-L29 met Tapatalk

Re: Esp-12 i.c.m Rotary encoder

Posted: Thursday 04 May 2017 13:00
by rhendriks
I have seen this but the problem is that , if I set the external potmeter to 100% , I can't dim it with a ipad.
The electronics is not the problem but the software I don't understand.

Re: Esp-12 i.c.m Rotary encoder

Posted: Friday 05 May 2017 20:04
by rhendriks
Below is the schematic how I want to do it.
Image
Image
The Rotary encoder has four different possibilities, to looking for these, this can determine the direction.
And than prog the output to +1 or -1.