close
Requirements

  • QBoat Sunny

    • QIoT Suite Lite

    • QUSBCam2



  • MediaTek LinkIt 7697

  • Relay and power plug (Refer to this article: Web Controlled Socket by Arduino written by LaiSan.) Follow the instructions to install the relay and power plug.

  • USB webcam

  • AP Wireless Router

  • Lamp

  • A Facebook account


 

Diagram

圖片1
Principles

 

The MediaTek LinkIt 7697 is the HTTP Wi-Fi controller. You can decide to turn the relay on or off after receiving an HTTP request. AC power on as replay on, AC off when the relay is off.

 

The MediaTek LinkIt 7697 connects to the input switch of reply by P3, and provides 5VDC and GND for operating the relay module.

 

The AP wireless router allows QBoat Sunny and the MediaTek LinkIt 7697 to communicate with each other, and QBoat Sunny can get a fixed IP and web address from WAN from the myQNAPcloud service.

 

There are various chatbot applications scenarios. It is possible to build a chatbot (for Facebook Messenger) using Chatfuel. You can view footage from a USB webcam on QBoat Sunny by sending a HTTP request, you can also send a request to turn on or off lights to QBoat Sunny to let it decides actions. Then it will send the footage to the chatbot after it turns the lights on or off.

 

 

Code:

https://github.com/blackmesataiwan/qboat_chatbot_control

 

 

We hope you have enjoyed this tutorial. Stay tuned for more tutorials and scenarios. You can also subscribe to our YouTube page at https://www.youtube.com/user/qnapsys

 
arrow
arrow
    全站熱搜

    tttt 發表在 痞客邦 留言(1) 人氣()