Introduction: $4 WiFi Door Alarm Using a ESP8266 #IoT

In this IoT project I will show you how to make a WiFi door alarm that alerts you wherever you are!

I had his idea of designing a wifi enabled door alarm after a friend's house was broken into.

Here is a quick overview of how it works: we reuse the reed sensor of a door alarm and hook it to the reset pin of a wifi module. When the door opens the magnet enter in the detection zone of the reed sensor, it wakes up the wifi module which runs a script that sends an event to your IFTTT.com account, and goes back to sleep. IFTTT do its magic to send you an email, a SMS or any alert you previously configured.

This alarm can potentially be placed on any kind of door.

This Instructables is quite long because I tried to detail the steps the most I could. Don't be afraid, it's actually simpler than it looks! :)

A software update is also available for this Instructable: IoT Door Alarm UPGRADED.

Step 1: Spend a Bit Less Than 4 Bucks

Material list

  • A wifi module: ESP8266 (I recommend using the ESP-07 but it can be any version) < $2.50 on ebay.
  • A cheap door alarm that works with 2 AAA batteries < $1.50 on ebay.

The ESP8266 is a very cheap'n'small wifi module. It has awesome capabilities, you can use the onboard microprocessor to run your own program so you don't need an additional one like an Arduino or a RaspPi! Also its low power consumption allows it to run on 2 AAA batteries.

We are using a cheap door alarm because it provides the adequate enclosure with batteries holder, on/off switch and of course a reed sensor.

You will also need the folowing tools:

  • A computer
  • Regular soldering tools
  • Screwdrivers
  • Wires
  • An Arduino Uno* or a USB-FTDI module for flashing the ESP8266 firmware

* with a DIP chip so it can be removed

Step 2: Connect the ESP8266

You will need a 3.3V FTDI or an Arduino (removing the microprocessor from its socket) for flashing the ESP8266 firmware.

Connect the ESP8266 to your Arduino as described in the diagram and in this table:

ESP8266 pinFTDI pinArduino pin
RxTxRx
TxRxTx
GNDGNDGND
GPIO15*GNDGND
GPIO0**GNDGND
GPIO2*3.3V3.3V
VCC3.3V3.3V
EN (CH_PD)3.3V3.3V

* sometimes those pins are not available depending on you ESP8266 version, if so ignore them.
** this pin is connected to ground only for flashing purpose. Disconnect it once done with flashing.

Step 3: Flash the Basic ESP8266 Firmware

Here is the tricky part!

There are multiple, sometimes tedious, steps to follow but don't worry, you have to do this only once and this is because I detailed a lot!

