The use of the ESP8266 in the world of IoT

User avatar
By roccomuso
#23668 Hi guys,

I'm trying to power my esp8266 with the LM2596 (set to 3.3v), and it's working great... Now i'd like to connect a PIR Sensor. Using the 3.3v power line (as showed in the picture below).

Image

Now, this kind of connection seems not to be working.. I mean the esp8266 responds correctly, but the PIR sensor doesn't. Why? low power?
User avatar
By tytower
#23686 Some work from 3.3 but if not then use an appropriate power source for it Your buck converter needs to feed the PIR 5V but the ESP8266 3.3V. The earths must all be joined and the sense wire would need to be dropped to 3.3V if you are feeding it to the ESP8266. Resistor divider or two diodes I would suggest. So basically the PIR at 5V senses movement sending the sense wire high which is fed to the ESP8266 digital pin.
User avatar
By sigrokBlack
#23703 I have the same(if it's from banggood,ebay,....)
With 3.3v the sensor hasn't enough power to work correctly, with 5v everything is fine,
use a LM7805 for a powersource over 5v or a cheap step up when you are using a powersource under 5v to get 5v for your sensor.

Joshua