BPI-Smart is a ground-breaking development board.
The BPI-Smart (also referred to as BPI:Smart, stylised as webduino:Smart) is an ESP32 with Xtensa 32bit LX6 single/dual-core processor based embedded system. support Webduino and arduino function.
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:
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.
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.