- Thu Jan 28, 2016 8:03 am
#39876
yesterday i tried the circuit again, I think i had set it up wrong the first time i tried to create it.
It *seems* to work now but the esp8266 (huzzah from adafruit) behaves eraticly. it works a few times and then i get all giberish on the serial connection and it keeps doing this, then sometimes it works again. on a few occasions i had it happen that the eps8266 seemed to be stuck not reacting to "pir movement resets" and constantly using around 70mA, not sure what its doing then but i also see gibberish on the serial line then.
I did change the pulluppin and pir sensor pin to pin 4 & 5 on the huzzah.
If someone also has an adafruit huzzah can they test it out to see if this actually can work on it ? I'm connecting my 3.7v lithium ion battery to bat+ & gnd and pir is connected directly to battery as well.
when i wrote my previous post i did not do this and used the 3.3v pin to power pir and that seemed to cause problems also.
My pir works at 3.3v by bypassing a regulator.
From what i can see by adding numerous serial println's is that the pir pin is being waited for to go low correctly. And i think the ch_pd up works as well. I'm not certain though but i think with the huzzah this is pulled up by default and you have to bring it momentary down and back up to reset.
It does seem to work sometimes but not consistent.
I'm guessing the giberish on the serial line is communication from the esp8266 modules itselve, but i've tried all the baud rates in the combobox in the serial monitor in arduino ide and it stil did not show probably.
So if someone knows if this is possible with huzzah at all or has some time to test it out with their own huzzy and let me know the results it might save me time trying to get it to work since i'm only a beginner and don't know if the huzzah may work with this setup