Lesson 05 - crash course in embedded C

The lecture

Simple a crash course in C

I2C (or wire) is a very common local network or fieldbus within robotics and controlsystems.

It is widely used in many areas and types of sensors.

The goal for today is get insight and get hands on in using I2C.

So today we will develop our own drivers for I2C as well as I2C slaves using a standard Arduino platform.


The Inter-integrated Circuit (I2C) Protocol is a protocol intended to allow multiple “slave” digital integrated circuits (“chips”)
to communicate with one or more “master” chips.
Like the Serial Peripheral Interface (SPI), it is only intended for short distance communications within a single device.
Like Asynchronous Serial Interfaces (such as RS-232 or UARTs), it only requires two signal wires to exchange information.

Preparation for the lecture

Please take a look here

Litterature

Examples of code from 2day can be found here