How to Connect PedalinoMini to a WiFi Network
PedalinoMini supports IEEE 802.11 b/g/n WiFi with WPA/WPA2 authentication (2.4 GHz only). There are several ways to connect it to your WiFi network, with the Web Installer being the recommended method for most users.
Recommended Method: Web Installer
The easiest way to connect PedalinoMini to WiFi is using our Web Installer which uses ESP Web Tools.
- Connect your PedalinoMini to your computer via USB
- Visit Web Installer
- Follow the on-screen instructions to install firmware and configure WiFi
This method allows you to configure WiFi via USB or Bluetooth with just a few clicks directly from your browser.
Alternative Connection Methods
If the Web Installer method doesn't work for your situation, PedalinoMini supports several alternative methods:
Smart Config
PedalinoMini supports Espressif's ESP-TOUCH protocol (Smart Config) which requires a smartphone app:
- ESP8266 SmartConfig for Android
- Espressif Esptouch for iOS
To use Smart Config:
- Power on PedalinoMini
- Wait until it enters Smart Config mode (after ~75 seconds if not connected to WiFi)
- Use one of the smartphone apps to configure your network credentials
WPS Setup
If your router supports WPS (Wi-Fi Protected Setup):
- Power on PedalinoMini
- Wait until it enters WPS mode (after ~135 seconds if not connected)
- Press the WPS button on your WiFi router
- PedalinoMini will connect to your network automatically
Note: WPS mode is only available if PedalinoMini was compiled with
-D WPS
in platformio.ini
Access Point (AP) Mode
If all other methods fail, PedalinoMini will create its own WiFi network:
- Wait until PedalinoMini switches to AP mode
- Connect to the "Pedalino" WiFi network using the password
pedalino
- Open a web browser and navigate to the PedalinoMini web interface
- Use the web interface to configure your WiFi network credentials
Connection Process Flow
PedalinoMini follows this sequence when attempting to connect to WiFi:
- Tries to connect to the last known access point (15 seconds)
- Enters WiFi provisioning mode via USB/Bluetooth (60 seconds)
- Enters Smart Config mode (60 seconds) - if enabled
- Enters WPS mode (60 seconds) - if enabled
- Finally switches to AP mode until reboot
You can skip any step in this process by pressing the BOOT
button on PedalinoMini.
void wifi_connect()
{
auto_reconnect(); // WIFI_CONNECT_TIMEOUT seconds to reconnect to last used access point
if (!WiFi.isConnected())
improv_config(); // IMPROV_CONFIG_TIMEOUT seconds to receive provisioning SSID and password via USB or Bluetooth and connect to WiFi
if (!WiFi.isConnected())
smart_config(); // SMART_CONFIG_TIMEOUT seconds to receive SmartConfig parameters and connect
if (!WiFi.isConnected())
wps_config(); // WPS_TIMEOUT seconds to receive WPS parameters and connect
if (!WiFi.isConnected())
ap_mode_start(); // switch to AP mode until next reboot
}