# Emonth With Esp8266

**URL:** <https://community.openenergymonitor.org/t/emonth-with-esp8266/2318>\
**Category:** emonTH\
**Created:** [26 November 2016 02:46 UTC](https://community.openenergymonitor.org/t/emonth-with-esp8266/2318 "2016-11-26T02:46:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marty\_Thompson](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/m/8797f3/32.png) [@Marty\_Thompson](https://community.openenergymonitor.org/u/Marty_Thompson)\
**Post date:** [26 November 2016 02:46 UTC](https://community.openenergymonitor.org/t/emonth-with-esp8266/2318/1 "2016-11-26T02:46:52Z")

</div>

can i just program up a esp8266 with the firmware and use like we do on a emontx

tring to eliminate the use of a raspberry pi

cheers

---

<div class="post-metadata">

**Author:** ![pb66](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/pb66/32/27_2.png) [@pb66](https://community.openenergymonitor.org/u/pb66)\
**Post date:** [26 November 2016 16:23 UTC](https://community.openenergymonitor.org/t/emonth-with-esp8266/2318/2 "2016-11-26T16:23:20Z")

</div>

There is no reason a esp8266 cannot be coupled to a emonTH much the same as an emonTx, except the emonTH deosn’t have a USB power connector and an esp8266 will shorten the battery life, possibly to an unacceptable level.

Some esp8266 modules have a usb connector and on-board 5v to 3.3v regulator which could then power the emonTH, just be aware of the 3.3v or 5v differences when hooking up the power, the data pins should all be fine as both units operated at 3.3v regardless of power supply.

You will probably also need to change/add some serial prints in the emonTH firmware to suit inputting to the esp8266.

---

<div class="post-metadata">

**Author:** ![Marty\_Thompson](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/m/8797f3/32.png) [@Marty\_Thompson](https://community.openenergymonitor.org/u/Marty_Thompson)\
**Post date:** [26 November 2016 23:26 UTC](https://community.openenergymonitor.org/t/emonth-with-esp8266/2318/3 "2016-11-26T23:26:22Z")

</div>

Hi thanks thanks for that  
having a playnow

---

<div class="post-metadata">

**Author:** ![Bramco](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/b/34f0e0/32.png) [@Bramco](https://community.openenergymonitor.org/u/Bramco)\
**Post date:** [27 November 2016 08:04 UTC](https://community.openenergymonitor.org/t/emonth-with-esp8266/2318/4 "2016-11-27T08:04:29Z")

</div>

Another way of doing this would be to buy a sonoff TH10 and reprogram it. Ignore the fact that it has a relay. You’d have to write the code to connect to your WiFi (there’s plenty of examples on the Interweb). Then you could use the emonTH code to read the sensor and you’d have to write some extra code to send the data to [emoncms.org](http://emoncms.org). This would mean you don’t then have to have local pi.

The sonoffs are less than a tenner, so a pretty cheap solution with an optional function of being able to switch a relay if you ever wanted that.

Simon
