Esp-12 i.c.m Rotary encoder

Everything about esp8266 and more.
Post Reply
rhendriks
Posts: 185
Joined: Tuesday 24 December 2013 0:36
Target OS: Raspberry Pi
Domoticz version: Newest
Location: Netherlands Helmond
Contact:

Esp-12 i.c.m Rotary encoder

Post by rhendriks » Sunday 30 April 2017 13:47

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.

User avatar
heggink
Posts: 483
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi
Domoticz version: V3.9530
Location: NL
Contact:

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

Post by heggink » Sunday 30 April 2017 14:02

What did you use for the dimmer with esp?

Verstuurd vanaf mijn HUAWEI NXT-L29 met Tapatalk
Pi3, latest beta
RFXCOM, z-wave (AEOTEC, switches, temhum, pir, contacts),
Plugwise2py, P1 'smart'meter & solar panel
Alexa, Wifi Cams motion detection
ESP: relays, PIR & Temp/TempHum
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest

rhendriks
Posts: 185
Joined: Tuesday 24 December 2013 0:36
Target OS: Raspberry Pi
Domoticz version: Newest
Location: Netherlands Helmond
Contact:

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

Post by rhendriks » Tuesday 02 May 2017 22:22

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.

User avatar
heggink
Posts: 483
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi
Domoticz version: V3.9530
Location: NL
Contact:

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

Post by heggink » Tuesday 02 May 2017 22:34

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
Pi3, latest beta
RFXCOM, z-wave (AEOTEC, switches, temhum, pir, contacts),
Plugwise2py, P1 'smart'meter & solar panel
Alexa, Wifi Cams motion detection
ESP: relays, PIR & Temp/TempHum
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest

rhendriks
Posts: 185
Joined: Tuesday 24 December 2013 0:36
Target OS: Raspberry Pi
Domoticz version: Newest
Location: Netherlands Helmond
Contact:

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

Post by rhendriks » Thursday 04 May 2017 13:00

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.

rhendriks
Posts: 185
Joined: Tuesday 24 December 2013 0:36
Target OS: Raspberry Pi
Domoticz version: Newest
Location: Netherlands Helmond
Contact:

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

Post by rhendriks » Friday 05 May 2017 20:04

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest