Arduino Uno
Microcontroller: ATmega328P.
Size: Medium-sized board (68.6 mm x 53.4 mm).
I/O Pins:
o Digital I/O Pins: 14 (6 of them can be used as PWM outputs).
o Analog Input Pins: 6.
Clock Speed: 16 MHz.
Flash Memory: 32 KB (0.5 KB used by the bootloader).
RAM: 2 KB.
EEPROM: 1 KB.
Power Supply:
o USB (5V) or external power supply (7–12V).
USB Port: Standard USB-B.
Usage:
o Beginner-friendly.
o Ideal for small to medium-sized projects such as LED control, basic sensors,
and motor interfacing.
Arduino Nano
The classic Nano is the oldest member of the Arduino Nano family boards. The Arduino
Nano is Arduino's classic breadboard friendly designed board with the smallest dimensions.
The Arduino Nano comes with pin headers that allow for an easy attachment onto a
breadboard and features a Mini-B USB connector.
Microcontroller: ATmega328P (older) or ATmega328PB (newer).
Size: Compact (45 mm x 18 mm).
I/O Pins:
o Digital I/O Pins: 14 (6 can be used as PWM outputs).
o Analog Input Pins: 8.
Clock Speed: 16 MHz.
Flash Memory: 32 KB (0.5 KB used by the bootloader).
RAM: 2 KB.
EEPROM: 1 KB.
Power Supply:
o USB (5V) or external power supply (7–12V).
USB Port: Mini-USB or Micro-USB (depending on the version).
Usage:
o Space-constrained projects.
o Similar functionality to the Uno but more compact.
o Popular for embedded applications and wearables.
Arduino Mega
Microcontroller: ATmega2560.
Size: Large (101.5 mm x 53.3 mm).
I/O Pins:
o Digital I/O Pins: 54 (15 can be used as PWM outputs).
o Analog Input Pins: 16.
Clock Speed: 16 MHz.
Flash Memory: 256 KB (8 KB used by the bootloader).
RAM: 8 KB.
EEPROM: 4 KB.
Power Supply:
o USB (5V) or external power supply (7–12V).
USB Port: Standard USB-B.
Usage:
o Large and complex projects requiring many I/O pins.
o Ideal for robotics, 3D printers, and data logging.
digital pins can only tell if a connection is high or low, analog input pins are able to read the
exact voltage value
Pwm – pulse width modulation
Eeprom - Electrically Erasable Programmable Read-only Memory
The classic Nano is the oldest member of the Arduino Nano family boards. The Arduino
Nano is Arduino's classic breadboard friendly designed board with the smallest dimensions.
The Arduino Nano comes with pin headers that allow for an easy attachment onto a
breadboard and features a Mini-B USB connector.
4)
int ledPin = 13;
long lastMillis = 0;
long interval = 1000;
void setup() {
pinMode(ledPin, OUTPUT);
}
void loop() {
long Millis = millis();
if (Millis - lastMillis >= interval) {
lastMillis = Millis; // Update the time
digitalWrite(ledPin, !digitalRead(ledPin)); // Toggle the LED state
}
}