pico_wifi_analyzer_-_new_code
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| pico_wifi_analyzer_-_new_code [2026/09/07 18:53] – created walkeradmin | pico_wifi_analyzer_-_new_code [2026/09/07 19:07] (current) – [The New Code] walkeradmin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Pico Wifi Analyzer - New Code | + | ====== |
| + | <color # | ||
| + | \\ | ||
| + | \\ | ||
| + | {{ : | ||
| + | \\ | ||
| + | Back to [[pico_wifi_monitor_with_lcd|Pico Wifi Analyzer with LCD]] | ||
| + | ---- | ||
| + | ===== Introduction ===== | ||
| + | \\ | ||
| + | The Wifi Analyzer has been working very well. However, there were a couple of things niggling me and I wanted to resolve them before putting this project to bed. | ||
| + | \\ | ||
| + | \\ | ||
| + | These improvements were: | ||
| + | |||
| + | * Slow LCD Refresh | ||
| + | * Visible MAC Address | ||
| + | * Seconds on the Next Scan | ||
| + | * SSID details in separate file. | ||
| + | |||
| + | The first one was the cause/ | ||
| + | \\ | ||
| + | \\ | ||
| + | I wanted the MAC Address shown on the page. Sadly not enough room to have MAC: | ||
| + | \\ | ||
| + | \\ | ||
| + | Lastly is the speed, the slow page refresh was actually slowing down the scanning. Now when we do a scan the scan happens quite quickly. Also, during the Scanning, where we have the word Scanning with dots is actually properly animated now. | ||
| + | \\ | ||
| + | \\ | ||
| + | Before this version, you had to dig through the Python script to find the SSID details. This was messy and meant someone could accidentally change the Python code and break the project. Now we have a separate file on the Pico called: | ||
| + | |||
| + | * wifi_details.json | ||
| + | |||
| + | < | ||
| + | [ | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | ] | ||
| + | </ | ||
| + | |||
| + | A user now only needs to edit this file with their Wifi details and our Python script will pull this information from here: | ||
| + | \\ | ||
| + | \\ | ||
| + | ---- | ||
| + | ==== The New Code ==== | ||
| + | \\ | ||
| + | You need to download three files for the project to work: | ||
| + | |||
| + | * The driver {{ : | ||
| + | * The Wifi Details file {{ : | ||
| + | * The Wifi Analyzer Python script {{ : | ||
| + | |||
| + | Remember, if you want to have the code run as soon as you plug the Pico in, save the code (WifiAnalzyer36.py) as main.py. | ||
| + | \\ | ||
| + | \\ | ||
| + | ---- | ||
pico_wifi_analyzer_-_new_code.1788807185.txt.gz · Last modified: by walkeradmin
