Recently Updated Pages
2. Connecting to the HPC
Tailscale SSH Setup Digilab uses Tailscale SSH to access its HPCs. Installing Tailscale Visit Tai...
Final Project Guidelines
In this final module, you are given the opportunity to create a project with your group members u...
4. SPI vs I2C Comparison
Aspect SPI I2C Signal lines SCK, MOSI, MISO, SS SDA, SCL Duplex mode Full-duplex Half-du...
3. DHT11 Sensor Interfacing
3.1 Sensor Fundamentals A sensor captures physical phenomena from the real world and converts the...
2. Inter-Integrated Circuit (I2C)
2.1 Overview I2C is a synchronous two-wire serial bus: SDA: Serial Data SCL: Serial Clock I2C s...
1. Serial Peripheral Interface (SPI)
1.1 Overview SPI is a synchronous serial communication protocol commonly used for fast peripheral...
8. ADC Assembly Code Example
8.1 Full Code Here is an example of AVR Assembly code to read the ADC from the ADC0 pin using the...
7. ADC Conversion Flowchart
Here is the complete workflow for using the ADC on the ATmega328p: The flowchart above illustrat...
6. Specific Registers for ADC In ATmega328p
6.1 ADMUX — ADC Multiplexer Selection Register ADMUX is an 8-bit register that handles the basic ...
5. Important ADC Parameters In ATmega328p
5.1 Reference Voltage (Vref) Reference Voltage (Vref) is the maximum voltage that serves as the f...
4. ADC In ATmega328p
4.1 ATmega328p ADC Specifications The ATmega328p (used in the Arduino Uno) has a built-in ADC wit...
3. Why is ADC Needed in Embedded Systems?
The real world is analog — all physical phenomena (temperature, light, sound, pressure, humidity...
2. Analog to Digital Converter (ADC)
2.1 Understanding ADC ADC (Analog to Digital Converter) is a component or circuit that converts a...
1. Analog vs Digital Signal
1.1 Analog Signals Analog signals are signals that are continuous — meaning their values can chan...
1. PWM (Pulse Width Modulation)
PWM is a technique used to simulate analog output using a digital signal. Instead of producing a ...
4. References
PWM Basics PWM Overview PWM Docs Servo Basics Wok Servo Wok EEPROM EEPROM Docs
2. Servos
Servos are motors that adjusts to certain angles following certain PWM pulses. Servo Signal Oper...
3. EEPROM
EEPROM is a small non-volatile memory inside the microcontroller. Unlike SRAM: SRAM loses data w...
4. Internal/Timer Interrupts
Internal Interrupts Now Internal interrupts or Timer interrupts is somewhat more complex then ext...
3. External Interrupt Registers
For detailed information about the registers, please refer to the Atmega32p datasheet. here Fro...