Tag Archives: Sonoff

Sonoff TH10 and TH16

You will have seen me write about the excellent Sonoff ESP8266-controlled mains relay switching devices in the past and I went into great detail as to how to program them using the HC2016 software, the only caveat being they don’t have enough FLASH memory for OTA (well, not with my software). Oh yes and I HAVE added that “button control” that people asked for.

Well, here are two new boards – the Sonoff TH10 and TH16 – if you look on their website – full information including schematics etc. are freely available.

Itead Sonoff TH10[6]

Before we start – here are my previous blog entries Sonoff

Slampher and Sonoff
More Sonoff
Even More Sonoff
Sonoff to Mains Block
32Mb ESP01 and Sonoff

Compared to other boards, several of us have discussed that the Sonoff boards are well made with good clearance on tracks for mains power etc. Some doubted whether their small relays would truly handle the loads claimed.

Well, it looks like ITEAD have taken this on board as I’ve just received both TH10 and TH16 modules.  As far as I can tell the only difference is that the TH10 has a 10 amp relay, the TH16 has a 16 amp relay.

Side View of Sonoff TH10First impressions? Solid. They are bigger than the original Sonoff modules (which I use on a daily basis for controlling lamps etc) but also  much more substantial looking – the programming button is much easier to access as it is intended to be used rather than looking like a reset button.  I’ve made good use of this as an output toggle (which also works on the previous Sonoffs).

As usual I’ll leave it up to others to tell you what you can do with the Sonoff software – first thing I did was to reprogram the boards to handle my own software.

So – the output control is identical to the older models – but they’ve also added in a temperature port. They have very kindly made the input port compatible with my software (see settings below) and options are temperature only using the Dallas temperature sensor which they can provide on a waterproof lead complete with stainless tip – or the DHT22 which also handles humidity – I’m pleased to see they did not use the inferior DHT11 which isn’t that accurate.

PCB for Itead Sonoff TH10

So – see the original article – you’ll see there how to program up the board – this time – the ground and power connectors are blindingly obvious on the end of the board – that’s 3v3 not 5v – I got away with using an FTDI at 3v3 but you may want to consider a proper 3v3 supply for programming.

Itead Sonoff TH10

If you set wifi_button to 0 – sonoff to 1, temp_type to 0 (Dallas) or 1 (DHT) and temperature_port to 14 (these are non-volatile)   you will be able to control the output on out12 (i.e. out12:0 or out12:1), you will be able to read the temperature AND you can toggle the output on and off with the external button on the Sonoff!

The CE and ROHS stickers should keep those who care about such things happy – the important thing for me is looking at the PCB around the mains it is clearly obvious that thought has been put into this. Well done.

Sonoff connectorsOh yes, the FLASH – like the unit before it – we’re looking at an 8Mb FLASH – that is 1MB –  I don’t really support that for OTA though everything works except OTA. I am pretty sure that like other boards, this FLASH if you really must, can be replaced but be warned my soldering isn’t bad and I’ve done lots of Sonoffs, ESP-01s etc – but the little tracks came clean off when I tried it on one of these boards, immediately trashing it – so do so at your own risk.

As for the push connectors for mains in and out – not everyone’s cup of tea and I did have a chuckle that they’ve gone to the effort of avoiding using a screwdriver for the cables – but you have to use a screwdriver to get the cover off !!!!

Facebooktwittergoogle_pluspinterestlinkedin

Cheapest IOT on the Planet

You’ve seen me writing about SONOFF before, several times – and you’ll see it again – but today I’m writing about one thing (for now) – “MUCH CHEAPNESS” to quote a last-century holiday advert. I would be very much surprised if the Sonoff WIFI is NOT the cheapest WIFI mains controller on the planet.

This started as a simple article about the Sonoff and the new pricing but it is RAPIDLY developing – one of our readers (see comments) has alerted us to some MQTT software I’d forgotten all about and which is coming along in LEAPS AND BOUNDS for the Sonoffs – meanwhile I’m having a measure of success right now, setting up a REALLY cheap possible Raspberry Pi alternative – but more of that later – if all of this comes together you really COULD be looking at a complete IOT setup that is the world’s cheapest…  For now – let’s concentrate on the Sonoff. Later today I’ll know if my other experiment has succeeded and I’ll update the blog.  

Incidentally if you’re finding this interesting you are not alone – this blog entry is already getting record levels of viewing!!

sonoffLet’s start off for new readers by describing what the Sonoff IS and what it is NOT.  Itead Studio are based in Shenzen, China and I’ve been following their antics for quiet some time now. You’ll see reviews in here of their products  including Sonoff and the Nextion displays. They’ve certainly had a great effect on my IOT experience.  I’ve been building mains control stuff since the last century – and part of my drive has been cost. Off the shelf devices were just too much so I built my own. Then, all of a sudden these guys started producing stuff that was so cheap, it was not even worth the effort of building from scratch.

I’m an ESP8266 enthusiast as it was obvious from the start that this wonderful WIFI controller was going to be a game changer and the Sonoff device basically puts together an ESP8266 chip, a mains power supply and a relay – for a no-nonsense simple mains controller.

Sonoff has it’s own CLOUD service so that off the shelf you can start controlling your home from your mobile phone – but I’ve never been interested in that, for me the exciting thing was to use my own software in the devices so they could be part of my Raspberry Pi controlled home. I have them all over the place – and soon, thanks to some pricing changes I’ll have even more.

What Sonoff is not: It is not for everyone. They use a 10 amp relay but many of us have concerns what that means – I certainly would not wire a 10amp heating element to these devices. On the other hand (no responsibility accepted here) I HAVE had a 700w heating element attached to one of them for some time without issue – and I have LOTS of lights attached to others. So Sonoff is NOT a super high power controller. In this incarnation discussed here it does not have all sorts of fancy inputs like infra-red, Bluetooth etc. It merely takes commands over WIFI to turn on and off a relay. At a pinch you could connect a temperature sensor to it but you might have to get the soldering iron out for that.  It is not an OTA (over-the-air) programmable device before presumably for very tight cost control issues, they’ve chosen a small FLASH which hasn’t enough spare room for that.

What Sonoff is: The cheapest IOT mains controller on the planet, probably. It is small, reasonably well put-together, reliable, looks fine stuck on the wall and importantly – you can with a little effort re-program the device with my software – or other software. The choice is yours – use as-is, out of the box or put the effort in to re-program – either way you have rock-solid, DIRT cheap mains control over WIFI.

What has changed: The price – Sonoff was dirt cheap before but thanks to reader Kris – I just discovered they are selling the units for $4.85 – that is under £3.50 in English – you just SURELY cannot beat that!!

Here’s the link. Enjoy and don’t blame me if it isn’t what you need. https://www.itead.cc/smart-home/sonoff-wifi-wireless-switch.html

On that link you’ll find sizes, prices, information, schematics and much more. If you want more information on Sonoff – using it, reprogramming it  - you could do worse than doing a search through my blog (search in the right of the page) – it’s all there including the experiences of myself and others.

ALSO reader BOB has reminded me that there is some software for Arduino-types (well the Arduino environment for the ESP8266) that CAN handle OTA as it is smaller and more focussed than my software which could be better described as “kitchen sink”.   Here’s the link – no guarantees as I’ve not used it – though if I get time this week I could well update one of my Sonoffs.

There is possibly more around the corner… keep checking in – right now I’m off to CHURROS in the local market.

Facebooktwittergoogle_pluspinterestlinkedin