This repository documents my exploration of embedded systems, beginning with Arduino. The README.md contains references and key insights gained throughout my projects.
The /sketches folder includes:
.inofile with the code..jpgimage of the setup..mp4video showing the setup in action.
Note
ultrasonic_sensor_lcd_display includes LiquidCrystal_I2C.h, which is not
among the archives under libraries/ - install it separately to build that
sketch.
The kit used:
- ELEGOO Mega R3 2560, available for purchase here.
Note
This repository's own MIT licence covers its own work only. The archives
under libraries/ and the datasheets and tutorial under pdf/ are
redistributed third-party material and stay under their own terms: each
library archive carries its upstream licence where one is provided, and
the ELEGOO documentation remains ELEGOO's copyright.
- Arduino Hardware
- Arduino Project Hub
- Elegoo Tutorial Documentation
- Resistor Values
- Fun with Transistors
- Capacitors Explained
- Arduino MASTERCLASS
- How to Read a Schematic
- How to Read Schematics - Part 1
- How to Read Schematics - Part 2
- Schematic Symbols
-
Electrical Signals:
- AC (Alternating Current): Electricity flows back and forth.
- DC (Direct Current): Electricity flows in one direction.
-
Voltage and Current:
- Voltage is the force that makes electrons flow. It's a difference in potential energy between two different points in a circuit.
- Current is the rate of the flow of electrons. It's measured in amperes, which are also called amps.
In AC circuits, the voltage can be calculated using Ohm's law:
V = I x R.Vis the voltage (in volts, V)Iis the current (in amperes, A)Ris the resistance (in ohms, Ω)
-
Circuit Basics:
- Closed Circuit: Allows current to flow from power to ground.
- Open Circuit: Interrupts the flow of electricity.
-
Series vs. Parallel Circuits:
- Series: Same current flows through all components.
- Parallel: Same voltage across all components.
-
Resistors:
- Add resistance to the circuit, reducing current flow.
- Measured in Ohms (Ω).
-
Capacitors:
- Store and discharge electricity to maintain a steady current.
- Measured in Farads (F).
-
Diodes:
- Allow current to flow in only one direction.
- LEDs are a special type of diode that emits light.
-
Transistors:
- Amplify electrical signals.
- Two main types: NPN and PNP.
-
Integrated Circuits (ICs):
- Miniaturized circuits with multiple components.
- Common IC: 555 timer.
-
Potentiometers:
- Variable resistors that adjust resistance in a circuit.
- Commonly used in volume controls.
-
Switches:
- Mechanical devices that open or close circuits.
-
Batteries:
- Convert chemical energy into electrical energy.
- Can be connected in series to increase voltage or in parallel to increase current.
-
Breadboards:
- Prototyping boards used for building circuits without soldering.
- Contains rows and columns of electrically connected holes for components.