@tom_el_camino wrote:
So i wanted to automate that when my (dumb old) doorbell rings, my hue lights flash and my ip-camera takes a picture and sends it to my phone.
I found an old piece of hardware, originally used to make a t-shirt blink to the beat of the music.
(see picture)
(click it to see all info)It works on 2x 1,5v AAA batteries. I used a nodemcu to detect change in volts (when the mic detect a sound, it makes some leds burn.) My first try was using the 3,3v output from the Nodemcu and provide power to the device. then I hooked up 2 leds to the output of the device. I connected the A0 analog input of the nodemcu to detect the change in voltage.
This all worked for a few minutes. then I lost wifi connection to the Nodemcu.
I though maybe the 3,3v is too much for the little device, so I added the battery connection again. only hooked the ground to the - of the led output and the A0 to the + output…
The mic and leds worked fine, and It detected changes between voltage (from 0 to 1 volt) on my A0 analog input.now my nodemcu seems broken. I’m losing connection to the wifi, even without hooking it up to something, it drops wifi connection every X seconds and sometimes it stays offline untill I upload some code again. I’m affraid to hook up a new nodemcu because I might kill it as well.
My question, am I missing something? should I protect my nodemcu from 1 volt input? should I connect my ground to something else than the led negative?second question, in my code (simple analog to digital detection) to detect volt changes, I added refresh: 1s. is there another way to do constant detection of volt changes?
thanks for all your help. this forum has learned me so much about automation, arduino’s ,… A new world opened up to me thanks to you guys and girls!
Tom
Posts: 2
Participants: 2