A Smart Water Sensor that sends text messages

A Smart Water Sensor that sends text messages

Theory: https://youtu.be/qxMuVjWwrjI

The esp8266 will log on to your local network. One gpio2 (D4) will go low when water is detected. When the esp8266 detects water it will use http://www.Twilio.com to send an SMS text message to your phone.

Parts List

1. Esp8266 stand-alone unit with water sensor $15, available at https://www.tindie.com/products/edit/text-sending-water-sensor/media/ or from paulware@hotmail.com

2. Esp8266 programmer $10, available at twilio.com or from paulware@hotmail.com

3. 5V usb power supply $3, available from ebay.

Total parts cost: $28

Steps

1.Install cp2102 windows driver (CP210x_VCP_Windows.zip, attached)

2.Connect ground wire to Gpio0, and plug usb to laptop this will place the esp8266 in flash reprogramming mode

3.Run nodemcu_flasher32bit.exe to flash esp8266 with build: nodemcu-master-7-modules-2015-08-01-14-50-12-float.bin

4.Disconnect programmer from laptop, disconnect ground wire and connect pull-up wire to Gpio0 and connect programmer usb to laptop

5.Edit init.lua, modify the SSID and password to match your local network

6.Edit waterTwilio.lua, modify the destination phone number to match your cell phone

7.Edit load.bat to update the correct com port for the eps8266 programmer

8.Double click on load.bat from windows explorer to load init.lua and waterTwilio.lua on esp8266

9.Disconnect programmer from laptop, remove the esp8266 from programmer pcb and place in standalone water sensor pcb

10.Connect the standalone esp8266 to a 5V power supply. Allow 10 seconds to boot up

11.Test the device by applying a drop of water to the sensor

12.You should receive a text message on your cell phone in about 15 seconds

Task 1: Install the cp2102 windows driver

See the attached CP2102 .zip file. Inside of this is a install .exe for a 64 bit windows machine: CP210xVCPInstaller_x64.exe. Run this executable to install the driver

A Smart Water Sensor that sends text messages

CP210x_VCP_Windows.zip

Task 2: Connect ground wire to Gpio0, and plug usb to laptop.

A Smart Water Sensor that sends text messages
A Smart Water Sensor that sends text messages

This will place the esp8266 in flash reprogramming mode

Task 3: Run nodemcu_flasher32bit.exe to flash esp8266 with build: nodemcu-master-7-modules-2015-08-01-14-50-12-float.bin

A Smart Water Sensor that sends text messages

This will also clear the memory of any previous programs and SSID/Password.

A Smart Water Sensor that sends text messages

nodemcu_flasher32bit.exe

A Smart Water Sensor that sends text messages

nodemcu-master-7-modules-2015-08-01-14-50-12-float.bin

Task 4: Disconnect programmer from laptop, disconnect ground wire and connect pull-up wire to Gpio0 and connect programmer usb to laptop

A Smart Water Sensor that sends text messages

This will also prepare the device for normal operation

Task 5: Edit init.lua, modify the SSID and password to match your local network

A Smart Water Sensor that sends text messages
A Smart Water Sensor that sends text messages

init.lua

Task 6: Edit waterTwilio.lua, modify the destination phone number to match your cell phone

A Smart Water Sensor that sends text messages
A Smart Water Sensor that sends text messages

waterTwilio.lua

Task 7: Edit load.bat to update the correct com port for the eps8266 programmer

A Smart Water Sensor that sends text messages
A Smart Water Sensor that sends text messages

load.bat

Task 8: Double click on load.bat from windows explorer to load init.lua and waterTwilio.lua on esp8266

A Smart Water Sensor that sends text messages
A Smart Water Sensor that sends text messages

luatool.py

Task 9: Disconnect programmer from laptop, remove the esp8266 from programmer pcb and place in standalone water sensor pcb

A Smart Water Sensor that sends text messages

Task 10: Test the unit

Connect the standalone esp8266 to a 5V power supply. Allow 10 seconds to boot up

Test the device by applying a drop of water to the sensor

You should receive a text message on your cell phone in about 15 seconds

Task 11:

microcontrollers – A Smart Water Sensor that sends text messages, in category: technology

Written by admin