Here are the steps to flash the Basic firmware into your ESP8266, using Linux, Mac or Windows:

  • Linux and Mac:
    1. Install EspTool following "Installation / dependencies" section here.
    2. Download the awesome ESP8266 Basic firmware here and unzip the file.
    3. Plug the FTDI or the Arduino to your computer and test the connection:
      • In a terminal run:
        ls /dev/tty*usb*

        and look for the name of your USB port.

      • Replace tty.usbserial-A50285BI with your USB port name and run:
        sudo python esptool.py --port /dev/tty.usbserial-A50285BI flash_id
    4. If everything went well you should see something like this:
      Connecting...
      Manufacturer: e0
      Device: 4014
    5. In the folder Flasher/Build/ of the ESP8266 Basic you downloaded previously you should see several folders: 4M, 2M, 1M, 512k. Those represent the firmware for several memory configuration of the ESP8266 board.
      Upload the Basic firmware to your ESP8266 running:
      sudo python esptool.py --port /dev/tty.usbserial-A50285BI write_flash 0x00000 path/to/Flasher/Build/4M/ESP8266Basic.cpp.bin

      Replace path/to/Flasher/Build/4M/ESP8266Basic.cpp.bin with the correct path.
      If you know the memory configuration of your board replace 4M with the correct value. If you don't we can guess it doing a test later.

    6. Wait 30 seconds and on your computer or any wifi device look for a WiFi AP called ESP and pair with it. Open the url http://192.168.4.1/filemng in a browser. You should see a list of .dat and .bin files. If you don't, it means that you uploaded the firmware with the wrong memory size (4M in place of 1M for instance). In that case unplug and replug the USB and return to step 5 using the next lower memory value.
    7. Click on the [SETTINGS] link. You should see the Basic GUI stored inside ESP8266 which allows you to configure and program it. Connect it to your local wifi network filling the Station Mode fields (see documentation here) and press the Save button.
    8. Unplug the FTDI or Arduino from your computer
    9. Remove the connection of GPIO0 to GND
    10. Replug the FTDI or Arduino to your computer and after less than 6 seconds run the command:
      screen /dev/tty.usbserial-A50285BI
      If you are lucky you should see the ESP8266 IP address:
      1
      2
      3
      ...
      6
      
      Connected to you_AP_SSID
      IP Address : 192.168.3.x
      WIFIname
      WIFIpass
      file open failed
    11. Remember it and try to connect to this IP address with a web browser, you should see the same GUI.
    12. It is recommended to configure your router so the DHCP server associate a fix IP address to your ESP8266 (see your router's documentation).
  • Windows:
    1. Go to the Basic page and download the appropriate flasher for your operating system.
    2. Open a terminal (cmd) and enter the PowerShell by runing:
      powershell
      Then identify your COM port:
      [System.IO.Ports.SerialPort]::getportnames()
    3. Plug the FTDI or the Arduino to your computer and upload the Basic firmware to your ESP8266 following the flashing instructions.
    4. Wait 30 seconds and on your computer or any wifi device look for a WiFi AP called ESP and pair with it. Open the url http://192.168.4.1/filemng in a browser. You should see a list of .dat and .bin files. If you don't, it means that you uploaded the firmware with the wrong memory size (4M in place of 1M for instance). In that case unplug and replug the USB and return to step 3 using the next lower memory value.
    5. Click on the [SETTINGS] link. You should see the Basic GUI stored inside ESP8266 which allows you to configure and program it. Connect it to your local wifi network filling the Station Mode fields (see documentation here) and press the Save button.
    6. Unplug the FTDI or Arduino from your computer
    7. Remove the connection of GPIO0 to GND
    8. Replug the FTDI or Arduino to your computer and after less than 6 seconds run the PowerShell command:
      $port=new-Object System.IO.Ports.SerialPort COM1,9600,None,8,one;$port.open();while(1 -ne 0){$port.ReadLine();}
      replacing COM1 with your port name. If you are lucky you should see the ESP8266 IP address:
      1
      2
      3
      ...
      6
      
      Connected to you_AP_SSID
      IP Address : 192.168.3.x
      WIFIname
      WIFIpass
      file open failed
    9. Remember it and try to connect to this IP address with a web browser, you should see the same GUI.
    10. It is recommended to configure your router so the DHCP server associate a fix IP address to your ESP8266 (see your router's documentation).

References:

Step 4: Create a IFTTT Recipe

We will need a kind of bridge/gateway to send an alert to a mobile phone when the door alarm detects an intrusion.
For this we can use the wonderful ifttt.com. Create an account (or sign in) and follow the steps to create a recipe that will send an alert when triggered:

  1. Got to My Recipes and push Create a Recipe.
  2. Click on This and enter Maker in the search box. Click on the Maker channel icon.
  3. You might be asked to connect to that channel: push Connect. then push Continue to the next step.
  4. Click on Receive a web request trigger.
  5. Enter an event name, front_door for instance and push Create Trigger.
  6. Click on That and enter Gmail.
  7. You might be asked to connect to that channel: push Connect and follow the steps in the popup window.
  8. Push Continue to the next step.
  9. Click on Send an email action.
  10. Fill the fields:
    • To address: the email addresses of the people you want to be notified
    • Subject: something like: Home intrusion alert: {{EventName}}
    • Body: something like: Your {{EventName}} was opened on {{OccurredAt}}.
  11. Push Create action.
  12. Enter a meaningful name for your recipe like: If front door is opened, then send me an email #doorAlarm, and Push Create recipe.

Your recipe is set up, before going to the next step you need to recall 2 things:

  • Your Maker private key (go to the maker channel if you don't remember it)
  • Your event name, front_door in this case.

In this recipe I used the Gmail channel. If you don't have a Gmail account you can look for the Email channel. Also, if you prefer to use another/an additional way to be notified (like Tweeter, Facebook or even a phone call or a SMS!) feel free to do so!

Step 5: Program the ESP8266

This is time to write our custom code. The ESP8266 must be kept connected to power (3.3V) and optionally to the computer (Rx and Tx) if you want to track the logs.

  1. Go to your ESP8266 URL then Click on [EDIT]. Copy and paste the following code replacing the parameters {event_name} and {your_Maker_key} (including curly braces) with your values:
    print "-------------------"
    print "Sending request"
    print wget("maker.ifttt.com/trigger/{event_name}/with/key/{your_Maker_key}")
    print "Going to sleep"
    print "-------------------"
    Sleep 0
  2. Push Save
  3. Go to [SETTINGS], enable Run default.bas at startup and push Save
  4. Push Restart

You should receive an email alert very soon! If you don't: look at the logs, they might be helpful.

Here is a description of what we are doing:

  • when the ESP8266 boots, it connects to the wifi network and runs default.bas (this is the program we just wrote),
  • then, the url corresponding to our recipe's trigger is browsed and the response is returned by wget to the console via the print function, IFTTT do its magic sending an email,
  • right after receiving the response, the ESP8266 goes to deep sleep "forever".

In the next step we will connect the reed switch to the RST (reset) pin of the ESP8266 so it wakes it up when the door opens.
Each time the ESP8266 is woken up, it runs the program and goes back to deep sleep. This way we can save a lot of power and increase significantly the battery life!

I recommend "disabling" the ESP8266 power LED, if any, so it will save even more power (desolder it, or destroy it with small pliers).

Theoretical power consumption values:

StatusPower consumption[1]
Runningfrom 50mA to 170mA
Deep Sleep10μA
Experimental values:
StatusPower consumption[2]
Running72mA
Deep Sleep0mA

A regular alkaline AAA battery has a capacity of 1,000mAh[3], the average time needed to send the alert and go back to sleep is 32s[2] this leads to think that our alarm could potentially work for 1,500+ times. This is obviously larger than the reality as the battery voltage decreases during consumption preventing the ESP8266 to work normally. Some experimental tests must be made, feel free to comment!

[1]: ESP8266 data sheet.
[2]: Obtained using a INA219 with a 7ms logging rate.
[3]: Wikipedia

Step 6: Hack the Door Alarm Hardware

Open the door alarm enclosure and do some hacking:

  1. Remove the flat speaker
  2. Remove the autotransformer
  3. Isolate the alarm chip by cutting the tracks on the printed board

Solder the following connections:

ESP8266 pinDoor Alarm pin
GNDBattery holder GND
VCCPower switch output
RSTReed sensor

Additionally do the following:

  • Connect the second pin of the reed sensor to the battery holder ground
  • Connect the battery holder 3.3V wire to the power switch input
  • Wrap the ESP8266 in some electrical tape to prevent shorts

I recommend to do some tests before putting everything back in the enclosure:
Put 2 AAA new batteries in the slots.
When the RST pin is connected to GND it disables the ESP8266, this is why we need a pulse rather than a falling edge. To trigger a wakeup just bring the magnet close to the reed sensor and then back it off. Verify that you receive the alert. If you don't: check your wirings.

Once your tests are conclusive try to pack everything inside the original enclosure and screw the cover back on.

In the next step I will show you how to simulate the pulse when the door opens.

Step 7: Stick It on Your Door and Have Fun!

Now that we know our device is working as expected, we have to install it properly.

As described in the previous step, we need a pulse on the RST pin of the ESP8266. If we leave the RST pin connected to GND it will prevent the boot from loading, this is why I didn't use a pull-down resistor.

To simulate the pulse we will stick the part of the door alarm that goes on the door frame (either the body or the magnet depending on the opening side of your door) an inch away so the magnet is not activating the reed sensor while the door is closed. However, when the door opens, the magnet will enter in the activation zone of the reed sensor and then leave it as we continue to open the door. This will create a pulse Open-Closed-Open (the reed sensor is Normally Open) which corresponds to a momentary connection of pin RST with GND.

Test it ... you're done!

Step 8: Conclusion

This device has some obvious flaws: when the batteries run out, when the wifi/internet is not working etc. and you'll understand that it is not 100% reliable.
However, it is cheap, fun and relatively easy to make.

Now you can think of much more applications of the ESP8266, be creative!

I hope you enjoyed this Instructables, don't hesitate to put some comments with a picture of your own project!

Edit Oct. 2016: A software update is also available for this Instructable: IoT Door Alarm UPGRADED.

Comments

author
pankajjain369 (author)2017-08-09

Hi, I simply love this. What is your opinion on other wireless methods like Bluetooth or IR? If you have done something of that sort please share.

author
ClemRz (author)pankajjain3692017-08-09

Thx. Will do one day!

author
kavish laxkar (author)2017-05-12

gr8

author
JoãoB79 (author)2017-05-02

Hi, i'm new to eletronics, and i like this post, but my sensor is a little diferent, i can´t cut the chematic in the same way (as photo 3), can anyone help with the wiring for ESP8266 in the image layout.. or if i need to do some cuts in the circuit,

Thanks;

IMG_20170502_233134.jpg
author
ClemRz (author)JoãoB792017-05-05

Hi,

Here is a graphic explanation. I hope this helps. Feel free to ask for more help/details!

Good luck and happy hacking! :)

circuit.jpg
author
ClemRz (author)ClemRz2017-05-05

I forgot to mention that you need to cut the circuit on the blue lines.

author
JoãoB79 (author)ClemRz2017-05-07

Hi, thanks for your time to analize, see the attach with other side... i don´t understand one thing, the "to BAT GROUND" and "to ESP VCC" in the layout are the pins that support de button... is that the correct connection??
I send the photo of the button too.
Thanks..

IMG_20170507_130603.jpgIMG_20170507_131400.jpg
author
ClemRz (author)JoãoB792017-05-08

Hi,

You are right, don't connect it as I told or you will make a short circuit :D

Your plate is quite strange, usually there is a bulb with 2 close wires inside, this is the reed sensor. In your case the bulb has been omitted. I don't even know how if the original alarm would work this way.

I added a cut to isolate GND and VCC. Do not cut the one at the bottom, I covered it with green line.

Good luck.

circuit.jpg
author
ClemRz (author)JoãoB792017-05-05

Could you post a photo of the other side of the board please? I want to double check, I suddenly had a doubt about one thing.

author
hemanth kumar reddy (author)2017-03-14

Can you plz look at this

https://www.instructables.com/community/security-s...

small help thanks

author
jimfaith2001 (author)2017-03-08

the power required by ESP is 3.3V. How can it work with 2 AA battery. The total is just 3v.

author
ClemRz (author)jimfaith20012017-03-08

It depends on how your batteries are charged. Have you tried to measure the voltage? Also ESP allows a certain range for VCC, have you checked the datasheet?

author
jimfaith2001 (author)ClemRz2017-03-09

How long does the 2 batteries last ?

author
ClemRz (author)jimfaith20012017-03-09

It depends on how many times you fire the alarm, how long you wait between each firing etc.

As a reference, I can run my alarm with the firmware update (see last step), on 2 AAA during 27 days with a firing average of 19 times a day (total 521 times) (I left it on intentionally). I believe that with 2 AA you can do better!

author
BradVrudney (author)2017-02-26

Hello, I'm working on this instructable with my son, and I'm new to wiring electronics. I was able to wire the ESP because all the pins are labeled. I'm struggling, however, with the actual alarm circuit, because it isn't labeled. Could you please provide a diagram or picture of the two wired together? I am using all of the same components that you have suggested in your tutorial. Thanks!

author
ClemRz (author)BradVrudney2017-02-27

Hi Brad,

There is a closeup picture in step #6 of the circuit showing where to do the cuts. When you click on the picture you will see that I labeled several pins.

I hope it will help. If you have any doubt feel free to contact me again!

Thanks.

author
KevinV126 (author)2017-01-26

I think it's better to use a NC reed switch, since otherwise you'll be putting ground on the RST pin and the ESP won't be able to enter deep sleep if the door was closed too quickly. And in case the door is closed too quickly, the push notification is not sent. With a NC reed switch you wouldn't have this problem.

Thanks for the project! I made it but I just replaced the NO with an NC reed switch.

author
ClemRz (author)KevinV1262017-01-27

Hi, I don't get why the notification wouldn't be sent if you close the door too quickly?
Caution: the magnet should never activate the reed sensor when the door is fully closed.
If you use a NC reed switch you will need to add a pull down resistor I guess...

From my perspective, if you close the door before the notification is sent then the ESP get reset and the programme is reinitialised, executing it since the beginning again and the notification should be sent without problem, after that the ESP enters deep sleep mode.

If you have any doubt feel free to go to step #7 and read closely the instructions.

Thanks

author
CarlosS264 made it! (author)2016-12-05

Long time since i meet you at Nearsoft!

Finally i have the time to finish this!

i used the upgrade tutorial, and was super easy to connect with arduino IDE

it was super fun to do this! hope you win the contest...

Thanks for all Clément!

ot's

IMG_20161205_034714.jpgIMG_20161205_031517.jpgIMG_20161205_035157.jpg
author
WannaDuino (author)2016-10-18

how to re enter the key for the code? i put a wrongkey in.

and now he is in DEEP SLEEP. and no way to wake it up.? pleace can you respond in time if possible.

then i can re asemble it.

and can say I MADE IT!

and o yes i make a seccond 1 also. for my little brother.

author
ClemRz (author)WannaDuino2016-10-18

Hi, just reset it, it will wake it up. To do a reset, just connect RST to GND or, if you have the reed sensor connected move the magnet close enough to activate it and move it away.

author
WannaDuino (author)ClemRz2016-10-18

i already have it run, but reset? i only can unplug the usb,my reset button on the UNO does not respond. but i dont need it anymore.
but i have some very importand qustions you also, but no response only the other ones from you.
about the timing ( in know of your UPDATE)
and MUST I DESOLDER MY gpo and GND? yes or no.
and re place it with tthe NEW gnd wire to the battery holder.

or can i just let it so?
and how to ad aditional function (sms or call) as extra future.?
pleace be as specific as you can,becous i can not follow you messges totaly, but thats my problem with the understanding. i realy are a beginner.
and pleace read my other qustions also,

author
ClemRz (author)WannaDuino2016-10-18

do you have more unresolved questions?

author
WannaDuino (author)ClemRz2016-10-18

YES,

how i ever can thank you!

for all your help and TIME. and EFFORD

i hope i get it done tomorrow.

but yes a question i have, how do i see the logs in adrduino? becous if i select my port, and click on serial monitor. its blank, what must i put in there to see the logs? becous i did 1 time the 1e commando to show COM port or so. and nothing happens.when i clickt on send.

author
ClemRz (author)WannaDuino2016-10-19

Hi, to see the logs via Arduino IDE you need to follow this tutorial:
https://learn.sparkfun.com/tutorials/esp8266-thing-hookup-guide/installing-the-esp8266-arduino-addon

Than you will have to close any other program that would have the same COM port open. Then open the Serial Monitor clicking on the magnifier icon (see attached pictures) and set the bauds rate to 9600. If you have any issue feel free to ask.

Screen Shot 2016-10-19 at 8.28.06 AM.pngScreen Shot 2016-10-19 at 8.26.44 AM.pngScreen Shot 2016-10-19 at 8.26.42 AM.png
author
ClemRz (author)WannaDuino2016-10-18

to add more functions just create new recipes in IFTTT with the same trigger

author
ClemRz (author)WannaDuino2016-10-18

the reset must be performed on the ESP, not the ardduino

author
ClemRz (author)WannaDuino2016-10-18

you can replace the ESP GND wire to battery holder GND

author
ClemRz (author)WannaDuino2016-10-18

Hi, the connection between GPIO0 and GND has to be removed once you flashed it successfully.

author
ClemRz (author)WannaDuino2016-10-18

You just have to reset it, then go quickly to the IP and uncheck the "run default.bas at startup". Then change and save your program. Go back to the settings and check the "run default.bas at startup". And reset it again.
You are very close!

author
WannaDuino made it! (author)2016-10-18

UPDATE3

it works and its almost done.

do i need to desolder the gpo thats concted with ground? and re place with new ground wire?(to battery base)

and if you close the door direct lets say 3-4 seconds, it wil not send a mail.only when you hold the door MUTCH longer open.

i wil time it, in monitor mode.CAN THAT QUICKER???????

Every burgeler wil inmidiatly close the dore when they enter.PLEACE ENLIGHTEN ME

i have not desolderd the gpo and ground and just ad with a loose wire the conction with ground of the Reed switch (battery gnd)and solderd the RST to the reed in,

and the out to the negative of battery.\and used the magnet to WAKE UP THE BAsTERD. hahaha,

2 things i made the REED conection, and then you have a little time to quickly go to the ip adress and then i used the reed switch again for some extra time. and saved the code again WITHOUT THE {} things, also that you did not mentiond. if i may be honest, the IBLE is not complete and 100%, i had lots of hick ups becous of that. but now i know almost all.

IMG_3395.JPG
author
ClemRz (author)WannaDuino2016-10-18

Hi, I added the corrections you suggested.

To speed up your alarm please look at my other Instructable: http://www.instructables.com/id/IoT-Door-Alarm-UPGRADED

Remember that when your door is completely closed, the magnet must NOT activate the reed sensor, otherwise it will constantly reset and drain batteries. See step 7.

author
BhushanGawde (author)2016-07-16

its very nyc...can you please send the working code for it!! actually i am stuck somewhere ...need to verify

author
WannaDuino made it! (author)BhushanGawde2016-10-17

this i s where i am stuck now

my switch is OFF

and gnd and gpo are still solderd on pads together

and on my own internet not on the ESP,

and only saved my router name and wpa password. then this is wat i get now

see picture, (it does not load anything, so i am doing somthing wrong.

thank you for your help, sorry friend for all these questions ,,i try to be as specific as i casn be and upload pictures, so other people dont have to ask no more.so i help you to hahahha

IMG_3383.JPGIMG_3381.JPGIMG_3382.JPG
author
ClemRz (author)WannaDuino2016-10-17

I see that you were able to upload the firmware, the UI is displaying correctly. When you hit save and then do a reset, the terminal should show the logs and there you should be able to see the IP attributed by your router to your ESP.

author
WannaDuino made it! (author)ClemRz2016-10-18

UPDATE2

i got it almost ready,

i ad the key and the open door ,

but hee i am WannaDuino, i again put the code faulty in the CODE.

and now i dont see it anymore in the wireless network. the last log that i have see, was the message about the wrong code key and ( GOING TO SLEEP.) yeah funny i know, how the hell do i get this sucker awake?hahaha

but there is where i am now 7 hours total.now.pffffff

now i need your help.

IMG_3394.JPG
author
ClemRz (author)WannaDuino2016-10-18

The key you need is the Maker Channel key: https://ifttt.com/maker
It is right after "Your key is:"

author
WannaDuino (author)ClemRz2016-10-18

UPDATE

I GOT IT AND YES BEFORE YOU ANSWER GNEH GNEH, (I AM HAPPY, i just tryd a copple of times and had an little arguement with the ESP, and now i am the Boss again. i am connected to my network and are in the ESP IP. i got from it.

author
WannaDuino (author)ClemRz2016-10-17

a as the cse ow,

iam stuck here

if i change the COM1 to COM6(my ports of the ESP, its NOT going further it does nothing.(switch is off) when ON, it does not show in wiffi network.

but i had the first time a wrong password, and changed it in the setting ,(in this MODE) maybe i have to do all the stepps again? or am i missing somthing?

author
ClemRz (author)WannaDuino2016-10-17

I don't think you need to do all the steps again. Just make sure it connects to your home network. You can also use the Arduino IDE's Serial Port monitoring with the bauds rate set to 9600. Sometimes it's easier to see the logs that way.

author
WannaDuino (author)ClemRz2016-10-18

i am getting a step further, my WPA was missing 1 letter. OEPSSSSSS!

so i now had 1 time a CONECTION like your picture.

then i tryd the IP adress.(did not work)

i re booted the arduino uno in windows.BUT NOW THE WIFI ESP, is gone it hidding from me to get the job done, (the little basterd.) i reconected usb 2 x with no luck. what now.?(probebly i wil find out before everytime you answer. hahahaha

author
WannaDuino (author)ClemRz2016-10-18

thanx so mutch

but wat do you mean by show logs,

pleace explain how to, i dont get it , i am almost there.

author
WannaDuino (author)ClemRz2016-10-18

thanx so mutch

but wat do you mean by show logs,

pleace explain how to, i dont get it , i am almost there.

author
WannaDuino (author)ClemRz2016-10-17

as you can see first picture (does not go further ) becous it must show IP and 1 2 3 4 5 end so on

but yeah i like this, nothing comes easy,

you rock and are VERY SMART

author
ClemRz (author)BhushanGawde2016-10-17

Hi, the code is included in the Instructable.

author
WannaDuino (author)2016-10-16

i want to solder the cables to the esp- BUT where is the switch for?? and how to use and ? yes i stuck inmidiatly

and i see nothing about that in the explains

author
ClemRz (author)WannaDuino2016-10-17

Hi, the switch is just a way to turn on/off the programming / running mode. It is not strictly necessary, you can just solder a wire between GPIO0 and GND and cut it once you are done uploading the code.

author
WannaDuino made it! (author)ClemRz2016-10-18

answer pleace.

i solderd also the 2 pads of gpo and gnd,(like you did )in picture,

can i leave that and just remove switch?

or did i see it not good on your picture, and MUST remove ALSO the solderpads i CONECTED, see my pictures pleace.

is it bad to leave it just as is now,(and try to get it in the enclosure? or must i just be done to run good?

BECOUS IT RUN JUST FINE like it is, so pleaceeee answer.

IMG_3382.JPGIMG_3395.JPGIMG_3396.JPGIMG_3397.JPG
author
WannaDuino (author)ClemRz2016-10-17

on your picture you also solderd the 2 pads of them, do you leaf iT so? And turn the switch off,

Or also desoldering the 2 pads, to induvidualy pads again?

author
WannaDuino (author)WannaDuino2016-10-17

look at my ground and gpo, solderd together

and my router setting ONLY i put the SSd and WPA.

do i need put more info in there?

IMG_3380.JPGIMG_3381.JPGIMG_3382.JPG

About This Instructable

57,348views

617favorites

License:

Bio: I'm a web developer and I enjoy outdoors a lot
More by ClemRz:Mr. PotatoIrrigation Using Google Calendar!Temp. and RH Data Logger With Wifi UI
Add instructable to: