Sunday, February 14, 2016

E-ink display Part III

I am finished the ESP8266 connectivity to my E-ink display. 

At the end the module will stay in low power and every 10 minutes will do:

1.Measure the battery level
2.Measure the temperature from DS18B20 
3.Publish the temperature to the thinkspeak account
4.Publish the ip address, SDK version, B/G/N connectivity, it type as JSON over MQTT
5.Publish the temperature as JSON over MQTT on the temperature topic 
6.Read the current time and show it on E-ink display 
7.Go to sleep for another 10 minutes.


*In the next video the last line instead of MQTT broker address it is the Time (I will make another video and I'll replace the current one)



The purpose of this is to have a mobile device that can be moved around the house to publish temperature to my chronothermostat (of course ESP8266 based).

During the heating time device will update itself every minute otherwise every 10 minutes.

The chronothermostat will have an PID controller that will receive temperature from my module.


Github code can be found  here. Cheers.


E-ink display Part I
E-ink display Part II











Tuesday, February 2, 2016

Mqtt broker on ESP8266 #1

First tries on Esp8266 with MQTT broker.

I was able to send and receive up to 1000 messages in few seconds before the heap run out.

Next to do is to optimize the memory usage, use a memory pool allocator, do some profiling to determin the optimum values for memory chunks....a lot of work to do.

Then do the bridging  (bridgind is done and is working fine)  and websockets, if there is any memory left.



And a video with 1000 messages sent from and to my phone using ESP as broker. Don't forget that there are very small messages.