1
Access Wokwi
2
Create New ESP32 Project
When you create a new project, you'll see:
- A virtual ESP32 board on the left
- Code editor in the center
- Library manager and settings on the right
3
Understanding the Interface
Main Components:
- 🎮 Play Button: Starts the simulation
- ⏹️ Stop Button: Stops the simulation
- 📋 Serial Monitor: Shows output (bottom panel)
- ⚙️ Settings: Configure board and WiFi
- 💾 Save: Save your project
- 🔗 Share: Get a shareable link
4
Configure WiFi Simulation
Click on the ⚙️ Settings icon (or edit wokwi.toml file)
Wokwi simulates WiFi networks automatically. You can configure simulated networks in the wokwi.toml file:
wokwi.toml
[wokwi] version = 1 [[wokwi.wifi]] ssid = "Wokwi-GUEST" password = "" [[wokwi.wifi]] ssid = "MyHomeNetwork" password = "password123"
This creates simulated WiFi networks that your ESP32 can scan!
💡 Pro Tip: Wokwi automatically simulates several WiFi networks even without configuration. The scanner will detect these simulated networks just like it would detect real ones!
✅ Ready to Code! Now you're ready to write the WiFi scanner code in the next tab.
Understanding RSSI Values
| RSSI Range | Signal Quality | Description | Visual |
|---|---|---|---|
| -30 to -50 dBm | Excellent | Very close to access point, maximum speed | ▂▄▆█ |
| -50 to -60 dBm | Good | Strong signal, reliable connection | ▂▄▆_ |
| -60 to -70 dBm | Fair | Usable but may experience slowdowns | ▂▄__ |
| -70 to -80 dBm | Weak | Minimal connectivity, unstable | ▂___ |
| Below -80 dBm | Very Weak | Unreliable, frequent disconnections | ____ |
💡 Fun Fact: RSSI is measured in dBm (decibels relative to one milliwatt). Since it's a logarithmic scale, a difference of 3 dBm represents a doubling or halving of signal strength!
Comments
Post a Comment