What is I2C device?

What is I2C device?

The I2C bus is a very popular and powerful bus used for communication between a master (or multiple masters) and a single or multiple slave devices. The microcontroller represents the I2C master, and controls the IO expanders, various sensors, EEPROM, ADCs/DACs, and much more.

How do I program ATmega328 without Arduino?

4 Answers

  1. You can use arduino board with the IC. Program the IC and then take it out and use it in your circuit.
  2. If you don’t have arduino board, you can use other programmers like USBasp to program your Atmega328p .

What is the use of ATtiny85?

ATtiny85 comes with a serial peripheral interface (SPI) that is mainly used for communication between the microcontroller and other peripheral devices such as SD cards, sensors, and shift registers.

How to connect the I2C module to the attiny85 IC?

Wire the I2C module as follows: Connect SCL pin from the I2C module to PB02 of the ATtiny85 IC or Development Board. Connect SDA pin from the I2C module to PB0 of the ATtiny85 IC or Development Board. Connect VCC pin from the I2C module to 5V of the ATtiny85 IC or Development Board.

How to download the LCD library for attiny85?

Download the LCD library ( for ATtiny85 by clicking on this link : ATtiny85 LCD Library. Adding the library to Arduino is a bit tricky here. After downloading the library as ZIP above, extract the LiquidCrystal_ATtiny folder from the compressed file to your local machine (directory of your choice).

Can a LCD be used as an I2C module?

The LCD and I2C modules I am using are the ones pictured below: Using the same modules, we will be displaying text to the LCD via I2C from out ATtiny85 Development Board. Here’s how: Download the LCD library ( for ATtiny85 by clicking on this link : ATtiny85 LCD Library. Adding the library to Arduino is a bit tricky here.

What are the pins in the I2C module?

The I2C module has 4 pins in it: SCL, SDA, VCC and GND. (In the I2C image above, SCL has the yellow jumper wire attached to it, SDA has the blue jumper wire attached to it, VCC has the red one, and GND has the black jumper wire attached to it.