Hackitt and Bodgitt discover Healthy Lighting

There has been a lot of talk in the press recently about the colour of lighting and it’s relevance to health. As far back as 2012, the BBC reported that NASA were to test “space-sleep colour-changing lights” on the international space station and since then there have been a number…

Read More

Accessing ESP8266 Arrays in FLASH

A new challenge – the answer to which I will post in here. Accessing an ESP8266 C array in FLASH – i.e. never touching RAM until you actually access something.  One suggestion was to ensure you use 4-byte variables.. so I tried this – it compiled – the array is…

Read More

Lua Revisited

Back in the dark ages when the ESP8266 was something new, I had a go at the nodeMCU software, essentially implementing the Lua language (or a subset of it) on the ESP8266.  At the time I was not familiar with Lua but thanks to some of the excellent resources out…

Read More

ESP8266 Debug

So – I’ve learned quiet a lot in the past few days.. Watchdogs on the ESP8266 Since Espressif SDK 1.01 or thereabouts, watchdog timer operation seems to have changed – delays of any length even in init()  are out – or so it would seem? So I got onto Stanza…

Read More

ESP8266 RESET

As often as not, when I reset an ESP8266 by using the system reset call in the SDK, after flashing – for example. if (strcmp(token, “id”) == 0) {                    if (isQuery) RESPONSE(“ID=%s\r\n”, sysCfg.base);                    else if (strlen(strValue)>=2){                        strcpy(sysCfg.base, strValue);                        CFG_Save();                        system_restart();                    } The unit does not come out of reset.. the…

Read More

ESP8266 Bliss

You may have seen comments in here from Richard Burton about his bootloader. Well, I have to tell you – what a game-changer. If you look at a previous blog where I showed you how we’d moved code from the fairly normal 0x40000 starting point down to 0x20000 – freeing…

Read More

ESP8266 SDK 1.11

Just a short one for those of you who’ve not tried the new Espressif SDK update yet (SDK 1.11).  I noted a pair of commands “system_param_load” and “system_param_save_with_protect” which appear to replace the need for the load and save functions that TuanPM uses in his code in /mqtt/config.c  – so…

Read More

ESP8266 Test Board

I mentioned that Espressif were kind enough to send me a test board to play with – and very nice too. Not had time yet as I’m struggling with learning how to make an installer for my Node-Red package – with some great help from the guys involved with this….…

Read More

Presents from Espressif

Let me start by explaining that Espressif are makers of fine WIFI gadgets.. specifically they have spawned a whole new lease of life for IOT… by producing a marvellous little chip that contains a complete processor, memory and WIFI interface needing only a tiny FLASH memory chip and a couple…

Read More

Making ESP8266 Programming Easier

Updated 09 Apr 2015 – code fix: A little something here from my guest writer and friend Aidan who’s been working with me on the latest home control successes to follow after this blog! If you’ve successfully written and uploaded a piece of C code for the ESP8266 in any…

Read More

An ESP8266 for Arduino Game Changer?

(updated 2/4/2015) Here we go again – just as you thought it was safe to start coding, another game-changer comes along. This time not only do we have an Arduino IDE for the ESP8266 (which isn’t a stunningly good IDE but it’s awfully familiar to many developers) but also what…

Read More