[M467] Use Arduino IDE Controlling Wi-Fi Module on the NuMaker-IoT-M467 Board
Posted: 10 Apr 2024, 16:54
[For further inquiries, please e-mail to shchen2@nuvoton.com]
[Visit https://www.nuvoton.com/iot_startup for more IoT solutions]
On the NuMaker development board, there is a ESP-12F Wi-Fi module; however, the NuMaker UNO package in the Arduino IDE does not provide relevant control for this module. If you wish to control this module within the Arduino IDE, how should you proceed?
Please refer to the attachment, which adds a UART object to support the ESP-12F Wi-Fi module on the NuMaker-IoT-M467 development board.
Download the attachment and extract it to the following directory:
C:\User\YOUR-ACCOUNT\AppData\Local\Arduino15\packages\nuvoton\hardware\nuvoton\2.3.2\cores\nuvoton
This attachment is based on the NuMaker UNO package version 2.3.2. The modified files are as follows:
After the update, you can create a simple UART pass-through Arduino program to test the Wi-Fi.
In the Arduino IDE Serial Monitor, enter the command "AT+GMR". This command requests the ESP-12F to output the firmware version information. Since Wi-Fi commands end with CR and LF characters, remember to select 'Both NL & CR' and set the baud rate to 115200.
Enjoy it.
[Visit https://www.nuvoton.com/iot_startup for more IoT solutions]
On the NuMaker development board, there is a ESP-12F Wi-Fi module; however, the NuMaker UNO package in the Arduino IDE does not provide relevant control for this module. If you wish to control this module within the Arduino IDE, how should you proceed?
Please refer to the attachment, which adds a UART object to support the ESP-12F Wi-Fi module on the NuMaker-IoT-M467 development board.
Download the attachment and extract it to the following directory:
C:\User\YOUR-ACCOUNT\AppData\Local\Arduino15\packages\nuvoton\hardware\nuvoton\2.3.2\cores\nuvoton
This attachment is based on the NuMaker UNO package version 2.3.2. The modified files are as follows:
- HardwareSerial.cpp
- HardwareSerial.h
- Ping_M460_arduino.cpp
- Ping_M460_arduino.h
After the update, you can create a simple UART pass-through Arduino program to test the Wi-Fi.
Code: Select all
void setup() {
Serial1.begin(115200); // for ICE UART
Serial2.begin(115200); // for Wi-Fi UART
}
void loop() {
if (Serial1.peek() > 0)
{
Serial2.write(Serial1.read());
}
if (Serial2.peek() > 0)
{
Serial1.write(Serial2.read());
}
}
Enjoy it.