digital thermometer or talk I2C to your atmel microcontroller

Posted on Feb 5, 2014

A pre-requisite for this article is that you have the GCC AVR programming environment installed as described in my `Programming the AVR microcontroller with GCC, libc 1. 0. 4` article. If you want to avoid troubles with the installation you can of course use the AVR programming CD from When you use such an advanced device as a microcontroller

digital thermometer or talk I2C to your atmel microcontroller
Click here to download the full size of the above Circuit.

to measure analog or digital signals then you want of course interfaces to evaluate the data or send commands to the microcontroller. In all the articles presented here in the past we always used rs232 communication with the UART that is included in the microcontroller. The problem is that this requires an additional MAX232 chip and 4 extra capacitors. Atmel suggests also that an external crystal osciallator is required for the UART communication to work reliably. In any case it is a lot of extra parts. and we can avoid them! The amount of data to transfer between PC and microcontroller is usually very small (just a few bytes). Speed it therefore no issue at all. This makes the I2C bus/protocol suitable for this task. I2C (prounouce "eye-square-see") is a two-wire bidirectional communication interface. It was invented by Philips and they have protected this name. This is why other manufacturers use a different name for the same protocol. Atmel calls I2C "two wire interface" (TWI). Many of you might already be using I2C on their PCs without knowing it. All modern motherboards have an I2C bus to read temperatures, fan speed, information about available memory. all kind of hardware information. This I2C bus is unfortunately not available on the outside of the PC (there is no physical connector). Therefore we will have to invent something new. The datasheet of the Atmega8 (see references) has actually a very detailed...

Leave Comment

characters left:

Related Circuits

  • New Circuits



    Popular Circuits

    Mooring Light Controller
    Simple Li-Ion Battery Charger
    Security Alarm System (PIC16F877A)
    The Custom TRS-80 model 1 Hi res option
    Schmitt Inverter
    Video-Out Coupling
    Schematic Diagram Simple ufo Detector
    TDA2030 200 watt amp low cost audio power amplifier
    Relay Computer Two
    PSPICE Examples for EE-201
    Over-temperature alarm and cooling circuit
    Magnetic field sensors circuit and serial interface application HMC1002
    CIC2851E refrigerator closed remind schematic