Skip to content

Cha0s0000/IOT_wechat-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

IOT_wechat-control

IOT idea


1.Preparing

img

  • A server that can be accessed .In this project ,I used a server SAE which is a quick application of sinaclound.

img


2.Connect ESP8266 with the Arduino Singlechip

img

PIN Explain And connection instruction:

  • TX (UART TX)
  • RX (UART RX)
  • CH_PD (chip power down, should be pulled highto start the chip)
  • RST (reset)
  • GPIO0 and GPIO2 (generalpurpose input/output pins)
  • VCC (power supply 3.3V, max. ~300mA )
ESP8266-01 Arduino
UTXD RX
URXD TX
3.3V 3.3V
CH_PD 3.3V
GND GND

3.Upload program into arduino Singlechip

  • First , download the Arduino IDE

    img

  • use arduino ide to open the file "demo.ino" which under the folder "arduino + esp8266" .

  • modify the code accoding to the code explain,such as the wifi name and password as well as the server ip or hostname.

  • Use usb to connect arduino with the computer and click upload button

    (remember disconnect the rx and tx with the esp8266 while uploading program)


4. Configure the server and database

  • Upload api.php and index.php into server.I reccommend to place this two file in the root of the server.

    note the location of the php file , it will affect the code in arduino

  • set up a new table in database and name it app_smeat8266.After that ,import the file app_smart8266.sql.


5. Configure the Wechat public number

  • visit the wechat website and open the wechat application to scan the QR code so you can login in.

  • input the url of the file index.php and the token you set in the code.

    like this


6. Testing

  • connect esp8266 wifi module with the Arduino mimichip as the step2 above

  • use wechat application scan the QR code and subscribe it

  • send order to the testing number which you set up in the file.php

    IMG_1122.PNG


7. Extend function

  • add more sensors and Motor module instead of the LED
  • add new function of using voice instea of message order
  • develop web so you can do it visualizatly

8. Display more about my achievement

IMG_1015.PNGIMG_0888.PNGIMG_0968.PNGIMG_1102.PNG


The project was done in Chinese , so you may be difficult to understand Comprehensively. If you have any question ,contact me and I will appreciate it .Thanks.

About

## IOT idea

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages