WiFi

Brief

Sentry2 has an on-board ESP8285-WiFi chip which can be programmed by Arduino IDE directly to realize online-recognition, image transmission, AIoT and other applications. ESP8285 can be used as a controller for K210 which is help for AI programming without external device.

Development Environment

Add ESP8266 Board

Firstly, Download and install Arduino IDE:

https://downloads.arduino.cc/arduino-1.8.19-windows.exe

Run Arduino IDE and Open “File” >“Preference”

../../_images/esp8285_setup_en_01.jpg

Input the URL to “Additional Boards Manager URLs” and click “OK”

http://arduino.esp8266.com/stable/package_esp8266com_index.json

../../_images/esp8285_setup_en_02.jpg

Open“Tools”>“Board”>“Boards Manager”

../../_images/esp8285_setup_en_03.jpg

Search “esp8266” and click “Install”

../../_images/esp8285_setup_en_04.jpg

Simple Test

Open “Tools”>“Board”>“ESP8266”>”Generic ESP8285 Module”

Sentry2/WiFi/images/esp8285_setup_en_05.jpg

Open “File”>“Examples”>“ESP8266”>“Blink”

../../_images/esp8285_setup_en_06.jpg

Connect Sentry2 to PC via an USB-TypeC cable. Open “Tools” and do seme settings as shown in the bellow Buildin Led:“4” CPU Frequency:“80MHz” or “160MHz” Upload Speed:“57600” Reset Method:“no dtr (aka ck)” Poart:“COM xx”(The USB Com Port)

../../_images/esp8285_setup_en_07.jpg

Push the Stick button downward and hold it(NOT Vertical Press), Click “upload” to start compiling and uploading, hold the Stick button downward until the screen shows the xx% progress.

../../_images/esp8285_setup_en_08.jpg ../../_images/esp8285_setup_en_09.jpg

Wait firmware uploading until 100%

../../_images/esp8285_setup_en_10.jpg

Restart the Sentry and runs the “Custom” vision, the Blue WiFi LED will be keep bright and the Custom LED will be blink.

../../_images/esp8285_setup_11.png ../../_images/esp8285_setup_12.png

WiFi Demo

Some open source WiFi programs are provided.

NOTE: The third-part AI Cloud Service may require an account or payment for use. Please read the terms of use carefully

NOTE: These demos are only used as a reference for the use of WiFi function, and does not provide a guarantee for the identification performance, security, or availability

Bemafa AIoT - Image Upload

Arduino Code: sentry2_esp8285_bemfa_image_transfer.zip

../../_images/demo_pic_bemfa_01.png

Bemfa AIoT - MQTT for Sentry2

Arduino Code: sentry2_esp8285_bemfa_mqtt_run_vision.zip

../../_images/demo_pic_bemfa_02.png ../../_images/demo_pic_bemfa_03.png ../../_images/demo_pic_bemfa_04.png ../../_images/demo_pic_bemfa_05.png

Baidu AI - Ingredient Classify by URL

Arduino Code: sentry2_esp8285_baidu_ingredient_classify_by_url.zip

../../_images/demo_pic_baidu_01.png

Baidu AI - Ingredient Classify by Image

Arduino Code: sentry2_esp8285_baidu_ingredient_classify_by_image.zip

../../_images/demo_pic_baidu_02.png

Baidu AI - License Plate

Arduino Code: sentry2_esp8285_baidu_ocr_license_plate_by_image.zip

../../_images/demo_pic_baidu_03.png

Baidu AI - OCR-Optical Character Recognition

Arduino Code: sentry2_esp8285_baidu_ocr_general_basic_by_image.zip

../../_images/demo_pic_baidu_04.png

Baidu AI - General Object Classify

Arduino Code: sentry2_esp8285_baidu_general_by_image.zip

../../_images/demo_pic_baidu_05.png

Baidu AI - Gesture

Arduino Code: sentry2_esp8285_baidu_gesture_by_image.zip

../../_images/demo_pic_baidu_06.png

Microsoft Azure - General Object Classify

You need an Azure account to use this demo. Details at Azure Homepage: https://azure.microsoft.com/en-us/

Arduino Code: sentry2_esp8285_microsoft_azure_detect_objects_by_image.zip

../../_images/demo_pic_azure_01.png

Image Transmission and Remoter

Arduino Code: sentry2_esp8285_image_transfer_remoter.zip

../../_images/demo_pic_remoter_01.png ../../_images/demo_pic_remoter_02.png

Enable Vision from WiFi Chip

Arduino Code: sentry2_esp8285_run_vision.zip