Column: Electronics design
connected to your PC, then look in the Device Manager (right-select the window icon and then Device Manager). Expand ports COM & LPT, and make a note of which port the ESP32 board is connected to; in my case this is COM4:
6. Run Flowcode and select the 30-day trial, then enter your username and password.
7. Restart Flowcode, select File, Open Project & Browse.
8. If you don’t have the Displays component pack or just have the ESP32 without a display, then browse where you saved Mains PMon A v1.5 Fware ESP32 Wroom.fcfx, and select open:
Figure 3: Wireless Network Watcher setup for the Mains Power Monitor
T en, select Modify.
11. Staying within the Build ribbon, select Compile to Target. At this point if you see error messages about “not a recognised command”, restart your PC:
9. Select View, Component Properties. Replace SSID and Password with the ones for your router:
I have found this only working on PCs
that are connected via Wi-Fi. My main PC is only Ethernet; I have tried with Ethernet connections and can only see 0.0.0.0 for the IP address, so I ordered a cheap USB Wi-Fi adapter, which worked perfectly:
All being well, the ESP32 board should be programmed:
10. Select Build Ribbon, Project Options, then select the correct Programmer Port
When you see the correct IP address With the ESP32 running, it will connect
to your Wi-Fi network. T is can be confi rmed by using a free utility called Wireless Network Watcher. T e assigned IP address will be automatic so it will be diff erent on each setup; see Figure 3. I have outlined the two IP addresses we
will need. Aſt er extracting T e App Developer
fi les, run the Open Mains Power Monitor
v1.0.bat fi le. Select the drop-down arrow and keep selecting diff erent network interface numbers until you see your PC’s IP address:
of your PC, enter the IP details from T e Wireless Network Watcher. Now you can run the App Developer. When you enable CSV logging, the XY
charts will also start logging. So that the CSV file does not get too
large and unmanageable, a new CSV file with an incremented number will be automatically generated after every 86400 rows. When you click on the Reset switch, the number will reset back to 1. Make sure you have all CSV fi les are
backed up fi rst.
www.electronicsworld.co.uk October 2021 13
Page 1 |
Page 2 |
Page 3 |
Page 4 |
Page 5 |
Page 6 |
Page 7 |
Page 8 |
Page 9 |
Page 10 |
Page 11 |
Page 12 |
Page 13 |
Page 14 |
Page 15 |
Page 16 |
Page 17 |
Page 18 |
Page 19 |
Page 20 |
Page 21 |
Page 22 |
Page 23 |
Page 24 |
Page 25 |
Page 26 |
Page 27 |
Page 28 |
Page 29 |
Page 30 |
Page 31 |
Page 32 |
Page 33 |
Page 34 |
Page 35 |
Page 36 |
Page 37 |
Page 38 |
Page 39 |
Page 40 |
Page 41 |
Page 42 |
Page 43 |
Page 44 |
Page 45 |
Page 46