The Arduino Pro Mini is a compact microcontroller board based on the ATmega328P microcontroller. It is designed for users who are familiar with the Arduino environment and are looking for a smaller board for space-constrained projects. With its 14 digital input/output pins, 6 analog inputs, and a 16 MHz quartz crystal oscillator, the Pro Mini is a versatile board suitable for various applications, including robotics, wearables, and automation.
Pin Number | Function | Description |
---|---|---|
1 | RESET | Used to reset the microcontroller |
2-3 | PD0/RXD, PD1/TXD | Serial communication pins (RX and TX) |
4-9 | PD2-PD7 | Digital pins, PWM available on PD3, PD5, PD6 |
10-13 | PB0-PB3 | Digital pins, PWM available on PB1, PB2 |
14 | PB4 | Digital pin |
15-20 | PC0-PC5 | Analog input pins or digital pins (A0-A5) |
21-22 | A6-A7 | Analog input pins (only on some Pro Mini versions) |
23-26 | VCC, GND, GND, RAW | Power pins |
27-28 | RST, GND | Reset and ground pins |
To use the Arduino Pro Mini in a circuit, follow these steps:
Powering the Board:
Programming the Board:
Connecting I/O:
pinMode()
, digitalWrite()
, and digitalRead()
functions.analogRead()
function.Here's a simple example of blinking an LED connected to pin 13 of the Arduino Pro Mini:
// Pin 13 has an LED connected on most Arduino boards.
int ledPin = 13;
// The setup routine runs once when you press reset:
void setup() {
// Initialize the digital pin as an output.
pinMode(ledPin, OUTPUT);
}
// The loop routine runs over and over again forever:
void loop() {
digitalWrite(ledPin, HIGH); // Turn the LED on (HIGH is the voltage level)
delay(1000); // Wait for a second
digitalWrite(ledPin, LOW); // Turn the LED off by making the voltage LOW
delay(1000); // Wait for a second
}
Q: Can I power the Arduino Pro Mini with a 9V battery? A: Yes, you can connect a 9V battery to the RAW input if you're using the 5V version of the Pro Mini. For the 3.3V version, ensure the voltage does not exceed the input voltage limits.
Q: How do I connect a sensor to the Pro Mini? A: Connect the sensor's VCC to the Pro Mini's VCC, GND to GND, and the signal pin to one of the Pro Mini's analog or digital I/O pins, depending on the sensor's output.
Q: What is the purpose of the A6 and A7 pins? A: A6 and A7 are additional analog input pins available on some Pro Mini boards. They can only be used as analog inputs and do not have digital I/O capabilities.
For further assistance, consult the Arduino forums and the extensive community resources available online.