Page 352 - ARM Based Microcontroller Projects Using MBED
P. 352
338 14. ADVANCED PROJECTS
FIG. 14.6 Wi-Fi expansion board pin configuration.
The Wi-Fi expansion board pin configuration is shown in Fig. 14.6. Notice that UART1 pins
PA_9 (TX) and PA_10 (RX) are used by the Wi-Fi expansion board.
14.3.8 The Construction
As shown in Fig. 14.7, the Wi-Fi expansion board was plugged on top of the Nucleo-
F411RE development board and connections to the relay board were made using
jumper wires.
14.3.9 The PDL
Fig. 14.8 shows the program PDL.
14.3.10 Program Listing
The program is named WiFi. The program uses the X_NUCLEO_IDW01M1 library and
the NetworkSocketAPI library. These libraries can be loaded to the program as follows:
• Create a new blank program and name it as WiFi.
• Open web site:
https://os.mbed.com/components/X-NUCLEO-IDW01M1/
• Click on Import Library. Set Target Path to WiFi (see Fig.14.9).
• Right click on the WiFi project folder in Program Workspace.
• Click on Import Library and then click on From Import Wizard.
• Search for Network Socket API.
• Double click under name NetworkSocketAPI to load the library to your program.