Esp-12 i.c.m Rotary encoder

Everything about esp8266 and more.

Moderator: leecollings

Post Reply
rhendriks
Posts: 44
Joined: Monday 23 December 2013 23:36
Target OS: Raspberry Pi / ODroid
Domoticz version: Newest
Location: Netherlands Helmond
Contact:

Esp-12 i.c.m Rotary encoder

Post 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.
User avatar
heggink
Posts: 988
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

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

Post by heggink »

What did you use for the dimmer with esp?

Verstuurd vanaf mijn HUAWEI NXT-L29 met Tapatalk
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
rhendriks
Posts: 44
Joined: Monday 23 December 2013 23:36
Target OS: Raspberry Pi / ODroid
Domoticz version: Newest
Location: Netherlands Helmond
Contact:

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

Post 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.
User avatar
heggink
Posts: 988
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

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

Post 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
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
rhendriks
Posts: 44
Joined: Monday 23 December 2013 23:36
Target OS: Raspberry Pi / ODroid
Domoticz version: Newest
Location: Netherlands Helmond
Contact:

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

Post 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.
rhendriks
Posts: 44
Joined: Monday 23 December 2013 23:36
Target OS: Raspberry Pi / ODroid
Domoticz version: Newest
Location: Netherlands Helmond
Contact:

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

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest