Difference between revisions of "BPI-Smart"
(→BPI-Webduino Smart Wi-Fi Setup) |
|||
(15 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | [[zh:BPI-Smart STEAM教育开发板]] | ||
= Introduction= | = Introduction= | ||
+ | |||
+ | [[File:Smart-01-03.gif|thumb|Overview]] | ||
+ | [[File:Webduino_smart_case_1.JPG|thumb|Overview]] | ||
+ | |||
+ | [[File:Leaf-S3-incline-front.jpg|thumb|[[BPI-Leaf-S3]] with ESP32-S3]] | ||
+ | [[File:BPI-Centi-S3_2.jpg|thumb|[[BPI-Centi-S3]] with ESP32-S3 front]] | ||
+ | [[File:BPI-AI_1.JPG|thumb|[[BPI-AI]] Kendryte K210 RISC-V]] | ||
+ | [[File:ESP32_6.JPG|thumb|[[BPI-UNO32]] with ESP32 design]] | ||
BPI-Smart is a ground-breaking development board. | BPI-Smart is a ground-breaking development board. | ||
− | The '''BPI-Smart''' (also referred to as '''BPI:Smart''', stylised as '''webduino:Smart''') is an | + | The '''BPI-Smart''' (also referred to as '''BPI:Smart''', stylised as '''webduino:Smart''') is an ESP8266 with Xtensa 32bit LX6 single/dual-core processor based embedded system. support Webduino and arduino function. |
= BPI:Smart hardware = | = BPI:Smart hardware = | ||
Line 38: | Line 47: | ||
Provide power to your Webduino Smart so the board can be found on your PC, laptop, or mobile device. (At first the red light on the board will blink, then it will stay on once it is ready.) | Provide power to your Webduino Smart so the board can be found on your PC, laptop, or mobile device. (At first the red light on the board will blink, then it will stay on once it is ready.) | ||
+ | |||
+ | [[File:Smart-02-02.jpg]] | ||
+ | |||
+ | Connect to "Smart" by Wi-Fi, and type in the default password of 12345678. Now the board will be connected. | ||
+ | |||
+ | [[File:Smart-02-03.jpg]] | ||
+ | |||
+ | *Step 2: Set Up SSID & Password for Wi-Fi, and Device ID | ||
+ | |||
+ | Open your internet browser (we recomend you use Chrome) and type 192.168.4.1 into the address bar. You will be directed to the setup page for the Webduino Smart. Fill in the Wi-Fi information and router ID. Here the SSID & PW is referring to your AP's Wi-Fi. | ||
+ | |||
+ | [[File:Smart-02-04.jpg]] | ||
+ | |||
+ | Press the "Submit" button, and the setup is successful when "Save OK" is showed on the screen. | ||
+ | |||
+ | [[File:Smart-02-05.jpg]] | ||
+ | |||
+ | *Step 3: Connect to LAN | ||
+ | |||
+ | After you have a successfully competed Steps 1 & 2 and Wi-Fi is setup, remove the power to your Webduino Smart, then plug it in again. The red light on your board will not stop blinking until your board has connected to LAN. Once it connects to LAN, the green light will flash. Now you can find Smart_your device ID_192.168.XXX.XXX under your Wi-Fi access points. Please take note of the IP address, which is the IP you need to use WebSocket. If the red light does not stop blinking, you need to restart the setup from Step 1. | ||
+ | |||
+ | [[File:Smart-02-06.jpg]] | ||
+ | |||
+ | *Step 4: Test Webduino Blockly | ||
+ | |||
+ | Open the page https://blockly.webduino.io/?lang=en to access Webduino Blockly. Drag a board block onto the workspace, choose "WebSocket" in the drop down list, and type in your IP. WebSocket has some limitions when using "https"; therefore, you have to link to "http" instead. | ||
+ | |||
+ | [[File:Smart-02-07.jpg]] | ||
+ | |||
+ | Next, combine an RGB LED (CATHODE) block, located under "Components", set the red pin to 15, the green pin to 12, and blue pin to 13. Finally, set the RGB LED color to "Red". | ||
+ | |||
+ | [[File:Smart-02-08.jpg]] | ||
+ | |||
+ | Press "Run Blocks" and then the LED will light on in red. Check your stack setup with this example here: http://blockly.webduino.io/#-KbJUDpxOP4DtqhWwR82 | ||
+ | |||
+ | [[File:Smart-02-09.gif]] | ||
+ | |||
+ | *Step 5: Update Firmware Through the Internet | ||
+ | |||
+ | Once you've successfully completed Step 3, which means your Webduino Smart is able to connect to Internet, you can easily update the firmware on your Webduino Smart. While connected to power, PRESS and HOLD the Micro Switch button until the blue light comes on. This will update the firmware. | ||
+ | |||
+ | [[File:Smart-02-10.jpg]] | ||
+ | |||
+ | After finishing the update, the blue light will turn off and the red light will blink, showing that it is connecting. Finally, a burst of green light means you can start using your Webduino Smart with updated firmware. | ||
+ | |||
+ | [[File:Smart-02-11.jpg]] | ||
=doc= | =doc= |
Latest revision as of 01:50, 6 March 2023
Contents
Introduction
BPI-Smart is a ground-breaking development board.
The BPI-Smart (also referred to as BPI:Smart, stylised as webduino:Smart) is an ESP8266 with Xtensa 32bit LX6 single/dual-core processor based embedded system. support Webduino and arduino function.
BPI:Smart hardware
BPI:bit hardware description
BPI-Smart Board dimensions: 3cm in length, 2.5cm in width, 1.3cm in height, and a weight of 85 grams. Digital pins: 0, 2, 4, 5, 14, and 16. PWM pins: 12, 13, 15. Analog Pin: AD \(A0\). Other pins: TX, RX, 3.3V, VCC, RST, and GRD.
The front and back images:
Hardware interface
BPI-Smart has a photocell sensor, an RGB LED, and a micro switch button onboard. The photocell is connected to the AD pin, and the RGB (Red, Geen, Blue) LED is connected to pins 15, 12, and 13 respectively (The LED is a common cathode, whereas most of the examples on this site use common anode RGB LED.) And the micro switch button is connected to pin 4. Please take note when you use these pins.
PIN define
Software
BPI-smart for webduino
Factory default burning image is for webduino, so we can use webduino allfuncion .
BPI-Webduino Smart Wi-Fi Setup
Before you start using your Webduino Smart, you must set up your WiFi. The main purpose of this setup is to enable Webduino Smart to connect to the Internet or WebSocket. Using this setup, you can define the board's name and password, and update it through the Internet.
- Step 1: Plug In, and Enter the SSID & Password
Like the Webduino Mark 1 & Webduino Fly, Webduino Smart has to connect to Wi-Fi by setting up an SSID & password. However, Webduino Smart can be used in both Internet Protocol and WebSocket Protocol, which means that the devices can be used with LAN.
Provide power to your Webduino Smart so the board can be found on your PC, laptop, or mobile device. (At first the red light on the board will blink, then it will stay on once it is ready.)
Connect to "Smart" by Wi-Fi, and type in the default password of 12345678. Now the board will be connected.
- Step 2: Set Up SSID & Password for Wi-Fi, and Device ID
Open your internet browser (we recomend you use Chrome) and type 192.168.4.1 into the address bar. You will be directed to the setup page for the Webduino Smart. Fill in the Wi-Fi information and router ID. Here the SSID & PW is referring to your AP's Wi-Fi.
Press the "Submit" button, and the setup is successful when "Save OK" is showed on the screen.
- Step 3: Connect to LAN
After you have a successfully competed Steps 1 & 2 and Wi-Fi is setup, remove the power to your Webduino Smart, then plug it in again. The red light on your board will not stop blinking until your board has connected to LAN. Once it connects to LAN, the green light will flash. Now you can find Smart_your device ID_192.168.XXX.XXX under your Wi-Fi access points. Please take note of the IP address, which is the IP you need to use WebSocket. If the red light does not stop blinking, you need to restart the setup from Step 1.
- Step 4: Test Webduino Blockly
Open the page https://blockly.webduino.io/?lang=en to access Webduino Blockly. Drag a board block onto the workspace, choose "WebSocket" in the drop down list, and type in your IP. WebSocket has some limitions when using "https"; therefore, you have to link to "http" instead.
Next, combine an RGB LED (CATHODE) block, located under "Components", set the red pin to 15, the green pin to 12, and blue pin to 13. Finally, set the RGB LED color to "Red".
Press "Run Blocks" and then the LED will light on in red. Check your stack setup with this example here: http://blockly.webduino.io/#-KbJUDpxOP4DtqhWwR82
- Step 5: Update Firmware Through the Internet
Once you've successfully completed Step 3, which means your Webduino Smart is able to connect to Internet, you can easily update the firmware on your Webduino Smart. While connected to power, PRESS and HOLD the Micro Switch button until the blue light comes on. This will update the firmware.
After finishing the update, the blue light will turn off and the red light will blink, showing that it is connecting. Finally, a burst of green light means you can start using your Webduino Smart with updated firmware.