schematic_arduino
schematic_arduino
I. POWER SUPPLY
This section of the schematic diagram powers our Arduinos. For this, we can
use either DC power supply or USB connection as a source.
To trace how the circuit works, let’s start with the 5V linear voltage regulator
NCP1117ST50T3G.
Pin 3: V_in
Pin 2: Ground
Pin 4: V_out
The function of this regulator is reduce voltage and stabilize input source to 5V
(there must be a voltage difference)
→ If the output voltage is lower than desired, it will increase the current
through the Transistor to compensate and vice versa.
1st: The polarized capacitors PC1 and PC2. [ To filter supply noise at
low frequencies]
When the power supply passes through the rectifier diode, the current is not
completely flat (may contain ripples or high frequency noise pulses)
→ PC1 and PC2 (47 µF) act as “energy reservoirs”, it stores charge when
the voltage is high and discharges when the voltage is low, avoiding the
case of sudden increase in load current leading to voltage drop.
The 100nF capacitor has the ability to react quickly to high frequency
oscillation signals (interference from NCP1117 voltage regulator IC,
switching)
- The output of the Op-amp is connected to the gate terminal of the MOSFET:
it acts as a switching mechanism. If using USB power, it only supplies 3.3V to
the regulator.
Others:
- OUT pin (5): Provides 3.3V output voltage. (Output filter capacitor (1µF or
larger) helps reduce noise and stabilize voltage.)
- GND pin (2): Ground pin, reference for the entire circuit.
- When this pin is connected to ground (GND), the IC will operate normally.
- When this pin is pulled to a high level (>2V), the IC will turn off.
When this pin is connected to ground (GND), the IC will operate normally.
When this pin is pulled to a high level (>2V), the IC will turn off.
The LED indicator circuit.
→It lights the green LED up when it detects power from the 5V terminal.
II. MICROCONTROLLER
III. USB
The USB to UART bridge. Since the main microcontroller, ATmega328, does
not have a USB transceiver.
Using the ATmega16U2 microcontroller as a bridge to translate the USB
signals from your computer to UART, the communication protocol the
ATmega328 uses.
Avoiding Overcurrent: When a short circuit or overload occurs, the current becomes
excessively large, causing the heat generated to exceed the heat dissipated. This heat
causes the polymer material within the fuse to melt, leading to an increase in its
volume. As a result, the resistance increases, which reduces the current flow.
Once the fault is cleared, the fuse cools down, allowing the polymer to recrystallize.
During this process, the conductive particles within the polymer re-establish the
conductive path, restoring low resistance and enabling normal operation.
- Main functions:
+ Input: Read signals from peripheral devices such as buttons, sensors.
+ Output: Control devices such as LEDs, relays, motors.
+ Operating voltage: 5V (HIGH logic level: 5V, LOW logic level: 0V).
+ Maximum current: 20 mA (recommended); 40 mA (maximum) for each pin.
- Special pins:
PWM (Pulse Width Modulation): D3, D5, D6, D9, D10, D11.
UART: D0 (RX), D1 (TX) – Serial communication.
SPI: D10 (SS), D11 (MOSI), D12 (MISO), D13 (SCK).
I2C: D18 (SDA), D19 (SCL) (same as A4, A5 on ATmega328P).
- Main function:
- Measure analog signal (0V - 5V) and convert to digital form (10-bit ADC).
- These pins can also function as Digital I/O pins if needed.
- Input voltage: 0V - 5V.
- ADC resolution: 10 bits (value from 0 to 1023).
2. Special features
a. Built-in Pull-up Resistor:
Digital pins can enable pull-up resistors (about 20-50 kΩ) through the
command pinMode(pin, INPUT_PULLUP).
d. Serial Communication:
D0 (RX) and D1 (TX) are used for UART communication with computers or
other devices via the USB-to-Serial port.