The difference in price is ~ 10 eur where I'm at, and I'm not including the rest of the BOM of OP:
Shelly Plug S: EUR 25
NodeMCU: EUR 12.5 Breadboard: EUR 3
The difference in price is ~ 10 eur where I'm at, and I'm not including the rest of the BOM of OP:
Shelly Plug S: EUR 25
NodeMCU: EUR 12.5 Breadboard: EUR 3
Conceptually, pressing the power button seems a little cleaner to me, and also works well with suspend-to-ram (what I originally wanted to do), which the smart plug can’t do.
I’m not too concerned with safety — we’re talking about 3.3V (signal) and 5V (power) here.
> I’m not too concerned with safety
I'm sorry to state that, but that much is evident from the photos in the blog post (assuming you're author here). While the voltages may look safe to you, the whole contraption is safe just until something goes wrong. Examples:
1. You push around a dangling wire and short out a more powerful circuit.
2. Something on your dev board for development purposes releases the grey smoke. 500mA at 5v may seem low to you, but under the right circumstances might cause a fire. I don't see any fuses or other overcurrent protection in your schematic.
3. Your mainboard gives a defect and runs more that the expected voltages/currents to your dev board. God forbid AC from something else faulty in the electric installation (just saying because I've been zapped from touching the outside of a closed case).
4. Power surges, lightning strikes... Static electricity even...
- “Stay Off”: do nothing
- “Power On”: turn on after AC is reconnected
- “Last State”: turn on after AC is reconnected, only if disconnected while running
I agree, breadboard is slightly problematic, but that could be fixed quickly with a soldered perfboard setup or a quick custom PCB and remove the breadboard component.
The voltages we're talking about here is all 5V, and anything it's connected to should be pretty limited in current carrying capability.