hello all im new to programing arduinos i was wondering is i have a nano esp8266 and pir sensor how would i go about setting up the nano and the eps8266 so i could turn on and off my phillips hue lights via the sensor please any guidance would be a huge help
Number one, make a sketch reading the pir sensor. Example code is often useful.
Why 2 controllers, nano and eps8266?
this is how i connected it however i have the series s idk if it makes a difference and im sorry i have no code i need help getting started on how to communicate the esp8266 to my wifi and send a message to my hue bridge
First You tell about a pir sensor, then post a Fritzing with 2 controllers. Confusing.
It looks like Tx is connected to Tx and Rx to Rx. That will not work.
What have You done, what works and what does not work?
i have not connected the sensor yet im trying to figure out how to connect it to the wifi and i have not programed it yet so i dont know what works like i said im new to this i would appreciate help if your able to provide some on how i can get this thing up and running
In my opinion You ought to step back, and try a lot more easy examples to get accustomed to electronics and controllers.
An ESP8266 is a very capable processor; very well able to read the signal of a PIR sensor (do mind the voltage difference, a PIR usually operates at 5V, the ESP at 3.3V), and then connect to WiFi to send some message. Even the simple ESP-01 module can do this.
Indeed. The ESP-01 has four I/O available.
Mounted in an adapter board, it can simply be plugged into a USB "phone charger" so you have both 5 V and 3.3 V supplied.
Aliexpress item
Connecting to a Nano requires both level shifting - so that diagram in #2 is wrong - and cumbersome code to communicate between the two. Altogether a bad idea.
You do need an adapter to program the ESP-01.
Aliexpress item
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.