Hello all,
Hello Mike,
I've read on the following link:
https://www.superhouse.tv/21-six-sonoff-secrets/
... that on the SONOFF Basic (that I'm quite a fan of with Mikes AutomationManager) the "GPIO14"-Sensor Pin is directly exposed at a Pin. (Besides the 4 Pins that we are using for flashing)
I'm wondering if it might be possible to use this to connect eg. a reed switch. (Similar as for the WEMO-Maker)
Mike already explained how to set up such a device with a WEMOS with an relay-board on his page... but after I read this about the exposed "GPIO14" I was wondering If it might be also possible by using a SONOFF Basic which I like better and would be cheaper.
Unfortunately my electronic skills are quite "limited" :-)
.... I wasn't able to get a reed-contact working after I set up a SONOFF Basic as a MPP-MAKER device and changed the Sensor Signal-Parameter to "14".
The Reed contact between Ground and GPIO14 contact wasn't detected.
Therefore I was wondering If anybody in this MPPDevices Group has already figured out something similar and might be able to help me.
.... or explain to me if this idea is complete nonsense :-)
Regards
Dieter
:-(
It seems that I was "celebrating" too early.
After I tried today with 3 different devices there seems something not working properly with evaluating the input signal.
After restarting the device the change of the input at GPIO14 jumps properly from high to low as soon as I connect it to ground.
But after I disconnect the ground again the sensor doesn't jump back to high again.
Only after I set the output manually to "1" with "MppController" the sensor works fine and it recognizes continuously all changes of high/low properly.
... But after a restart it works again only once (from high to low) .... and stays there.
I thought that "PULLUP" setting is exactly what should put up the signal again if ground is not connected... but this obviously doesn’t work properly in my case.
All that stuff is new to me... so it might be only a minor issue (at least I hope) ...and somone from you might be able to give a hint how to solve it.
Dieter
Sounds great, If I'll find a suitable resistor I'll give it a try tomorrow.
Will be even more convenient if that parameter will be possible to be defined in Mikes next update..?. Great news!
Thanks for your help.
Dieter
Thanks
Dieter
Hi Mike,
today I've tried to get my reed-contact working on my SONOFF Basic without a pullup-resistor.
But I still were not able to manage it. :-(
Here is what I did:
1) Updated Firmware Maker-Firmware to 1.1.4 (including 5.1.4 ESP-Firmware)
2) Set Properties: PullUp=true
3) Set SensorPin=5
4) Connected reed-contact directly between GPIO14 and ground (without any resistor)
After reboot of the device everything works like it should .... but only for one Sensor-Switch from high to low.
Afterwards the signal stays at low.
I've connected MPPController and monitored the data. --> I will send in to you per mail.
It works fine after I set the signal manually on high with MPPController..... Then the sensor gets on / off like it should depending on the reed-contact.
But as soon as I reboot it doesn't work anymore.
Did I anything wrong?
Hope you can help me Mike.
Regards
Dieter
Hi Mike,
Hi Doug,
Awesome news!
Finally my Sonoff basic is working without a pullup resistor. :-)
Mike found the issue in the code why the pullup didn't work properly.... and provided an updated version yesterday on his page for the "MPPMaker.lua" ... with this file everything works fine!
Thank you very much for your great support Mike! .... It's really amazing that you always find solutions for all that weird issues :-)
Now I'm going to order some additional SONOFFs ... could think of several usages with sensors :-)
Dieter
That's strange. I've got it working also on a second sonoff basic without problem.
I assume you've updated to the latest mppmaker firmware already, right? I've manually downloaded the last version from Mike's page after he corrected the small bug.... Then it worked for me. I don't have a guess why it doesn't work at your sonoff.
Dieter