[ IOT idea ] remote control Arduino

in #utopian-io8 years ago (edited)

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-01Arduino
UTXDRX
URXDTX
3.3V3.3V
CH_PD3.3V
GNDGND

3.Upload program into arduino Singlechip

  • 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.



Posted on Utopian.io - Rewarding Open Source Contributors



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Anyway thanks a lot. Last time , I was rejected because of the LICENSE file ,which I think it was such a small problem which can not be the reason of why my IOT idea was not approved and it should be reviewed again when I add a LICENSE file in Github.But two days went , it was not reviewed any more.So I edit my last post for explaining ,and I decided to add contribution about this theme one more time,which I think will be permitted.


If any bothering, I apologize to you
@ms10398 @wehmoen