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

    Dark Seeker - TV-to-Scope Converter
    Fluid Level Sensor
    Home Built Laser Projector
    50W car audio amplifier schematic circuits
    Doppler Rdf
    Sp6691 Remote Control 100khz Infrared Led Driver
    AM radio rf amplifier
    Electronic pulse circuitry fishing
    Structure and working principle of brushless motor windings
    Test circuit diagram with feedback factor of 1 83 DA6101Q 6111Q
    LM723 voltage regulator circuit diagram consisting of cars



    Top