Copy of Robotic Process Automation (RPA) Project Proposal
Copy of Robotic Process Automation (RPA) Project Proposal
IN ATMEGA
16/32
Explanation: Explanation:
•TWBR (Bit Rate Register): Sets the SCL frequency for I2C •TWCR (Control Register):
communication. •TWSTA: Setsthe START condition.
•TWSR (Status Register): Prescaler bits are set to 00 for •TWEN: Enables I2C operation.
standard speed operation. •TWINT: Clears the interrupt flag to start a new operation.
•This function must be called before using I2C •while (!(TWCR & (1<<TWINT)));
communication. •Waits for the START condition to complete before
proceeding.
Advantages &
Limitations
Advantages of I2C
✔️Uses Only Two Wires: Reduces hardware complexity.
✔️Supports Multiple Devices: Allows multiple masters and
slaves on the same bus.
✔️Efficient for Short-Distance Communication: Ideal for
embedded systems and robotics.
✔️Built-in Acknowledgment Mechanism: Ensures reliable
data transmission.
Limitations
✖️Slower than SPI: Maximum speed of 3.4 MHz, while SPI
can reach tens of MHz.
✖️More Complex than UART: Requires addressing and
acknowledgment, making it less straightforward.
✖️Limited Device Address Space: 7-bit addressing
supports only 128 devices (without address conflicts).
✖️Requires Pull-Up Resistors: External resistors are
needed for SDA and SCL lines.
Applications of I2C in
Robotics
I2C is widely used in robotics for integrating various peripherals with microcontrollers.
Key Applications:
🤖 Interfacing Sensors:
•Accelerometers, Gyroscopes, Temperature Sensors, Proximity Sensors use I2C for real-time data
collection.
References
📚 Datasheets & Technical Documents:
•ATmega16/32 Datasheet – Microchip Technology
•I2C Protocol Specification – NXP Semiconductors
📖 Books & Online Resources:
•"Embedded Systems with AVR Microcontrollers" – Raj Kamal
•Arduino & AVR Forums – https://www.avrfreaks.net