The ATmega328P Xplained Mini is a microcontroller board based on the ATmega328P, which is the same microcontroller found in the popular Arduino Uno. This development board is designed by Microchip and provides a compact and cost-effective solution for prototyping and developing applications with the ATmega328P MCU. It is equipped with essential features such as on-board buttons, LEDs, and various interfaces, making it suitable for a wide range of applications from simple hobbyist projects to more complex embedded systems.
Pin Number | Pin Name | Description |
---|---|---|
1 | PC6 | Reset |
2 | PD0 | RXD, UART |
3 | PD1 | TXD, UART |
4 | PD2 | INT0 |
5 | PD3 | INT1, PWM |
... | ... | ... |
28 | PC5 | ADC5/SCL |
Note: This table is not exhaustive and only includes a selection of pins for illustration.
// Blink an LED connected to pin 13 of the ATmega328P Xplained Mini
void setup() {
// Set pin 13 as an output
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH); // Turn the LED on
delay(1000); // Wait for a second
digitalWrite(13, LOW); // Turn the LED off
delay(1000); // Wait for a second
}
Note: The above code is written for the Arduino IDE. Ensure that the ATmega328P Xplained Mini is selected as the board, and the correct programmer is chosen before uploading.
pinMode(13, OUTPUT);
sets pin 13 as an output pin.digitalWrite(13, HIGH);
turns the LED on by supplying 5V to pin 13.delay(1000);
pauses the program for 1000 milliseconds (1 second).digitalWrite(13, LOW);
turns the LED off by setting pin 13 to 0V.This documentation provides an overview of the ATmega328P Xplained Mini development board, its technical specifications, usage instructions, troubleshooting tips, and a simple example code for getting started. For more detailed information, refer to the official datasheet and user guide provided by Microchip.