Ive no idea what it is with the arch.
I can have something running for days at a time with no problems and then take it to the arch and it breaks…
Is the power still going to the extension cord i plugged it into?
Its plugged into one of the new wall sockets on the south side.
It is a bit fragile as i bunged it together quickly with what i had laying around.
I cant get down to fix it in the nesr future.
Pull it apart and check the connections. Its pretty simple.
Maybe blob some hot glue on things like the pin jumper and pin connectors.
Im going to knock up a little board for these as im going to use a few around the house.
Maybe ill finally try one of the board fab houses this time rather than making them myself.
Using the esp8266 01 plugged into headers. With facility for battery or wall wart.
Ive found a little 3.3v Switching regulator in a nice little 3 legged package that i can solder on the board. The whole device will be tiny even with the few through hole components ill need.
Or i could get the magnifying glass out and go surface mount with my own regulator and i should get it in the footprint of the Esp8266 board.
Would it make sense to knock something up in EAGLE, get @gordonendersby to help make a prototype to test then send off for a small batch of 20-30 of them to be made…
Would be good if it could take the SMD version of the ESP board, have the DH22 on it, and space for either a couple coin cells or 3.3V regulator.
Theres some code in there somewhere as well.
From memory you need to break out one more pin from the chip on the board for the timer interupt to restart the processor from sleep. some even remove the power indicator led. You can monitor the battery state, the function is documented in the sdk and has been exposed in the supporting libraries. You put the whole device to sleep between readings and connecting to the wifi access point.
The Esp can wake connnect the wifi and upload the readings very quickly.
So uses very little power while the timer runs till the next reading.
Could you share the code, I have bought components for making two more, so that we can measure ambient inside and outside humidity so that the data is a bit more useful that it is right now. The under floor humidity is only 10-15% more than the official ambient humidity in London this evening.
Heres a link to my SLMS dropbox folder with the ESP8266 stuff in.
You will need the 1.6.5 version of the Arduino ide.
Follow instructions here called “installing with boards manager” to set it up for the ESP8266 boards.
DHT22Thingspeak - is the code for the little esp8266 01 ive used on the device in the arch.
RFIDLcdReader - The code that connects to the membership proxy and verifies key fobs.
Again ESP8266 12 version for the spi and extra gpio pins.
Uses the liquidcrystal library to display on 20x4 lcd display. Reads from the rfid readers weve been using with the library ive included in dropbox folder.
Libraries - Modified libraries to work with the ESP8266 version of the Arduino IDE.
Im going to be away for a week in Salisbury house hunting.
But when I get back Ill have a go at designing a board in Eagle.
Theres a few good example circuits around showing the correct use of pullup resistors and power smoothing caps to make the boards more stable. Several versions based on whether you want it bare bones and stand alone without flashing or all singing and dancing with buttons to put it into flash mode ready to upload your firmware. But at the moment I cant put my hands on them. Ill post them later when I find them.
The Eagle libraries are available now for the ESP8266 boards.
Ive included a copy of one of them, ESP8266-Eagle_Library-master.zip, in dropbox but there are others available.
Seems to be reliable enough now. https://thingspeak.com/channels/49467
Would be intetesting if those spikes correspond to particular activities in the arch.
A few more Esp8266 01’s arrived while i was away so im hoping to knock together a few of these sensors in a better package to use at home soon.#
Gordon