The main component of our project is the microcontroller, which communicates with all attached peripherals. The microcontroller used in the project is an Arduino Mega 2560, which uses an ATmega2560 MCU. Figure 48 and Figure 49 show the Arduino Mega 2560 and the functional block diagram for the MCU, respectively.
Figure 48: Arduino Mega 2560
Figure 49: ATmega2560 Block Diagram
The microcontroller was programmed and debugged using the IDE called Arduino. All the programming was done in C language. Since programming determines the performance of the overall system, code optimization was necessary to deliver efficient data transfer. Table 5 shows a summary of the microcontroller.
Microcontroller | ATMega 2560 |
Operating voltage | 5V |
Input Voltage | 7-12V |
Number of Digital Pins | 54 (15 pins provide PWM output) |
Number of Analog Pins | 16 |
Flash Memory | 256 KB, 8KB used by boot loader |
SRAM | 8 KB |
EEPROM | 4 KB |
Clock Speed | 16 MHz |
Table 5: Microcontroller Summary
Login