Unicorn Edible Cookie Dough
It's being used for the tact switch/push button
The onboard button is on GPIO-0, I don't mess with the GPIO-0 because it can easily cause unintended firmware resets and that's really not fun to deal with. Using GPIO-14 with the tact switch allows better switch control especially if you decide to use SwitchMode 5 or 6. There are other options for the LED like swapping it out for a NeoPixel (WS2812B) for example. This would not require any additional pins and would allow you to output any RGB combination with a single LED or even an entire addressable strip over only one wire. If that's not good enough, you could also use a I2C GPIO expander and add as many extra GPIO pins you need.
It would depend on what kind of light. Standard light bulbs (those you screw into a regular outlet) are not with this setup. It is doable with a dimming circuit but it's a bit complicated. However, if you are using LED lighting, especially something like Adafruits NeoPixel strips, then absolutely. The TASMOTA firmware supports most addressable LEDS and it's relatively easy to setup. I will put together another instructable soon that shows how this can be achieved.
First, thank you for the kind words! These are all very valid points. I am a strong advocate of standards and safety. If you know what you are doing and take enough caution, however, this setup should be quite safe. I think the main reason the Sonoff is not UL or CSA certified is a cost issue. It can cost from a few thousand to a few million dollars. This would make a $5 product turn into a $50 product...
That is a great idea! The only issue I see with it is that there are no easily accessible GPIOs. It is doable but it would require soldering to the chip ESP8266 directly. Maybe I'll add it in a future instructable. Thanks for the compliment and great ideas!
After further searching, it seems that there are a few that might be affordable at amazon, I still recommend a local hardware store, but if you really want to buy it online check this out https://amzn.to/2IrOqJ0
Thank you! The switches I bought are from a local hardware store called Rona. But they are made by Cooper. The specific model is 7501W-JP-C. I looked on Amazon and their prices are far more expensive that in store. I bought them by the box of 10 for only $18 CAD. That makes them less than $2 each. As for the module, it's the Sonoff Basic and I recommend you get it from iTead directly. Here is the link: https://www.itead.cc/smart-home/sonoff-wifi-wireless-switch.html . Amazon does have some but they are generally much more expensive and sellers pop in and out of existence too quickly to make any link I give you any good.
Thanks! I am having one made... I wish I could afford a 3D printer. Then I would make one my self. :)
DIY Hybrid Sonoff Smart Switch for $10
Thank you so much for your kind words. I'm glad you liked it. It's true that it took a little while to put together, but when you love what you are doing, time really flies! The cost was actually in CAD but it doesn't account for shipping so I left it ambiguous to be more fair by average. :)
Thanks! I'm glad it helps you.
Thank you so much! It's my first and hopefully not my last. :)
DIY Hybrid Sonoff Smart Swi...View Instructable »
Tools + Supplies
cheap DIY electronic pH meter
High Power LED Driver Circuits