The Arduino UNO R4 WiFi is a versatile microcontroller board that combines the functionality of the traditional Arduino UNO with integrated WiFi capabilities. This board is based on the ATmega328P microcontroller and is designed to facilitate the development of Internet of Things (IoT) projects and wireless applications. It is an ideal choice for hobbyists, educators, and professionals looking to create connected devices with ease.
Pin Number | Function | Description |
---|---|---|
1 | TX | Digital pin for UART transmit |
2 | RX | Digital pin for UART receive |
3-8 | Digital I/O | General purpose digital input/output pins |
9-10 | PWM | PWM output capable pins |
11-13 | Digital I/O | General purpose digital input/output pins |
A0-A5 | Analog Input | Analog input pins |
AREF | Analog Reference | Reference voltage for the analog inputs |
GND | Ground | Ground pin |
RST | Reset | Used to reset the microcontroller |
3V3 | 3.3V Supply | 3.3V output from the onboard regulator |
5V | 5V Supply | 5V output from the onboard regulator |
VIN | Voltage Input | Input voltage to the Arduino board |
Powering the Board:
Connecting to WiFi:
Programming the Board:
WiFi Connection Issues:
Board Not Recognized by Computer:
Sketch Upload Failures:
#include <WiFi.h>
// Replace with your network credentials
const char* ssid = "your_SSID";
const char* password = "your_PASSWORD";
void setup() {
// Initialize serial communication
Serial.begin(9600);
// Connect to WiFi
WiFi.begin(ssid, password);
// Wait for connection
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
// Print the IP address
Serial.println("");
Serial.println("WiFi connected.");
Serial.print("IP address: ");
Serial.println(WiFi.localIP());
}
void loop() {
// Your code here
}
Remember to replace your_SSID
and your_PASSWORD
with your actual WiFi network credentials. This basic example initializes the WiFi connection and prints the IP address of the Arduino UNO R4 WiFi once connected.