[Arduino] Hardware Summary
Background
Arduino Mega 2560 is the recommended board for 3D printers and robotics projects compared to Arduino Uno. Nothing is more awkward than ending up finding that your program can’t fit into your board’s memory, which happened in our project - Wearable Dance Party, where we used Arduino Uno.
The main reason why I bought this board is that I want to finish this project myself to come up with a complete version of the flashing jacket. But first, I need to learn some hardware knowledge.
Arduino Mega 2560
Overview
| Microcontroller | ATmega2560 |
|---|---|
| Operating Voltage | 5V |
| Input Voltage (recommended) | 7-12V |
| Input Voltage (limit) | 6-20V |
| Digital I/O Pins | 54 (of which 15 provide PWM output) |
| Analog Input Pins | 16 |
| DC Current per I/O Pin | 20 mA |
| DC Current for 3.3V Pin | 50 mA |
| Flash Memory | 256 KB of which 8 KB used by bootloader |
| SRAM | 8 KB |
| EEPROM | 4 KB |
| Clock Speed | 16 MHz |
| LED_BUILTIN | 13 |
| Length | 101.52 mm |
| Width | 53.3 mm |
| Weight | 37 g |
Power
USB connection(5V).
- External power supply.
AC-to-AD adapterorbattery6-20Vwhile7-12Vis recommended. (The5V pinmay supply less than 5 volts and the board might be unstable when< 7V. And the voltage regulator may overheat and damage the board when> 12V.)
- Power pins:
Vin: Voltage in, i.e. you can supply voltage through this pin when using a external battery(7-12V).5V: Outputs a regulated 5V from the regulator on the board when powered through any of the 3 valid ways.3.3V: Outputs a 3.3V supply generated by the on-board regulator. Maximum current draw is 50 mA.GND: Ground pins.IOREF: Provides the voltage reference with which the microcontroller operates.
Memory
Get an insight of the memory architecture of the board you are using is extremely important to your project, avoid the dilemma in advance.
256KBflash memory for storing code(of which 8KB is used for the bootloader).8KBSRAM.4KBEEPROM(which can be read and written with the EEPROM library).
Microcontroller(High performance, low power.)
Voltage:
4.5 - 5.5V- Architecture:
RISC- 135 Powerful Instructions
- 32 ⨉ 8-bit General Purpose Registers
Frequency:
0 - 16MHz- Peripheral Features
Two 8-bit Timer/Counterswith Separate Prescaler and Compare Mode.Four 16-bit Timer/Counterwith Separate Prescaler, Compare- and Capture Mode.Real Time Counterwith Separate OscillatorFour 8-bit PWM Channels
- Operating temperature:
-40℃ - 85℃
Input and Output
54 digital pins: each of which can be used as an input or output, usingpinMode(),digitalWreite()anddigitalRead()functions.- Operate at
5V. A maximum of40mAis the value that must not be exceeded to avoid permanent damage to the microcontroller. - Provide or receive
20mAas recommended operating condition and hasan internal pull-up resistor(disconnected by default) of20-50kΩ.