-->
Page 1 of 1

WIFI Color Detection with the ESP8266 and MQTT messaging

PostPosted: Fri May 29, 2015 4:26 pm
by hbouzas
The previous implementation of the WIFI color detection was done with an ad-hoc messaging system. Now, the most bang for the buck would be to have MQTT integrated, as it is much more flexible in terms of the message format and content.

I got the color detection, which involves frequency decoding of each of the filtered signals for R,G,B and no-filter, and MQTT working like a charm.

The protocol is simple. An MQTT message is sent to topic “AcquireColor”. Response is obtained by listening to topics “GetColorP” for color percentage and “GetColorF” for raw frequency (proportional to color intensity). The returned info comes back as a JSON string as follows:

Percentages:

{“RGBP”: [{ “Red:”: “37”, “Green”: “30”, “Blue:”: “32”}]}

Frequencies:

{“RGBF”: [{ “Red:”: “6578”, “Green”: “5291”, “Blue:”: “5649”, “All:”: “8695”}]}

Here is the code http://www.horaciobouzas.com

Re: WIFI Color Detection with the ESP8266 and MQTT messaging

PostPosted: Mon Jun 01, 2015 9:53 am
by martinayotte
Why are you posting the same thread more than 5 times across all sub-forums ? :shock:

Re: WIFI Color Detection with the ESP8266 and MQTT messaging

PostPosted: Mon Jun 01, 2015 12:07 pm
by danbicks
Hbouzas,

We get the message buddy, and I know you want to sell some units. Please keep this forum clean with posts and submit one too the appropriate topic!.

Thanks

Dans