On a Sonoff you can't, since the power supply for the ESP part is drawn from mains.
On the little device in this topic: you don't need to, since the relay will only be used for switching, so it doesn't really care what is attached.
Moderators: grovkillen, Stuntteam, TD-er
On a Sonoff you can't, since the power supply for the ESP part is drawn from mains.
That is exactly what I am trying to point out. You can achieve the same functionality with a Sonoff, you just need to cut the traces connecting mains from input clamps to the relay. Then you can switch anything.
Sounds tricky, since you would need to keep the leads to the power supply intact! Remember the ESP part of the Sonoff is powered that way.toffel969 wrote: ↑21 Nov 2017, 16:55That is exactly what I am trying to point out. You can achieve the same functionality with a Sonoff, you just need to cut the traces connecting mains from input clamps to the relay. Then you can switch anything.
Sure, I got nothing against the small device, and if you buy for the purpose, it is undoutbely better than "open heart surgery" on a sonoff.manjh wrote: ↑21 Nov 2017, 17:06Sounds tricky, since you would need to keep the leads to the power supply intact! Remember the ESP part of the Sonoff is powered that way.
Also, you would have to make new connections to the relay.
I think I would rather go for a separate NodeMCU with a relay board, which is effectively just what this small device is.
In deed, this is better. Do you sell your pcb?papperone wrote: ↑21 Nov 2017, 17:44 I've my own custom made solution, which is way better than sonoff, up to 3 relays and can control anything from 230VAC down to 5VDC
https://www.letscontrolit.com/wiki/inde ... ule3xRelay
It's small enough (80x60 mm) and I just need to design an enclosure fro external use (not top priority as I'm already using many of those inside junction boxes)
PS: it also has a full ESP8266 with 4Mb flash mem and all pinout brough out to pinheaders for easy connection of additional devices (I use those pins for temperature sensors and PIR devices)
never thought about it, if you are able to assemble it I can share the gerber files but consider all discrete components are SMD...toffel969 wrote: ↑21 Nov 2017, 18:08In deed, this is better. Do you sell your pcb?papperone wrote: ↑21 Nov 2017, 17:44 I've my own custom made solution, which is way better than sonoff, up to 3 relays and can control anything from 230VAC down to 5VDC
https://www.letscontrolit.com/wiki/inde ... ule3xRelay
It's small enough (80x60 mm) and I just need to design an enclosure fro external use (not top priority as I'm already using many of those inside junction boxes)
PS: it also has a full ESP8266 with 4Mb flash mem and all pinout brough out to pinheaders for easy connection of additional devices (I use those pins for temperature sensors and PIR devices)
One of the most densly packed esp8266 i ever saw: https://github.com/JanGoe/esp8266-wifi-relaypapperone wrote: ↑21 Nov 2017, 17:44 I've my own custom made solution, which is way better than sonoff, up to 3 relays and can control anything from 230VAC down to 5VDC
https://www.letscontrolit.com/wiki/inde ... ule3xRelay
It's small enough (80x60 mm) and I just need to design an enclosure fro external use (not top priority as I'm already using many of those inside junction boxes)
PS: it also has a full ESP8266 with 4Mb flash mem and all pinout brough out to pinheaders for easy connection of additional devices (I use those pins for temperature sensors and PIR devices)
I know this design Lisa but IMHO it's too packed with several issues:LisaM wrote: ↑22 Nov 2017, 03:26 One of the most densly packed esp8266 i ever saw: https://github.com/JanGoe/esp8266-wifi-relay
48x48mm...
I once asked itead for even more densely packed 8266, an micro module. Never heard back from them...
Just cutting traces on mains power lines is not a good idea.toffel969 wrote: ↑21 Nov 2017, 16:55That is exactly what I am trying to point out. You can achieve the same functionality with a Sonoff, you just need to cut the traces connecting mains from input clamps to the relay. Then you can switch anything.
Sorry for my ignorance but what is the main error with doing it this way? I have an ESP-01 that I'm trying to control my projector with and I pull the CH_PD high with no resistor.
Connecting 3V3 directly to a PIN basically you are not limiting the current that can flow, thus you can damage the (delicate!) pin of the ESP8266...grovkillen wrote: ↑22 Nov 2017, 09:56Sorry for my ignorance but what is the main error with doing it this way? I have an ESP-01 that I'm trying to control my projector with and I pull the CH_PD high with no resistor.
On Top:papperone wrote: ↑22 Nov 2017, 10:17Connecting 3V3 directly to a PIN basically you are not limiting the current that can flow, thus you can damage the (delicate!) pin of the ESP8266...grovkillen wrote: ↑22 Nov 2017, 09:56Sorry for my ignorance but what is the main error with doing it this way? I have an ESP-01 that I'm trying to control my projector with and I pull the CH_PD high with no resistor.
I know it's not commonly to happen but, with the cost of a resistor I think it's worth to protect the MC, which is a pain in the a$$ if you need to replace it (talking about ESP-12F)
If you make it this size, i'll buy ten! https://goo.gl/images/XHULxdpapperone wrote: ↑22 Nov 2017, 07:00 I know this design Lisa but IMHO it's too packed with several issues:
1) the ESP8266 antenna is somehow blocked and I'm certain the quality of WiFi can't be that good
2) GPIO15 pulldown is done without resistor
3) Resistor to the mosfet gate is too big (100K?)
4) No RESET button (and with module connected to MAIN I wonder how you can do it in a safer way
5) CH_PD is pulled high without resistor
6) GPIO0/2 shoudl be pulled high at boot for proper boot
7) GPIO0 is floating and I'm sure this can lead to random issues
8) Relays are driven directly while I believe an optocoupler gives better protection to spikes
9) SDA/SCL signals are not pulled HIGH and this can cause issues with some I2C devices
I'm sure there are other issues but above list is long enough for me to classify this module as "I don't like it"
That's beyond an hobbysitc approachLisaM wrote: ↑22 Nov 2017, 15:46 If you make it this size, i'll buy ten! https://goo.gl/images/XHULxd
Anything (much) bigger then that means it no longer fits and then size no longer matters. It's the reason i still have zwave, all others zwave modules are phased out in favor of esp.
Regrettable, because i am also interested in very small size - european 65mm wall box compatible relays, which i am unable to find. I have no intentions to make one on my own, but if something can be hacked easily, i am interested..papperone wrote: ↑22 Nov 2017, 17:45That's beyond an hobbysitc approachLisaM wrote: ↑22 Nov 2017, 15:46 If you make it this size, i'll buy ten! https://goo.gl/images/XHULxd
Anything (much) bigger then that means it no longer fits and then size no longer matters. It's the reason i still have zwave, all others zwave modules are phased out in favor of esp.
I'm sure it's doable, but the investment behind (time and money) won't be affordable if not aiming to a commercial product line...
I've used several KlikAanKlikUit modules that fint into the wall socket behind a standard switch device. It works, but in my experience the reception is slightly less than the plug-in devices. Probably has something to do with cables and metal (of the switch) taking some of the RF reception away.enesbcs wrote: ↑22 Nov 2017, 19:13Regrettable, because i am also interested in very small size - european 65mm wall box compatible relays, which i am unable to find. I have no intentions to make one on my own, but if something can be hacked easily, i am interested..papperone wrote: ↑22 Nov 2017, 17:45That's beyond an hobbysitc approachLisaM wrote: ↑22 Nov 2017, 15:46 If you make it this size, i'll buy ten! https://goo.gl/images/XHULxd
Anything (much) bigger then that means it no longer fits and then size no longer matters. It's the reason i still have zwave, all others zwave modules are phased out in favor of esp.
I'm sure it's doable, but the investment behind (time and money) won't be affordable if not aiming to a commercial product line...
Zwave is using 868MHz, Wifi 2.4GHz. So in theorie wifi should operate better in a wall then zwave due to the shorter wavelength. Zwave is working just fine at my home, so wifi should do better.manjh wrote: ↑22 Nov 2017, 22:26 I've used several KlikAanKlikUit modules that fint into the wall socket behind a standard switch device. It works, but in my experience the reception is slightly less than the plug-in devices. Probably has something to do with cables and metal (of the switch) taking some of the RF reception away.
So using a small device with an even smaller antenna, that is also partly covered.... not sure! Maybe Wifi signals are not as much hit by this effect.
The only one i could find is in the link i shared, that is small enough (barely though). Papperone's southern europe's junction boxes are hugh compared to mine (nothern european) boxes, they will never fit.
Shorter wavelength depends more on a "line of sight".
It would take a vertical metal plate to do this kind of shielding, due to the low bandwidth requirements from espeasy an echo would be enough to connect to the ap.
Seems like a device that could hold an esp8266 inside. For that price it might be worth testing?enesbcs wrote: ↑21 Dec 2017, 18:57 I found a very interesting gadget, at first sight i think it is a Sonoff... after zooming in, i saw that "Smart Home" is the brand.. Has someone met it already? Is it ESP based?
https://www.ebay.com/itm/Remote-Control ... 1457073840
I bet it's a Sonoff-clone, which is funny as now Chinese clone their own productsenesbcs wrote: ↑21 Dec 2017, 18:57 I found a very interesting gadget, at first sight i think it is a Sonoff... after zooming in, i saw that "Smart Home" is the brand.. Has someone met it already? Is it ESP based?
https://www.ebay.com/itm/Remote-Control ... 1457073840
Every successful product is worth copying.
Yes, almost the same price than an ESP Dev Board, but it has a plastic case.grovkillen wrote: ↑21 Dec 2017, 19:08 Seems like a device that could hold an esp8266 inside. For that price it might be worth testing?
+1 and Merry Christmas as wellShardan wrote: ↑22 Dec 2017, 12:56 USD 3.71 for a copy with questionable content and quality vs USD 4.85 for the genuine Sonoff basic (actual price from the Itead.cc website https://www.itead.cc/sonoff-wifi-wireless-switch.html )
Guys, really.....
Have a Merry Christmas everyone
Shardan
+1papperone wrote: ↑22 Dec 2017, 13:59+1 and Merry Christmas as wellShardan wrote: ↑22 Dec 2017, 12:56 USD 3.71 for a copy with questionable content and quality vs USD 4.85 for the genuine Sonoff basic (actual price from the Itead.cc website https://www.itead.cc/sonoff-wifi-wireless-switch.html )
Guys, really.....
Have a Merry Christmas everyone
Shardan
no-brainer.Shardan wrote: ↑22 Dec 2017, 12:56 USD 3.71 for a copy with questionable content and quality vs USD 4.85 for the genuine Sonoff basic (actual price from the Itead.cc website https://www.itead.cc/sonoff-wifi-wireless-switch.html )
Guys, really.....
Have a Merry Christmas everyone
Shardan
I have already a Sonoff S20 and a Sonoff Dual, and honestly i do not need either the genuine Basic, neither the clone, there are no place of use currently to me. It will go straight to the bottom of a shelf, after i tested it, i am only curious. I need to know what it is made of.Shardan wrote: ↑22 Dec 2017, 12:56 USD 3.71 for a copy with questionable content and quality vs USD 4.85 for the genuine Sonoff basic (actual price from the Itead.cc website https://www.itead.cc/sonoff-wifi-wireless-switch.html )
Guys, really.....
Have a Merry Christmas everyone
You mean 3.71$ + Free international shipping vs 4.85$+25$ shipping? Just joking, i know that on ebay original Sonoff basic can be found for 6$ with FREE SHIPPING.. but as i heared a lot of ebay seller sends replacement Powstro models nowadays.Shardan wrote: ↑22 Dec 2017, 12:56 USD 3.71 for a copy with questionable content and quality vs USD 4.85 for the genuine Sonoff basic (actual price from the Itead.cc website https://www.itead.cc/sonoff-wifi-wireless-switch.html )
In the meantime this device arrived, sadly it's ESP-01S based on PUYA, but can be flashed with R147. The relay controlled by GPIO0 directly. GPIO2 did not do anything except lightning the ESP-01S blue LED.manjh wrote: ↑20 Nov 2017, 19:02It looks like a very simple device, so I assume you are right.... anyway, the risk is low (only a few Euro's).enesbcs wrote: ↑20 Nov 2017, 18:33The pictures at banggood are better.. I do not see other MCU, the relay perhaps directly changed by GPIO0 of the ESP-01?manjh wrote: ↑20 Nov 2017, 18:26 As far as I can see it is 8266 based!
See this one at Banggood:
https://www.banggood.com/search/esp-01s ... odule.html
I think that would take this unit:
https://www.banggood.com/Upgraded-Versi ... rehouse=CN
So the ebay offer is not bad at all!
How did you flash it? I connected the ftdi in the usual manner, crossing tx and rx.
I connected it with this way:
I carefully reconnected following your diagram and ran Py Flasher in DOUT mode, loading R147 1024.
I thought that as well. So I double-checked all connections.
Shardan wrote: ↑22 Dec 2017, 18:13 Always remember Ruskin's rule:
"There is hardly anything in the world that someone cannot make a little worse and sell a little cheaper, and the people who consider price alone are that person's lawful prey. It's unwise to pay too much, but it's worse to pay too little. When you pay too much, you lose a little money – that is all. When you pay too little, you sometimes lose everything, because the thing you bought was incapable of doing the thing it was bought to do. The common law of business balance prohibits paying a little and getting a lot – it can't be done. If you deal with the lowest bidder, it is well to add something for the risk you run, and if you do that you will have enough to pay for something better."
(John Ruskin)
You run into a tricky area considering the definition of the word "cheap".toffel969 wrote: ↑27 Feb 2018, 13:15Shardan wrote: ↑22 Dec 2017, 18:13 Always remember Ruskin's rule:
"There is hardly anything in the world that someone cannot make a little worse and sell a little cheaper, and the people who consider price alone are that person's lawful prey. It's unwise to pay too much, but it's worse to pay too little. When you pay too much, you lose a little money – that is all. When you pay too little, you sometimes lose everything, because the thing you bought was incapable of doing the thing it was bought to do. The common law of business balance prohibits paying a little and getting a lot – it can't be done. If you deal with the lowest bidder, it is well to add something for the risk you run, and if you do that you will have enough to pay for something better."
(John Ruskin)
The long version of the good old German saying "Wer billig kauft, kauft zwei mal", --> If you buy cheap, you buy twice. I concur
By the way it's a Heltec Touch Relay:enesbcs wrote: ↑02 Mar 2018, 23:08 I've found a very nice looking 27x19x18mm sized ESP8266 module with one relay and one touch button.
https://www.ebay.com/itm/ESP8266-WIFI-I ... 1932199168
Users browsing this forum: No registered users and 52 guests