We’ve crafted a programmable smartwatch capable of tracking health data and empowering users to redesign and program various functions according to their needs. Continuing with this versatile approach, we’re introducing a new function: WiFi network analysis. Analyzing WiFi signals and network data is essential for engineers working on WiFi router setup, as well as for users seeking the best WiFi connection based on signal strength. This feature not only adds utility to the smartwatch but also addresses a gap in existing smartwatch functionalities.
Leveraging the power of the Indus board’s ESP32 WiFi chip, we aim to scan and analyze WiFi networks directly from the smartwatch itself. If you’ve already assembled the smartwatch we designed and published in January, there’s no need to purchase additional components; you can proceed directly to programming. Let’s delve into the design and implementation of this feature, utilizing the ESP32 WiFi chip to scan and analyze WiFi signals, and display the results on the smartwatch.
Components Required:
GC90A Display |
Indusboard |
Arduino GFX Library |
Hardware Setup:
- Connect the VCC of the GC90A display to the 5V pin of the Indusboard.
- Configure the SPI pins of the GC90A display to the Indusboard. Any pins can be mapped as SPI on the Indusboard; for this project, we’ll use pins 21, 1, 2, 3, 4, and 5.
- Connect other necessary pins of the GC90A display (such as MOSI, MISO, SCK, and CS) to the corresponding SPI pins on the Indusboard.
Coding:
- Install the Arduino GFX library in the Arduino IDE.
- In the Arduino sketch, configure the SPI pins for the GC90A display using the specified pin numbers (21, 1, 2, 3, 4, 5 for MOSI, MISO, SCK, CS).
- Initialize the GC90A display object using the configured SPI pins in the setup function.
Download Source Code
Connection:
- Ensure the VCC of the GC90A display is connected to the 5V pin of the Indusboard.
- For SPI testing, connect the device with a 5V battery or the USB port of the Indusboard.
Display | Indusbaord |
TFT MOSI | 21 |
TFT_SCLK | 1 |
TFT_CS | 2 |
TFT_DC | 3 |
TFT_RST | 4 |
TFT_BL | 5V |
VCC | 5V |
BL | 3V |
GND | GND |
With these components and setup, you’ll be ready to develop a WiFi network analysis feature on your smartwatch using the GC90A display and Indusboard, allowing you to scan and analyze WiFi networks directly from your wrist.