this is the instruction for Sintron ST-031 Smart controller. with this instruction. you will know how to use ST-031 to remote control with your Smart Device.
requirement:
(1). ST-031 controller with a relay, of course.
(2) you need to have some knowledge to program, using with Arduino IDE.
ps. if you don't know how to program and compile, you can skip STEP 2 and Jump to STEP 3 to upload the firmware directly.
ok, let's get started.
(1) Please download Blynk APP:
(1) Arduino IDE installed in your computer, you can download here: we use version 1.8.5 in this case.
(2) make sure you installed the EPS8266 board installed to your Arduino IDE: we use version 2.4.1 in this case.
(3) make sure you installed the "blynk" library: we use version 0.5.4 int his case.
Download "blynk" library. and install the arduino library.
if you meet any problem and can't compile, you can use the same version as ours.
(1) Download the source code.
and open it with Arduino IDE.
(2) Revise to your own Auth Token, wifi ssid and password.
please revise these 3 lines to your own:
char auth[] = "YourAuthToken";
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";
for example, if your auto token is abc, and you router wifi ssid is def, and password is ghi
then you revise them to :
char auth[] = "abc";
char ssid[] = "def";
char pass[] = "ghi";
(3) prepare to upload ST-031:
make sure the board is ESP8266 and Flash Size is 1M(64K SPIFFS)
make sure the cable for USB programmer is connected: so it enters "flash mode".
make sure you choose the right usb port:
( for windows it would show "com port", for Mac it would show USBxxx, your port name might not be the same as mine )
(4) click upload, below is the video for this process.
video of upload
them it's completed !
now you can open your app, and try to click the button from the APP and see if it works for the relay.
FAQ:
if after the upload and can't work.
try to check below:
1. if the auth token in firmware is correct.
2. if the router wifi is 2.4G, 5G wifi can't work. ( What is 2.4G & 5G for Wifi , this is not the cell phone 5G).
3. if the ssid and password for your router is correct.
content:
your "auth token" ( you got in STEP 1 ), and your router's wifi ssid and password.
( make sure these 3 info included and correct.)
(4) once you receive the file, please upload it directly to ST031. below will show how:
first, use your cell phone to share wifi hotspot with this
ssid: "sintron" --> ps. do not include the symbol "".
and
password "12345678" --> ps. do not include the symbol "".
by default, st031 would connect to this ssid and password after power on.
then you should be able to see ST031 connects to your wifi hotspot.
(5) use your computer to connect to your phone's wifi hotspot too. so that your computer and ST031 connects to the same wifi now.
then open browser ( Chrome or Safari etc..) and use this link:
http://st031-webupdate.local/update
then you can see the upload option.
please select and upload the file we sent to your email. and please don't power off during the update.
then it is done!
requirement:
(1). ST-031 controller with a relay, of course.
(2) you need to have some knowledge to program, using with Arduino IDE.
ps. if you don't know how to program and compile, you can skip STEP 2 and Jump to STEP 3 to upload the firmware directly.
ok, let's get started.
Step 1: APP setup
Blynk Apps for iOS or Android
register and log in first.(2) Create a New Project
After you’ve successfully logged into your account, start by creating a new project.
(3) Choose Your Hardware
in this case, we choose ESP8266, since ST-031 is using ESP8266 chip.
(4) Auth Token
Auth Token is a unique identifier which is needed to connect your hardware to your smartphone. Every new project you create will have its own Auth Token. You’ll get Auth Token automatically on your email after project creation. You can also copy it manually. Click on devices section and selected required device :
please find the auth token in your email, you will need to use it (Step 2) with your code later. you can also see the auth token in the project.
NOTE: Don’t share your Auth Token with anyone, unless you want someone to have access to your hardware.
(5) Add a Widget
Your project canvas is empty, let’s add a button to control our LED.
Tap anywhere on the canvas to open the widget box. All the available widgets are located here. and pick a "Button".
Widget Box
Drag-n-Drop - Tap and hold the Widget to drag it to the new position.
Widget Settings - Each Widget has it’s own settings. Tap on the widget to get to them.
for ST-031, we are using the Digital Pin GP0. so please choose as below, you can also name the button if you would like, and then click OK:
(6) Run The Project
When you are done with the Settings - press the PLAY button. This will switch you from EDIT mode to PLAY mode where you can interact with the hardware. While in PLAY mode, you won’t be able to drag or set up new widgets, press STOP and get back to EDIT mode.
You will get a message saying “ST-031 is offline”. We’ll deal with that in the next section.
OK, good job so far. the APP setup is ok now.
Step 2: upload firmware
before we start, you need to have:(1) Arduino IDE installed in your computer, you can download here: we use version 1.8.5 in this case.
(2) make sure you installed the EPS8266 board installed to your Arduino IDE: we use version 2.4.1 in this case.
(3) make sure you installed the "blynk" library: we use version 0.5.4 int his case.
Download "blynk" library. and install the arduino library.
if you meet any problem and can't compile, you can use the same version as ours.
(1) Download the source code.
and open it with Arduino IDE.
(2) Revise to your own Auth Token, wifi ssid and password.
please revise these 3 lines to your own:
char auth[] = "YourAuthToken";
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";
for example, if your auto token is abc, and you router wifi ssid is def, and password is ghi
then you revise them to :
char auth[] = "abc";
char ssid[] = "def";
char pass[] = "ghi";
(3) prepare to upload ST-031:
make sure the board is ESP8266 and Flash Size is 1M(64K SPIFFS)
make sure you choose the right usb port:
( for windows it would show "com port", for Mac it would show USBxxx, your port name might not be the same as mine )
(4) click upload, below is the video for this process.
video of upload
them it's completed !
now you can open your app, and try to click the button from the APP and see if it works for the relay.
FAQ:
if after the upload and can't work.
try to check below:
1. if the auth token in firmware is correct.
2. if the router wifi is 2.4G, 5G wifi can't work. ( What is 2.4G & 5G for Wifi , this is not the cell phone 5G).
3. if the ssid and password for your router is correct.
STEP 3: upload firmware by file.
PS. if you know how to do STEP 2. then it's not necessary to do STEP 3.
step 3 is for beginner who can't compile and program the code.
we will compile the program the code specially for you. and then you just need to upload it
(1) please prepare your "auth token" ( you got in STEP 1 ), and your router's wifi ssid and password.
(2) please send email with
title: "st031 upload firmware by file"
title: "st031 upload firmware by file"
content:
your "auth token" ( you got in STEP 1 ), and your router's wifi ssid and password.
( make sure these 3 info included and correct.)
(4) once you receive the file, please upload it directly to ST031. below will show how:
first, use your cell phone to share wifi hotspot with this
ssid: "sintron" --> ps. do not include the symbol "".
and
password "12345678" --> ps. do not include the symbol "".
by default, st031 would connect to this ssid and password after power on.
then you should be able to see ST031 connects to your wifi hotspot.
(5) use your computer to connect to your phone's wifi hotspot too. so that your computer and ST031 connects to the same wifi now.
then open browser ( Chrome or Safari etc..) and use this link:
http://st031-webupdate.local/update
then you can see the upload option.
please select and upload the file we sent to your email. and please don't power off during the update.
then it is done!
Step 4: How to control.
now you can use the APP to control it.