Комментарии:
I'm not sure I want my light circuit running through my Pi.
ОтветитьOmg, transformer solution is really bad. Hall effect based sensing is much more safe + it has benefit of providing fault feedback, but yes, much more fiddly. In terms of bouncetime: it just tells how much time should be between edge change events to avoid triggering by switching noise all over the place - it gets more reliable with longer time at expence of latency.
ОтветитьHi,
Nice video.
You can use output voltage from the transformer to power supply a coil of the relay and in the same time connect that voltage through the NO contact of the same relay that is controlled by the transformer. Even better solution is to use voltage from the Raspberry Pi pin through the NO contact of the relay controlled by the output voltage of the transformer. The problem with the delaying will disappear.
This is exactly the same problem I'm trying to solve in the past week. Really useful video, thanks.
Ответитьgpio pin always high can't switch off light any solution?
ОтветитьA 1K resistor between the 3,3V and 0 on the transformer output will draw 3mA when on. This will drain the transformers charge as soon as it goes off and shorten the 'false' ON time a lot.
ОтветитьYou guyz are amazing!!! keep posting more videos about home automation...
ОтветитьIs that me or this is a complicated way to do something simple?
ОтветитьHi, i use relay 1 channel and the result is my gpio pin always high, thats mean the port is correct but it cant turned on ( gpio pin low ), any solution please ?
ОтветитьIs their any alternative solution to update the state which you have done with transformer?
ОтветитьThis kind of goes without saying, but if you are going to work with electricity, make sure you know what you're doing. You should get a certified professional to do any work in your home.
Ответить