Overview of Microprocessors, Microcontrollers, and Arduino Platforms
- Arduino is an open-source electronics platform featuring easy-to-use hardware and software.
- It reads inputs through sensors such as light, sound, range, touch, buttons, or commands.
- It produces outputs by activating Light Emitting Diodes (LEDs), motors, or screen displays.
Microprocessors and Microcontrollers
- Microprocessor: Known as the CPU, this device performs control and logic operations for a digital computer.
- Microcontroller: A compact integrated circuit including a processor, memory, and input/output peripherals.
- Comparisons:
- Microprocessors: High speed, programmable, expensive, low power usage due to metal oxide semiconductor technology, and low heat generation.
- Microcontrollers: Slower speed, embedded peripherals (timers, counters), suitable for bit-wise/Boolean operations, and less expensive.
Internal Components and Memory
- ROM (Read-Only Memory): Non-volatile memory that retains data without power; used for startup instructions.
- RAM (Random Access Memory): Volatile memory that loses data when powered off.
- ALU (Arithmetic Logic Unit): Performs calculations and logical comparisons.
- CU (Control Unit): Manages instruction execution, including fetching, decoding, and sequencing.
- Registers: Hold active data and instructions for computations.
- Controller: Manages data and instruction flow between internal and external components.
- Timer and Counter: Timers measure elapsed time and generate signals; counters increment or decrement based on events or clock signals.
Types of Microcontrollers in Embedded Systems
- PIC (Peripheral Interface Controller): Includes built-in data memory, data bus, and a dedicated microprocessor for I/O devices.
- ARM (Advanced RISC Machine): The most popular architecture in digitally-embedded systems; used in industrial control, wireless networking, and automotive systems.
- 8051 Microcontroller: Created by Intel in 1981; an 8-bit device with 40 pins DIP, 4kb ROM, 128bytes RAM, and two 16-bit timers.
- AVR (Alf and Vegard's RISC Processor): Utilizes a modified Harvard architecture where program and data memory are physically separate.
- MSP (Mixed Signal Processor): From Texas Instruments; built around a 16-bit CPU designed for low-cost and low-power dissipation.
Prototyping Microcontrollers and Boards
- Makeblock mCore: Powers the mBot; includes built-in RGB LEDs, Buzzers, and sensors.
- Raspberry Pi: A bank-card-sized single-board computer with the capabilities of a desktop computer.
- Arduino Uno: A microchip-based board with 20 digital I/O pins designed for accessible programming.
- Arduino Nano: A compact board with a 16MHz frequency; identical in power to the UNO but lacks a DC power jack.