ESP8266
ESP8266
802.11 b/g/n Wi-Fi
2.4GHz
4MB
520KB
1x
1x Micro-USB
20
1
USB, Battery, or External Power Source
-40C to 85C
53.5mm x 26.5mm
Software Support
The Wio Link board is compatible with a range of programming languages and development environments, including |
Arduino IDE
MicroPython
Lua
C/C++
Conclusion
The Seeed Studio Wio Link Wireless Development Board is a powerful and versatile IoT development platform that provides a range of features and peripherals to simplify the development of wireless IoT projects. With its compact size, user-friendly interface, and robust processing capabilities, the Wio Link board is an ideal choice for developers, hobbyists, and makers looking to create innovative IoT solutions.
Seeed Studio Wio Link Wireless Development Board Documentation
Overview
The Seeed Studio Wio Link Wireless Development Board is a popular IoT development board designed for wireless prototyping and development. It features a ESP8266 microcontroller, Wi-Fi connectivity, and a range of onboard peripherals, making it an ideal choice for rapid prototyping and development of IoT projects.
Key Features
ESP8266 microcontroller
Wi-Fi connectivity
Onboard Wi-Fi antenna
Micro-USB interface for programming and debugging
3.3V voltage regulator
10 digital GPIO pins
1 analog input pin
Support for I2C, I2S, SPI, and UART protocols
Programming Languages
The Wio Link board can be programmed using a variety of languages, including:
MicroPython
C/C++
Lua
NodeMCU
Code Examples
### Example 1: Wi-Fi Connection and HTTP Request using MicroPython
This example demonstrates how to connect to a Wi-Fi network and send an HTTP request using MicroPython:
```python
import network
import urequests
# Initialize Wi-Fi
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
# Connect to Wi-Fi network
wlan.connect('your_ssid', 'your_password')
while not wlan.isconnected():
pass
print('Connected to Wi-Fi network')
# Send HTTP request
response = urequests.get('http://example.com')
print(response.text)
```
### Example 2: I2C Communication with a BME280 Sensor using C/C++
This example demonstrates how to use the Wio Link board to communicate with a BME280 temperature and humidity sensor using I2C protocol:
```c
#include <Wire.h>
#define BME280_ADDRESS 0x76
void setup() {
Serial.begin(115200);
Wire.begin();
// Initialize BME280 sensor
Wire.beginTransmission(BME280_ADDRESS);
Wire.write(0xF4); // Register address for temperature and humidity
Wire.endTransmission();
delay(10);
}
void loop() {
Wire.beginTransmission(BME280_ADDRESS);
Wire.requestFrom(BME280_ADDRESS, 6); // Read 6 bytes of data
int temp = Wire.read() << 8 | Wire.read();
int humidity = Wire.read() << 8 | Wire.read();
int pressure = Wire.read() << 16 | Wire.read() << 8 | Wire.read();
Serial.print("Temperature: ");
Serial.print(temp / 16.0);
Serial.println(" Celsius");
Serial.print("Humidity: ");
Serial.print(humidity / 16.0);
Serial.println(" %");
Serial.print("Pressure: ");
Serial.print(pressure / 16.0);
Serial.println(" hPa");
delay(1000);
}
```
### Example 3: LED Control using NodeMCU
This example demonstrates how to use the Wio Link board to control an external LED using NodeMCU:
```lua
-- Connect to Wi-Fi network
wifi.setmode(wifi.STATION)
wifi.sta.config("your_ssid", "your_password")
wifi.sta.connect()
-- Wait for Wi-Fi connection
tmr.alarm(1, 1000, 1, function()
if wifi.sta.status() == wifi.STA_GOTIP then
tmr.stop(1)
print("Connected to Wi-Fi network")
end
end)
-- Define LED pin
local ledPin = 2
-- Initialize LED pin as output
gpio.mode(ledPin, gpio.OUTPUT)
-- Toggle LED every second
tmr.alarm(2, 1000, 1, function()
gpio.write(ledPin, gpio.HIGH)
tmr.delay(500000)
gpio.write(ledPin, gpio.LOW)
end)
```
These examples demonstrate the versatility and ease of use of the Wio Link Wireless Development Board in various IoT applications.