thoughts about extended GPIO control

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

thoughts about extended GPIO control

#1 Post by costo » 03 Jan 2016, 13:02

Hi Martinus,

I like to control some RGB led(strips) with ESPEasy.
The way it works now I have to send 3 separate commands resulting in 3 separate connections to make for controlling 3 GPIO's for Red Green and Blue. I think this will cause enough delay to make a colorchange slow, seeing the colors change one by one, that is not really what one would like to see in a color led(strip).

So is it possible to extend the GPIO command list with a new command controlling multiple GPIO's in one command. Something like:
http://<ESP IP address>/control?cmd=RGB,<pinR>,<pinG>,<pinB>,<levelR>,<levelG>,<levelB>

I have a chinese LED WiFi Controller H801 http://hackaday.com/2015/08/25/esp8266- ... -products/ which has a ESP8266 inside, it would be nice to flash it with the ESPEasy software. This controller has 5 High Current MosFets with PWM capabilitie. 3 for R,G,B and 2 for white leds.

i don't want to overload you with requests but maybe you can give your opinion about the idea of multiple GPIO commands.

M4RiO32s
New user
Posts: 5
Joined: 22 Dec 2015, 13:57

Re: thoughts about extended GPIO control

#2 Post by M4RiO32s » 03 Jan 2016, 20:06

If not too time consuming idea is very good - You have my vote costo

NietGiftig
Normal user
Posts: 103
Joined: 16 Sep 2015, 20:32

Re: thoughts about extended GPIO control

#3 Post by NietGiftig » 03 Jan 2016, 20:50

costo wrote: I have a chinese LED WiFi Controller H801 http://hackaday.com/2015/08/25/esp8266- ... -products/ which has a ESP8266 inside, it would be nice to flash it with the ESPEasy software. This controller has 5 High Current MosFets with PWM capabilitie. 3 for R,G,B and 2 for white leds.
Nice, i am ordering a few pieces.
Just somewhat easier than putting it self all together in such small form

rtenklooster
Normal user
Posts: 320
Joined: 15 Apr 2015, 14:17

Re: thoughts about extended GPIO control

#4 Post by rtenklooster » 10 Jan 2016, 00:08

I have received a small board with a built-in RGB led.I get your point.

You might want to create a new device: RGB Led.
Being able to select three output pins, and controllable by command?RGB=RRRR,GGGG,BBBB
I wouldn't recommend sending the pins in this command, that's not how devices are used, so it's not consistent with the general ESP code.

Can't be that hard to realize i think. It's just the first device using three pins instead of 1 or 2 on ic2 devices for example.
Richard - Groningen (NL) - Image

M4RiO32s
New user
Posts: 5
Joined: 22 Dec 2015, 13:57

Re: thoughts about extended GPIO control

#5 Post by M4RiO32s » 14 Jan 2016, 16:08

Agree with this pins, those could be set in configuration.
Another story is to send colours - maybe in hex ? like "command?RGB=e63b7a" (pink) or even "command?RGB=e63b7a,220" 2nd parameter for level

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 79 guests